CreateVLANs
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Application | Pointer to int32 | Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch | [optional] |
| DhcpGuard | Pointer to DhcpServersSetting | [optional] | |
| DhcpL2RelayEnable | Pointer to bool | The switch of DHCP L2 relay | [optional] |
| Dhcpv6Guard | Pointer to Dhcpv6ServersSetting | [optional] | |
| IgmpSnoopEnable | bool | Enable IGMP snooping | |
| MldSnoopEnable | Pointer to bool | Enable MLD snooping | [optional] |
| Name | string | LAN network name should contain 1 to 128 characters. | |
| Vlans | string | Support batch VLAN creation. VLAN format: 200, 1-100. |
Methods
NewCreateVLANs
func NewCreateVLANs(igmpSnoopEnable bool, name string, vlans string, ) *CreateVLANs
NewCreateVLANs instantiates a new CreateVLANs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewCreateVLANsWithDefaults
func NewCreateVLANsWithDefaults() *CreateVLANs
NewCreateVLANsWithDefaults instantiates a new CreateVLANs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetApplication
func (o *CreateVLANs) GetApplication() int32
GetApplication returns the Application field if non-nil, zero value otherwise.
GetApplicationOk
func (o *CreateVLANs) GetApplicationOk() (*int32, bool)
GetApplicationOk returns a tuple with the Application field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetApplication
func (o *CreateVLANs) SetApplication(v int32)
SetApplication sets Application field to given value.
HasApplication
func (o *CreateVLANs) HasApplication() bool
HasApplication returns a boolean if a field has been set.
GetDhcpGuard
func (o *CreateVLANs) GetDhcpGuard() DhcpServersSetting
GetDhcpGuard returns the DhcpGuard field if non-nil, zero value otherwise.
GetDhcpGuardOk
func (o *CreateVLANs) GetDhcpGuardOk() (*DhcpServersSetting, bool)
GetDhcpGuardOk returns a tuple with the DhcpGuard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDhcpGuard
func (o *CreateVLANs) SetDhcpGuard(v DhcpServersSetting)
SetDhcpGuard sets DhcpGuard field to given value.
HasDhcpGuard
func (o *CreateVLANs) HasDhcpGuard() bool
HasDhcpGuard returns a boolean if a field has been set.
GetDhcpL2RelayEnable
func (o *CreateVLANs) GetDhcpL2RelayEnable() bool
GetDhcpL2RelayEnable returns the DhcpL2RelayEnable field if non-nil, zero value otherwise.
GetDhcpL2RelayEnableOk
func (o *CreateVLANs) GetDhcpL2RelayEnableOk() (*bool, bool)
GetDhcpL2RelayEnableOk returns a tuple with the DhcpL2RelayEnable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDhcpL2RelayEnable
func (o *CreateVLANs) SetDhcpL2RelayEnable(v bool)
SetDhcpL2RelayEnable sets DhcpL2RelayEnable field to given value.
HasDhcpL2RelayEnable
func (o *CreateVLANs) HasDhcpL2RelayEnable() bool
HasDhcpL2RelayEnable returns a boolean if a field has been set.
GetDhcpv6Guard
func (o *CreateVLANs) GetDhcpv6Guard() Dhcpv6ServersSetting
GetDhcpv6Guard returns the Dhcpv6Guard field if non-nil, zero value otherwise.
GetDhcpv6GuardOk
func (o *CreateVLANs) GetDhcpv6GuardOk() (*Dhcpv6ServersSetting, bool)
GetDhcpv6GuardOk returns a tuple with the Dhcpv6Guard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDhcpv6Guard
func (o *CreateVLANs) SetDhcpv6Guard(v Dhcpv6ServersSetting)
SetDhcpv6Guard sets Dhcpv6Guard field to given value.
HasDhcpv6Guard
func (o *CreateVLANs) HasDhcpv6Guard() bool
HasDhcpv6Guard returns a boolean if a field has been set.
GetIgmpSnoopEnable
func (o *CreateVLANs) GetIgmpSnoopEnable() bool
GetIgmpSnoopEnable returns the IgmpSnoopEnable field if non-nil, zero value otherwise.
GetIgmpSnoopEnableOk
func (o *CreateVLANs) GetIgmpSnoopEnableOk() (*bool, bool)
GetIgmpSnoopEnableOk returns a tuple with the IgmpSnoopEnable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetIgmpSnoopEnable
func (o *CreateVLANs) SetIgmpSnoopEnable(v bool)
SetIgmpSnoopEnable sets IgmpSnoopEnable field to given value.
GetMldSnoopEnable
func (o *CreateVLANs) GetMldSnoopEnable() bool
GetMldSnoopEnable returns the MldSnoopEnable field if non-nil, zero value otherwise.
GetMldSnoopEnableOk
func (o *CreateVLANs) GetMldSnoopEnableOk() (*bool, bool)
GetMldSnoopEnableOk returns a tuple with the MldSnoopEnable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMldSnoopEnable
func (o *CreateVLANs) SetMldSnoopEnable(v bool)
SetMldSnoopEnable sets MldSnoopEnable field to given value.
HasMldSnoopEnable
func (o *CreateVLANs) HasMldSnoopEnable() bool
HasMldSnoopEnable returns a boolean if a field has been set.
GetName
func (o *CreateVLANs) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *CreateVLANs) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetName
func (o *CreateVLANs) SetName(v string)
SetName sets Name field to given value.
GetVlans
func (o *CreateVLANs) GetVlans() string
GetVlans returns the Vlans field if non-nil, zero value otherwise.
GetVlansOk
func (o *CreateVLANs) GetVlansOk() (*string, bool)
GetVlansOk returns a tuple with the Vlans field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVlans
func (o *CreateVLANs) SetVlans(v string)
SetVlans sets Vlans field to given value.