func GetVLanNetworkInterface(c common.Client, uri string) (*VLanNetworkInterface, error) {
	resp, err := c.Get(uri)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	var vlannetworkinterface VLanNetworkInterface
	err = json.NewDecoder(resp.Body).Decode(&vlannetworkinterface)
	if err != nil {
		return nil, err
	}
	vlannetworkinterface.SetClient(c)
	return &vlannetworkinterface, nil
}
GetVLanNetworkInterface will get a VLanNetworkInterface instance from the service.
package redfish
import (
	"encoding/json"
	"reflect"
	"github.com/stmcginnis/gofish/common"
)
type VLAN struct {
	VLANEnable bool
	VLANID int16 `json:"VLANId"`
}
type VLanNetworkInterface struct {
	common.Entity
	ODataContext string `json:"@odata.context"`
	ODataType string `json:"@odata.type"`
	Description string
	VLANEnable bool
	VLANID int16 `json:"VLANId"`
	rawData []byte
}
func (vlannetworkinterface *VLanNetworkInterface) UnmarshalJSON(b []byte) error {
	type temp VLanNetworkInterface
	var t struct {
		temp
	}
	err := json.Unmarshal(b, &t)
	if err != nil {
		return err
	}
	*vlannetworkinterface = VLanNetworkInterface(t.temp)
	vlannetworkinterface.rawData = b
	return nil
}
func (vlannetworkinterface *VLanNetworkInterface) Update() error {
	original := new(VLanNetworkInterface)
	err := original.UnmarshalJSON(vlannetworkinterface.rawData)
	if err != nil {
		return err
	}
	readWriteFields := []string{
		"VLANEnable",
		"VLANId",
	}
	originalElement := reflect.ValueOf(original).Elem()
	currentElement := reflect.ValueOf(vlannetworkinterface).Elem()
	return vlannetworkinterface.Entity.Update(originalElement, currentElement, readWriteFields)
}