Skip to content

ServiceProfileDTO

Properties

Name Type Description Notes
EthNum int32 Number of eth port.EthNum should be within the range of -1 to 24.-1 indicates that the number of ports is adaptive. The default value is -1.
IsInUse Pointer to bool Whether the service profile is in use [optional]
MacLearning string Enable/disable ONT MAC address learning function. MacLearning should be a value as follows:DISABLE,ENABLE
MaxAdaptiveEthNum Pointer to int32 Set the maximum number of automatically recognized ETH ports.When ethNum is set to -1, a prompt will appear.MaxAdaptiveEthNum should be within the range of 0 to 24 [optional]
MaxAdaptivePotsNum Pointer to int32 Set the maximum number of automatically recognized potsWhen potsNum is set to -1, a prompt will appear.MaxAdaptivePotsNum should be within the range of 0 to 4 [optional]
MulticastForward string Set the multicast packet forwarding mode of the ONT. NativeVlan should be a value as follows:UNCONCERN,TAGGED,UNTAGGED
MulticastMode string Set the multicast mode of the ONT. MulticastMode should be a value as follows:UNCONCERN,IGMP_SNOOPING,OLT_CONTROL
Name Pointer to string Name of the service profile. No user configuration is automatically generated by the device. The name should contain 1 to 32 characters, including upper and lower letters, numbers, and symbols (-@_:/.). [optional]
NativeVlan string The ONT's concern for Native VLAN .NativeVlan should be a value as follows:UNCONCERN,CONCERN
OnuBindNum Pointer to int32 The number of ONU/ONT instances that use this Service template. [optional]
PotsNum int32 Number of ONU pots.PotsNum should be within the range of -1 to 8.-1 indicates that the number of ports is adaptive. The default value is -1.
ServiceId int32 Service profile ID should be within the range of 1 to 512
TaggedType Pointer to string TaggedType should be a value as follows:TRANSPARENT,TRANSLATION [optional]
TaggedVlanId Pointer to int32 TaggedVlanId should be within the range of 1–4094 [optional]

Methods

NewServiceProfileDTO

func NewServiceProfileDTO(ethNum int32, macLearning string, multicastForward string, multicastMode string, nativeVlan string, potsNum int32, serviceId int32, ) *ServiceProfileDTO

NewServiceProfileDTO instantiates a new ServiceProfileDTO 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

NewServiceProfileDTOWithDefaults

func NewServiceProfileDTOWithDefaults() *ServiceProfileDTO

NewServiceProfileDTOWithDefaults instantiates a new ServiceProfileDTO 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

GetEthNum

func (o *ServiceProfileDTO) GetEthNum() int32

GetEthNum returns the EthNum field if non-nil, zero value otherwise.

GetEthNumOk

func (o *ServiceProfileDTO) GetEthNumOk() (*int32, bool)

GetEthNumOk returns a tuple with the EthNum field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEthNum

func (o *ServiceProfileDTO) SetEthNum(v int32)

SetEthNum sets EthNum field to given value.

GetIsInUse

func (o *ServiceProfileDTO) GetIsInUse() bool

GetIsInUse returns the IsInUse field if non-nil, zero value otherwise.

GetIsInUseOk

func (o *ServiceProfileDTO) GetIsInUseOk() (*bool, bool)

GetIsInUseOk returns a tuple with the IsInUse field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIsInUse

func (o *ServiceProfileDTO) SetIsInUse(v bool)

SetIsInUse sets IsInUse field to given value.

HasIsInUse

func (o *ServiceProfileDTO) HasIsInUse() bool

HasIsInUse returns a boolean if a field has been set.

GetMacLearning

func (o *ServiceProfileDTO) GetMacLearning() string

GetMacLearning returns the MacLearning field if non-nil, zero value otherwise.

GetMacLearningOk

func (o *ServiceProfileDTO) GetMacLearningOk() (*string, bool)

GetMacLearningOk returns a tuple with the MacLearning field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMacLearning

func (o *ServiceProfileDTO) SetMacLearning(v string)

SetMacLearning sets MacLearning field to given value.

GetMaxAdaptiveEthNum

func (o *ServiceProfileDTO) GetMaxAdaptiveEthNum() int32

GetMaxAdaptiveEthNum returns the MaxAdaptiveEthNum field if non-nil, zero value otherwise.

GetMaxAdaptiveEthNumOk

func (o *ServiceProfileDTO) GetMaxAdaptiveEthNumOk() (*int32, bool)

GetMaxAdaptiveEthNumOk returns a tuple with the MaxAdaptiveEthNum field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxAdaptiveEthNum

func (o *ServiceProfileDTO) SetMaxAdaptiveEthNum(v int32)

SetMaxAdaptiveEthNum sets MaxAdaptiveEthNum field to given value.

HasMaxAdaptiveEthNum

func (o *ServiceProfileDTO) HasMaxAdaptiveEthNum() bool

HasMaxAdaptiveEthNum returns a boolean if a field has been set.

GetMaxAdaptivePotsNum

func (o *ServiceProfileDTO) GetMaxAdaptivePotsNum() int32

GetMaxAdaptivePotsNum returns the MaxAdaptivePotsNum field if non-nil, zero value otherwise.

