Name | Type | Description | Notes |
---|---|---|---|
Code | Pointer to NullableInt32 | [optional] | |
Description | Pointer to NullableString | [optional] | |
Destination | Pointer to string | [optional] | |
Log | Pointer to NullableBool | [optional] | |
Ports | Pointer to NullableString | [optional] | |
Protocol | Pointer to string | [optional] | |
Type | Pointer to NullableInt32 | [optional] |
func NewRule() *Rule
NewRule instantiates a new Rule 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 NewRuleWithDefaults() *Rule
NewRuleWithDefaults instantiates a new Rule 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 *Rule) GetCode() int32
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *Rule) GetCodeOk() (*int32, bool)
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetCode(v int32)
SetCode sets Code field to given value.
func (o *Rule) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *Rule) SetCodeNil(b bool)
SetCodeNil sets the value for Code to be an explicit nil
func (o *Rule) UnsetCode()
UnsetCode ensures that no value is present for Code, not even an explicit nil
func (o *Rule) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *Rule) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *Rule) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *Rule) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *Rule) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *Rule) GetDestination() string
GetDestination returns the Destination field if non-nil, zero value otherwise.
func (o *Rule) GetDestinationOk() (*string, bool)
GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetDestination(v string)
SetDestination sets Destination field to given value.
func (o *Rule) HasDestination() bool
HasDestination returns a boolean if a field has been set.
func (o *Rule) GetLog() bool
GetLog returns the Log field if non-nil, zero value otherwise.
func (o *Rule) GetLogOk() (*bool, bool)
GetLogOk returns a tuple with the Log field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetLog(v bool)
SetLog sets Log field to given value.
func (o *Rule) HasLog() bool
HasLog returns a boolean if a field has been set.
func (o *Rule) SetLogNil(b bool)
SetLogNil sets the value for Log to be an explicit nil
func (o *Rule) UnsetLog()
UnsetLog ensures that no value is present for Log, not even an explicit nil
func (o *Rule) GetPorts() string
GetPorts returns the Ports field if non-nil, zero value otherwise.
func (o *Rule) GetPortsOk() (*string, bool)
GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Rule) SetPorts(v string)
SetPorts sets Ports field to given value.
func (o *Rule) HasPorts() bool
HasPorts returns a boolean if a field has been set.
func (o *Rule) SetPortsNil(b bool)
SetPortsNil sets the value for Ports to be an explicit nil
func (o *Rule) UnsetPorts()
UnsetPorts ensures that no value is present for Ports, not even an explicit nil
func (o *Rule) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *Rule) 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 *Rule) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *Rule) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
func (o *Rule) GetType() int32
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Rule) GetTypeOk() (*int32, 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 *Rule) SetType(v int32)
SetType sets Type field to given value.
func (o *Rule) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Rule) SetTypeNil(b bool)
SetTypeNil sets the value for Type to be an explicit nil
func (o *Rule) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil