PortForwardingInfoTemplate
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| DMZ | bool | With DMZ enabled, all ports are open and the traffic from external network will be forwarded to the specific destination IP in the LAN. | |
| ExternalPort | Pointer to string | External port corresponds with source port in web. ExternalPort should be within the range of 1–65535. | [optional] |
| ForwardIp | string | Forward IP corresponds with destination IP in web. Forward IP | |
| ForwardPort | Pointer to string | Forward port corresponds with destination port in web. ForwardPort should be 1 or 1-10, within the range of 1–65535. | [optional] |
| From | int32 | From corresponds with source IP in web. From should be a value as follows: 0: where; 1: limited address | |
| Id | Pointer to string | Port-forwarding ID | [optional] |
| InterfaceWanPortId | []string | This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. | |
| LimitedAddresses | Pointer to []string | Only for limited address | [optional] |
| Name | string | Name, name should contain 1 to 64 characters. | |
| Protocol | Pointer to int32 | Protocol should be a value as follows: 0: ALL; 1: TCP; 2: UDP. | [optional] |
| SiteId | Pointer to string | Site ID | [optional] |
| Status | bool | Port-forwarding enable status. | |
| VirtualWanId | Pointer to []string | This field represents VirtualWan ID. VirtualWan ID can be obtained from 'Query available virtual WAN list' interface | [optional] |
| WanIps | Pointer to []PortIpOpenApiVO | WAN IPs | [optional] |
Methods
NewPortForwardingInfoTemplate
func NewPortForwardingInfoTemplate(dMZ bool, forwardIp string, from int32, interfaceWanPortId []string, name string, status bool, ) *PortForwardingInfoTemplate
NewPortForwardingInfoTemplate instantiates a new PortForwardingInfoTemplate 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
NewPortForwardingInfoTemplateWithDefaults
func NewPortForwardingInfoTemplateWithDefaults() *PortForwardingInfoTemplate
NewPortForwardingInfoTemplateWithDefaults instantiates a new PortForwardingInfoTemplate 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
GetDMZ
func (o *PortForwardingInfoTemplate) GetDMZ() bool
GetDMZ returns the DMZ field if non-nil, zero value otherwise.
GetDMZOk
func (o *PortForwardingInfoTemplate) GetDMZOk() (*bool, bool)
GetDMZOk returns a tuple with the DMZ field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDMZ
func (o *PortForwardingInfoTemplate) SetDMZ(v bool)
SetDMZ sets DMZ field to given value.
GetExternalPort
func (o *PortForwardingInfoTemplate) GetExternalPort() string
GetExternalPort returns the ExternalPort field if non-nil, zero value otherwise.
GetExternalPortOk
func (o *PortForwardingInfoTemplate) GetExternalPortOk() (*string, bool)
GetExternalPortOk returns a tuple with the ExternalPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetExternalPort
func (o *PortForwardingInfoTemplate) SetExternalPort(v string)
SetExternalPort sets ExternalPort field to given value.
HasExternalPort
func (o *PortForwardingInfoTemplate) HasExternalPort() bool
HasExternalPort returns a boolean if a field has been set.
GetForwardIp
func (o *PortForwardingInfoTemplate) GetForwardIp() string
GetForwardIp returns the ForwardIp field if non-nil, zero value otherwise.
GetForwardIpOk
func (o *PortForwardingInfoTemplate) GetForwardIpOk() (*string, bool)
GetForwardIpOk returns a tuple with the ForwardIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetForwardIp
func (o *PortForwardingInfoTemplate) SetForwardIp(v string)
SetForwardIp sets ForwardIp field to given value.
GetForwardPort
func (o *PortForwardingInfoTemplate) GetForwardPort() string
GetForwardPort returns the ForwardPort field if non-nil, zero value otherwise.
GetForwardPortOk
func (o *PortForwardingInfoTemplate) GetForwardPortOk() (*string, bool)
GetForwardPortOk returns a tuple with the ForwardPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetForwardPort
func (o *PortForwardingInfoTemplate) SetForwardPort(v string)
SetForwardPort sets ForwardPort field to given value.
HasForwardPort
func (o *PortForwardingInfoTemplate) HasForwardPort() bool
HasForwardPort returns a boolean if a field has been set.
GetFrom
func (o *PortForwardingInfoTemplate) GetFrom() int32
GetFrom returns the From field if non-nil, zero value otherwise.
GetFromOk
func (o *PortForwardingInfoTemplate) GetFromOk() (*int32, bool)
GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFrom
func (o *PortForwardingInfoTemplate) SetFrom(v int32)
SetFrom sets From field to given value.
GetId
func (o *PortForwardingInfoTemplate) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *PortForwardingInfoTemplate) 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.
SetId
func (o *PortForwardingInfoTemplate) SetId(v string)
SetId sets Id field to given value.
HasId
func (o *PortForwardingInfoTemplate) HasId() bool
HasId returns a boolean if a field has been set.
GetInterfaceWanPortId
func (o *PortForwardingInfoTemplate) GetInterfaceWanPortId() []string
GetInterfaceWanPortId returns the InterfaceWanPortId field if non-nil, zero value otherwise.
GetInterfaceWanPortIdOk
func (o *PortForwardingInfoTemplate) GetInterfaceWanPortIdOk() (*[]string, bool)
GetInterfaceWanPortIdOk returns a tuple with the InterfaceWanPortId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetInterfaceWanPortId
func (o *PortForwardingInfoTemplate) SetInterfaceWanPortId(v []string)
SetInterfaceWanPortId sets InterfaceWanPortId field to given value.
GetLimitedAddresses
func (o *PortForwardingInfoTemplate) GetLimitedAddresses() []string
GetLimitedAddresses returns the LimitedAddresses field if non-nil, zero value otherwise.
GetLimitedAddressesOk
func (o *PortForwardingInfoTemplate) GetLimitedAddressesOk() (*[]string, bool)
GetLimitedAddressesOk returns a tuple with the LimitedAddresses field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLimitedAddresses
func (o *PortForwardingInfoTemplate) SetLimitedAddresses(v []string)
SetLimitedAddresses sets LimitedAddresses field to given value.
HasLimitedAddresses
func (o *PortForwardingInfoTemplate) HasLimitedAddresses() bool
HasLimitedAddresses returns a boolean if a field has been set.
GetName
func (o *PortForwardingInfoTemplate) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *PortForwardingInfoTemplate) 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 *PortForwardingInfoTemplate) SetName(v string)
SetName sets Name field to given value.
GetProtocol
func (o *PortForwardingInfoTemplate) GetProtocol() int32
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
GetProtocolOk
func (o *PortForwardingInfoTemplate) GetProtocolOk() (*int32, bool)
GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetProtocol
func (o *PortForwardingInfoTemplate) SetProtocol(v int32)
SetProtocol sets Protocol field to given value.
HasProtocol
func (o *PortForwardingInfoTemplate) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
GetSiteId
func (o *PortForwardingInfoTemplate) GetSiteId() string
GetSiteId returns the SiteId field if non-nil, zero value otherwise.
GetSiteIdOk
func (o *PortForwardingInfoTemplate) GetSiteIdOk() (*string, bool)
GetSiteIdOk returns a tuple with the SiteId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSiteId
func (o *PortForwardingInfoTemplate) SetSiteId(v string)
SetSiteId sets SiteId field to given value.
HasSiteId
func (o *PortForwardingInfoTemplate) HasSiteId() bool
HasSiteId returns a boolean if a field has been set.
GetStatus
func (o *PortForwardingInfoTemplate) GetStatus() bool
GetStatus returns the Status field if non-nil, zero value otherwise.
GetStatusOk
func (o *PortForwardingInfoTemplate) GetStatusOk() (*bool, 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 *PortForwardingInfoTemplate) SetStatus(v bool)
SetStatus sets Status field to given value.
GetVirtualWanId
func (o *PortForwardingInfoTemplate) GetVirtualWanId() []string
GetVirtualWanId returns the VirtualWanId field if non-nil, zero value otherwise.
GetVirtualWanIdOk
func (o *PortForwardingInfoTemplate) GetVirtualWanIdOk() (*[]string, bool)
GetVirtualWanIdOk returns a tuple with the VirtualWanId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVirtualWanId
func (o *PortForwardingInfoTemplate) SetVirtualWanId(v []string)
SetVirtualWanId sets VirtualWanId field to given value.
HasVirtualWanId
func (o *PortForwardingInfoTemplate) HasVirtualWanId() bool
HasVirtualWanId returns a boolean if a field has been set.
GetWanIps
func (o *PortForwardingInfoTemplate) GetWanIps() []PortIpOpenApiVO
GetWanIps returns the WanIps field if non-nil, zero value otherwise.
GetWanIpsOk
func (o *PortForwardingInfoTemplate) GetWanIpsOk() (*[]PortIpOpenApiVO, bool)
GetWanIpsOk returns a tuple with the WanIps field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWanIps
func (o *PortForwardingInfoTemplate) SetWanIps(v []PortIpOpenApiVO)
SetWanIps sets WanIps field to given value.
HasWanIps
func (o *PortForwardingInfoTemplate) HasWanIps() bool
HasWanIps returns a boolean if a field has been set.