Skip to content

LanPort

Properties

Name Type Description Notes
Duplex Pointer to int32 Duplex [optional]
InternetState Pointer to int32 Port Internet State [optional]
LinkSpeed Pointer to int32 Link Speed [optional]
Name Pointer to string Port Name [optional]
OnlineDetection Pointer to int32 Port Online Detection [optional]
Port Pointer to string Port Id [optional]
Status Pointer to int32 Port Status [optional]

Methods

NewLanPort

func NewLanPort() *LanPort

NewLanPort instantiates a new LanPort 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

NewLanPortWithDefaults

func NewLanPortWithDefaults() *LanPort

NewLanPortWithDefaults instantiates a new LanPort 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

GetDuplex

func (o *LanPort) GetDuplex() int32

GetDuplex returns the Duplex field if non-nil, zero value otherwise.

GetDuplexOk

func (o *LanPort) GetDuplexOk() (*int32, bool)

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

SetDuplex

func (o *LanPort) SetDuplex(v int32)

SetDuplex sets Duplex field to given value.

HasDuplex

func (o *LanPort) HasDuplex() bool

HasDuplex returns a boolean if a field has been set.

GetInternetState

func (o *LanPort) GetInternetState() int32

GetInternetState returns the InternetState field if non-nil, zero value otherwise.

GetInternetStateOk

func (o *LanPort) GetInternetStateOk() (*int32, bool)

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

SetInternetState

func (o *LanPort) SetInternetState(v int32)

SetInternetState sets InternetState field to given value.

HasInternetState

func (o *LanPort) HasInternetState() bool

HasInternetState returns a boolean if a field has been set.

GetLinkSpeed

func (o *LanPort) GetLinkSpeed() int32

GetLinkSpeed returns the LinkSpeed field if non-nil, zero value otherwise.

GetLinkSpeedOk

func (o *LanPort) GetLinkSpeedOk() (*int32, bool)

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

SetLinkSpeed

func (o *LanPort) SetLinkSpeed(v int32)

SetLinkSpeed sets LinkSpeed field to given value.

HasLinkSpeed

func (o *LanPort) HasLinkSpeed() bool

HasLinkSpeed returns a boolean if a field has been set.

GetName

func (o *LanPort) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

HasName

func (o *LanPort) HasName() bool

HasName returns a boolean if a field has been set.

GetOnlineDetection

func (o *LanPort) GetOnlineDetection() int32

GetOnlineDetection returns the OnlineDetection field if non-nil, zero value otherwise.

GetOnlineDetectionOk

func (o *LanPort) GetOnlineDetectionOk() (*int32, bool)

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

SetOnlineDetection

func (o *LanPort) SetOnlineDetection(v int32)

SetOnlineDetection sets OnlineDetection field to given value.

HasOnlineDetection

func (o *LanPort) HasOnlineDetection() bool

HasOnlineDetection returns a boolean if a field has been set.

GetPort

func (o *LanPort) GetPort() string

GetPort returns the Port field if non-nil, zero value otherwise.

GetPortOk

func (o *LanPort) GetPortOk() (*string, bool)

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

SetPort

func (o *LanPort) SetPort(v string)

SetPort sets Port field to given value.

HasPort

func (o *LanPort) HasPort() bool

HasPort returns a boolean if a field has been set.

GetStatus

func (o *LanPort) GetStatus() int32

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *LanPort) GetStatusOk() (*int32, bool)

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

SetStatus

func (o *LanPort) SetStatus(v int32)

SetStatus sets Status field to given value.

HasStatus

func (o *LanPort) HasStatus() bool

HasStatus returns a boolean if a field has been set.

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