# NicFirewallRule

## Properties

| Name               | Type                  | Description                                                                                                                                                                          | Notes       |
| ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| **Name**           | Pointer to **string** | The name of the firewall rule.                                                                                                                                                       | \[optional] |
| **Protocol**       | **string**            | The protocol for the rule. The property cannot be modified after its creation (not allowed in update requests).                                                                      |             |
| **SourceMac**      | Pointer to **string** | Only traffic originating from the respective MAC address is permitted. Valid format: 'aa:bb:cc:dd:ee:ff'. The value 'null' allows traffic from any MAC address.                      | \[optional] |
| **SourceIp**       | Pointer to **string** | Only traffic originating from the respective IPv4 address is permitted. The value 'null' allows traffic from any IP address.                                                         | \[optional] |
| **TargetIp**       | Pointer to **string** | If the target NIC has multiple IP addresses, only the traffic directed to the respective IP address of the NIC is allowed. The value 'null' allows traffic to any target IP address. | \[optional] |
| **IcmpCode**       | Pointer to **int32**  | Sets the allowed code (from 0 to 254) when ICMP protocol is selected. The value 'null'' allows all codes.                                                                            | \[optional] |
| **IcmpType**       | Pointer to **int32**  | Sets the allowed type (from 0 to 254) if the protocol ICMP is selected. The value 'null' allows all types.                                                                           | \[optional] |
| **PortRangeStart** | Pointer to **int32**  | Sets the initial range of the allowed port (from 1 to 65535) if the protocol TCP or UDP is selected. The value 'null' for 'portRangeStart' and 'portRangeEnd' allows all ports.      | \[optional] |
| **PortRangeEnd**   | Pointer to **int32**  | Sets the end range of the allowed port (from 1 to 65535) if the protocol TCP or UDP is selected. The value 'null' for 'portRangeStart' and 'portRangeEnd' allows all ports.          | \[optional] |
| **Type**           | Pointer to **string** | The firewall rule type. If not specified, the default value 'INGRESS' is used.                                                                                                       | \[optional] |

## Methods

### NewNicFirewallRule

`func NewNicFirewallRule(protocol string, ) *NicFirewallRule`

NewNicFirewallRule instantiates a new NicFirewallRule 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

### NewNicFirewallRuleWithDefaults

`func NewNicFirewallRuleWithDefaults() *NicFirewallRule`

NewNicFirewallRuleWithDefaults instantiates a new NicFirewallRule 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

### GetName

`func (o *NicFirewallRule) GetName() string`

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

### GetNameOk

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

SetName sets Name field to given value.

### HasName

`func (o *NicFirewallRule) HasName() bool`

HasName returns a boolean if a field has been set.

### GetProtocol

`func (o *NicFirewallRule) GetProtocol() string`

GetProtocol returns the Protocol field if non-nil, zero value otherwise.

### GetProtocolOk

`func (o *NicFirewallRule) 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.

### SetProtocol

`func (o *NicFirewallRule) SetProtocol(v string)`

SetProtocol sets Protocol field to given value.

### GetSourceMac

`func (o *NicFirewallRule) GetSourceMac() string`

GetSourceMac returns the SourceMac field if non-nil, zero value otherwise.

### GetSourceMacOk

`func (o *NicFirewallRule) GetSourceMacOk() (*string, bool)`

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

### SetSourceMac

`func (o *NicFirewallRule) SetSourceMac(v string)`

SetSourceMac sets SourceMac field to given value.

### HasSourceMac

`func (o *NicFirewallRule) HasSourceMac() bool`

HasSourceMac returns a boolean if a field has been set.

### GetSourceIp

`func (o *NicFirewallRule) GetSourceIp() string`

GetSourceIp returns the SourceIp field if non-nil, zero value otherwise.

### GetSourceIpOk

`func (o *NicFirewallRule) GetSourceIpOk() (*string, bool)`

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

### SetSourceIp

`func (o *NicFirewallRule) SetSourceIp(v string)`

SetSourceIp sets SourceIp field to given value.

### HasSourceIp

`func (o *NicFirewallRule) HasSourceIp() bool`

HasSourceIp returns a boolean if a field has been set.

### GetTargetIp

`func (o *NicFirewallRule) GetTargetIp() string`

GetTargetIp returns the TargetIp field if non-nil, zero value otherwise.

### GetTargetIpOk

`func (o *NicFirewallRule) GetTargetIpOk() (*string, bool)`

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

### SetTargetIp

`func (o *NicFirewallRule) SetTargetIp(v string)`

SetTargetIp sets TargetIp field to given value.

### HasTargetIp

`func (o *NicFirewallRule) HasTargetIp() bool`

HasTargetIp returns a boolean if a field has been set.

### GetIcmpCode

`func (o *NicFirewallRule) GetIcmpCode() int32`

GetIcmpCode returns the IcmpCode field if non-nil, zero value otherwise.

### GetIcmpCodeOk

`func (o *NicFirewallRule) GetIcmpCodeOk() (*int32, bool)`

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

### SetIcmpCode

`func (o *NicFirewallRule) SetIcmpCode(v int32)`

SetIcmpCode sets IcmpCode field to given value.

### HasIcmpCode

`func (o *NicFirewallRule) HasIcmpCode() bool`

HasIcmpCode returns a boolean if a field has been set.

### GetIcmpType

`func (o *NicFirewallRule) GetIcmpType() int32`

GetIcmpType returns the IcmpType field if non-nil, zero value otherwise.

### GetIcmpTypeOk

`func (o *NicFirewallRule) GetIcmpTypeOk() (*int32, bool)`

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

### SetIcmpType

`func (o *NicFirewallRule) SetIcmpType(v int32)`

SetIcmpType sets IcmpType field to given value.

### HasIcmpType

`func (o *NicFirewallRule) HasIcmpType() bool`

HasIcmpType returns a boolean if a field has been set.

### GetPortRangeStart

`func (o *NicFirewallRule) GetPortRangeStart() int32`

GetPortRangeStart returns the PortRangeStart field if non-nil, zero value otherwise.

### GetPortRangeStartOk

`func (o *NicFirewallRule) GetPortRangeStartOk() (*int32, bool)`

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

### SetPortRangeStart

`func (o *NicFirewallRule) SetPortRangeStart(v int32)`

SetPortRangeStart sets PortRangeStart field to given value.

### HasPortRangeStart

`func (o *NicFirewallRule) HasPortRangeStart() bool`

HasPortRangeStart returns a boolean if a field has been set.

### GetPortRangeEnd

`func (o *NicFirewallRule) GetPortRangeEnd() int32`

GetPortRangeEnd returns the PortRangeEnd field if non-nil, zero value otherwise.

### GetPortRangeEndOk

`func (o *NicFirewallRule) GetPortRangeEndOk() (*int32, bool)`

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

### SetPortRangeEnd

`func (o *NicFirewallRule) SetPortRangeEnd(v int32)`

SetPortRangeEnd sets PortRangeEnd field to given value.

### HasPortRangeEnd

`func (o *NicFirewallRule) HasPortRangeEnd() bool`

HasPortRangeEnd returns a boolean if a field has been set.

### GetType

`func (o *NicFirewallRule) GetType() string`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *NicFirewallRule) GetTypeOk() (*string, 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.

### SetType

`func (o *NicFirewallRule) SetType(v string)`

SetType sets Type field to given value.

### HasType

`func (o *NicFirewallRule) HasType() bool`

HasType returns a boolean if a field has been set.
