NatGatewayRuleProperties
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
func NewNatGatewayRuleProperties(name string, publicIp string, sourceSubnet string, ) *NatGatewayRuleProperties
NewNatGatewayRuleProperties instantiates a new NatGatewayRuleProperties 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 NewNatGatewayRulePropertiesWithDefaults() *NatGatewayRuleProperties
NewNatGatewayRulePropertiesWithDefaults instantiates a new NatGatewayRuleProperties 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 *NatGatewayRuleProperties) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) 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.
func (o *NatGatewayRuleProperties) SetName(v string)
SetName sets Name field to given value.
func (o *NatGatewayRuleProperties) GetProtocol() NatGatewayRuleProtocol
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetProtocolOk() (*NatGatewayRuleProtocol, 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.
func (o *NatGatewayRuleProperties) SetProtocol(v NatGatewayRuleProtocol)
SetProtocol sets Protocol field to given value.
func (o *NatGatewayRuleProperties) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
func (o *NatGatewayRuleProperties) GetPublicIp() string
GetPublicIp returns the PublicIp field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetPublicIpOk() (*string, bool)
GetPublicIpOk returns a tuple with the PublicIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NatGatewayRuleProperties) SetPublicIp(v string)
SetPublicIp sets PublicIp field to given value.
func (o *NatGatewayRuleProperties) GetSourceSubnet() string
GetSourceSubnet returns the SourceSubnet field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetSourceSubnetOk() (*string, bool)
GetSourceSubnetOk returns a tuple with the SourceSubnet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NatGatewayRuleProperties) SetSourceSubnet(v string)
SetSourceSubnet sets SourceSubnet field to given value.
func (o *NatGatewayRuleProperties) GetTargetPortRange() TargetPortRange
GetTargetPortRange returns the TargetPortRange field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetTargetPortRangeOk() (*TargetPortRange, bool)
GetTargetPortRangeOk returns a tuple with the TargetPortRange field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NatGatewayRuleProperties) SetTargetPortRange(v TargetPortRange)
SetTargetPortRange sets TargetPortRange field to given value.
func (o *NatGatewayRuleProperties) HasTargetPortRange() bool
HasTargetPortRange returns a boolean if a field has been set.
func (o *NatGatewayRuleProperties) GetTargetSubnet() string
GetTargetSubnet returns the TargetSubnet field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetTargetSubnetOk() (*string, bool)
GetTargetSubnetOk returns a tuple with the TargetSubnet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NatGatewayRuleProperties) SetTargetSubnet(v string)
SetTargetSubnet sets TargetSubnet field to given value.
func (o *NatGatewayRuleProperties) HasTargetSubnet() bool
HasTargetSubnet returns a boolean if a field has been set.
func (o *NatGatewayRuleProperties) GetType() NatGatewayRuleType
GetType returns the Type field if non-nil, zero value otherwise.
func (o *NatGatewayRuleProperties) GetTypeOk() (*NatGatewayRuleType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NatGatewayRuleProperties) SetType(v NatGatewayRuleType)
SetType sets Type field to given value.
func (o *NatGatewayRuleProperties) HasType() bool
HasType returns a boolean if a field has been set.
Name
string
The name of the NAT Gateway rule.
Protocol
Pointer to NatGatewayRuleProtocol
Protocol of the NAT Gateway rule. Defaults to ALL. If protocol is 'ICMP' then targetPortRange start and end cannot be set.
[optional]
PublicIp
string
Public IP address of the NAT Gateway rule. Specifies the address used for masking outgoing packets source address field. Should be one of the customer reserved IP address already configured on the NAT Gateway resource
SourceSubnet
string
Source subnet of the NAT Gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets source IP address.
TargetPortRange
Pointer to TargetPortRange
[optional]
TargetSubnet
Pointer to string
Target or destination subnet of the NAT Gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets destination IP address. If none is provided, rule will match any address.
[optional]
Type
Pointer to NatGatewayRuleType
Type of the NAT Gateway rule.
[optional]