| Name | Type | Description | Notes |
|---|---|---|---|
| Direction | string | The direction of traffic that the firewall rule applies to. | |
| Ethertype | string | The Ethernet type associated with the rule. | |
| Protocol | string | The network protocol associated with the rule. Call the `GET /core/sg-rules-protocols` endpoint to retrieve a list of permitted network protocols. | |
| RemoteIpPrefix | string | The IP address range that is allowed to access the specified port. Use "0.0.0.0/0" to allow any IP address. | |
| PortRangeMin | Pointer to int32 | [optional] | |
| PortRangeMax | Pointer to int32 | [optional] |
func NewCreateSecurityRulePayload(direction string, ethertype string, protocol string, remoteIpPrefix string, ) *CreateSecurityRulePayload
NewCreateSecurityRulePayload instantiates a new CreateSecurityRulePayload 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 NewCreateSecurityRulePayloadWithDefaults() *CreateSecurityRulePayload
NewCreateSecurityRulePayloadWithDefaults instantiates a new CreateSecurityRulePayload 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 *CreateSecurityRulePayload) GetDirection() string
GetDirection returns the Direction field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetDirectionOk() (*string, bool)
GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSecurityRulePayload) SetDirection(v string)
SetDirection sets Direction field to given value.
func (o *CreateSecurityRulePayload) GetEthertype() string
GetEthertype returns the Ethertype field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetEthertypeOk() (*string, bool)
GetEthertypeOk returns a tuple with the Ethertype field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSecurityRulePayload) SetEthertype(v string)
SetEthertype sets Ethertype field to given value.
func (o *CreateSecurityRulePayload) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetProtocolOk() (*string, 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 *CreateSecurityRulePayload) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *CreateSecurityRulePayload) GetRemoteIpPrefix() string
GetRemoteIpPrefix returns the RemoteIpPrefix field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetRemoteIpPrefixOk() (*string, bool)
GetRemoteIpPrefixOk returns a tuple with the RemoteIpPrefix field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSecurityRulePayload) SetRemoteIpPrefix(v string)
SetRemoteIpPrefix sets RemoteIpPrefix field to given value.
func (o *CreateSecurityRulePayload) GetPortRangeMin() int32
GetPortRangeMin returns the PortRangeMin field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetPortRangeMinOk() (*int32, bool)
GetPortRangeMinOk returns a tuple with the PortRangeMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSecurityRulePayload) SetPortRangeMin(v int32)
SetPortRangeMin sets PortRangeMin field to given value.
func (o *CreateSecurityRulePayload) HasPortRangeMin() bool
HasPortRangeMin returns a boolean if a field has been set.
func (o *CreateSecurityRulePayload) GetPortRangeMax() int32
GetPortRangeMax returns the PortRangeMax field if non-nil, zero value otherwise.
func (o *CreateSecurityRulePayload) GetPortRangeMaxOk() (*int32, bool)
GetPortRangeMaxOk returns a tuple with the PortRangeMax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSecurityRulePayload) SetPortRangeMax(v int32)
SetPortRangeMax sets PortRangeMax field to given value.
func (o *CreateSecurityRulePayload) HasPortRangeMax() bool
HasPortRangeMax returns a boolean if a field has been set.