Name | Type | Description | Notes |
---|---|---|---|
Id | string | ||
SrcPort | Pointer to int32 | [optional] | |
DstPort | Pointer to int32 | [optional] |
func NewPortForwarding(id string, ) *PortForwarding
NewPortForwarding instantiates a new PortForwarding 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
func NewPortForwardingWithDefaults() *PortForwarding
NewPortForwardingWithDefaults instantiates a new PortForwarding 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
func (o *PortForwarding) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *PortForwarding) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PortForwarding) SetId(v string)
SetId sets Id field to given value.
func (o *PortForwarding) GetSrcPort() int32
GetSrcPort returns the SrcPort field if non-nil, zero value otherwise.
func (o *PortForwarding) GetSrcPortOk() (*int32, bool)
GetSrcPortOk returns a tuple with the SrcPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PortForwarding) SetSrcPort(v int32)
SetSrcPort sets SrcPort field to given value.
func (o *PortForwarding) HasSrcPort() bool
HasSrcPort returns a boolean if a field has been set.
func (o *PortForwarding) GetDstPort() int32
GetDstPort returns the DstPort field if non-nil, zero value otherwise.
func (o *PortForwarding) GetDstPortOk() (*int32, bool)
GetDstPortOk returns a tuple with the DstPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PortForwarding) SetDstPort(v int32)
SetDstPort sets DstPort field to given value.
func (o *PortForwarding) HasDstPort() bool
HasDstPort returns a boolean if a field has been set.