GetMaxAdaptivePotsNumOk

func (o *ServiceProfileDTO) GetMaxAdaptivePotsNumOk() (*int32, bool)

GetMaxAdaptivePotsNumOk returns a tuple with the MaxAdaptivePotsNum field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxAdaptivePotsNum

func (o *ServiceProfileDTO) SetMaxAdaptivePotsNum(v int32)

SetMaxAdaptivePotsNum sets MaxAdaptivePotsNum field to given value.

HasMaxAdaptivePotsNum

func (o *ServiceProfileDTO) HasMaxAdaptivePotsNum() bool

HasMaxAdaptivePotsNum returns a boolean if a field has been set.

GetMulticastForward

func (o *ServiceProfileDTO) GetMulticastForward() string

GetMulticastForward returns the MulticastForward field if non-nil, zero value otherwise.

GetMulticastForwardOk

func (o *ServiceProfileDTO) GetMulticastForwardOk() (*string, bool)

GetMulticastForwardOk returns a tuple with the MulticastForward field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMulticastForward

func (o *ServiceProfileDTO) SetMulticastForward(v string)

SetMulticastForward sets MulticastForward field to given value.

GetMulticastMode

func (o *ServiceProfileDTO) GetMulticastMode() string

GetMulticastMode returns the MulticastMode field if non-nil, zero value otherwise.

GetMulticastModeOk

func (o *ServiceProfileDTO) GetMulticastModeOk() (*string, bool)

GetMulticastModeOk returns a tuple with the MulticastMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMulticastMode

func (o *ServiceProfileDTO) SetMulticastMode(v string)

SetMulticastMode sets MulticastMode field to given value.

GetName

func (o *ServiceProfileDTO) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *ServiceProfileDTO) 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 *ServiceProfileDTO) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *ServiceProfileDTO) HasName() bool

HasName returns a boolean if a field has been set.

GetNativeVlan

func (o *ServiceProfileDTO) GetNativeVlan() string

GetNativeVlan returns the NativeVlan field if non-nil, zero value otherwise.

GetNativeVlanOk

func (o *ServiceProfileDTO) GetNativeVlanOk() (*string, bool)

GetNativeVlanOk returns a tuple with the NativeVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNativeVlan

func (o *ServiceProfileDTO) SetNativeVlan(v string)

SetNativeVlan sets NativeVlan field to given value.

GetOnuBindNum

func (o *ServiceProfileDTO) GetOnuBindNum() int32

GetOnuBindNum returns the OnuBindNum field if non-nil, zero value otherwise.

GetOnuBindNumOk

func (o *ServiceProfileDTO) GetOnuBindNumOk() (*int32, bool)

GetOnuBindNumOk returns a tuple with the OnuBindNum field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOnuBindNum

func (o *ServiceProfileDTO) SetOnuBindNum(v int32)

SetOnuBindNum sets OnuBindNum field to given value.

HasOnuBindNum

func (o *ServiceProfileDTO) HasOnuBindNum() bool

HasOnuBindNum returns a boolean if a field has been set.

GetPotsNum

func (o *ServiceProfileDTO) GetPotsNum() int32

GetPotsNum returns the PotsNum field if non-nil, zero value otherwise.

GetPotsNumOk

func (o *ServiceProfileDTO) GetPotsNumOk() (*int32, bool)

GetPotsNumOk returns a tuple with the PotsNum field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPotsNum

func (o *ServiceProfileDTO) SetPotsNum(v int32)

SetPotsNum sets PotsNum field to given value.

GetServiceId

func (o *ServiceProfileDTO) GetServiceId() int32

GetServiceId returns the ServiceId field if non-nil, zero value otherwise.

GetServiceIdOk

func (o *ServiceProfileDTO) GetServiceIdOk() (*int32, bool)

GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetServiceId

func (o *ServiceProfileDTO) SetServiceId(v int32)

SetServiceId sets ServiceId field to given value.

GetTaggedType

func (o *ServiceProfileDTO) GetTaggedType() string

GetTaggedType returns the TaggedType field if non-nil, zero value otherwise.

GetTaggedTypeOk

func (o *ServiceProfileDTO) GetTaggedTypeOk() (*string, bool)

GetTaggedTypeOk returns a tuple with the TaggedType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTaggedType

func (o *ServiceProfileDTO) SetTaggedType(v string)

SetTaggedType sets TaggedType field to given value.

HasTaggedType

func (o *ServiceProfileDTO) HasTaggedType() bool

HasTaggedType returns a boolean if a field has been set.

GetTaggedVlanId

func (o *ServiceProfileDTO) GetTaggedVlanId() int32

GetTaggedVlanId returns the TaggedVlanId field if non-nil, zero value otherwise.

GetTaggedVlanIdOk

func (o *ServiceProfileDTO) GetTaggedVlanIdOk() (*int32, bool)

GetTaggedVlanIdOk returns a tuple with the TaggedVlanId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTaggedVlanId

func (o *ServiceProfileDTO) SetTaggedVlanId(v int32)

SetTaggedVlanId sets TaggedVlanId field to given value.

HasTaggedVlanId

func (o *ServiceProfileDTO) HasTaggedVlanId() bool

HasTaggedVlanId returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]