Skip to content

Latest commit

 

History

History
262 lines (145 loc) · 6.08 KB

Rule.md

File metadata and controls

262 lines (145 loc) · 6.08 KB

Rule

Properties

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]

Methods

NewRule

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

NewRuleWithDefaults

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

GetCode

func (o *Rule) GetCode() int32

GetCode returns the Code field if non-nil, zero value otherwise.

GetCodeOk

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.

SetCode

func (o *Rule) SetCode(v int32)

SetCode sets Code field to given value.

HasCode

func (o *Rule) HasCode() bool

HasCode returns a boolean if a field has been set.

SetCodeNil

func (o *Rule) SetCodeNil(b bool)

SetCodeNil sets the value for Code to be an explicit nil

UnsetCode

func (o *Rule) UnsetCode()

UnsetCode ensures that no value is present for Code, not even an explicit nil

GetDescription

func (o *Rule) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

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.

SetDescription

func (o *Rule) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Rule) HasDescription() bool

HasDescription returns a boolean if a field has been set.

SetDescriptionNil

func (o *Rule) SetDescriptionNil(b bool)

SetDescriptionNil sets the value for Description to be an explicit nil

UnsetDescription

func (o *Rule) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

GetDestination

func (o *Rule) GetDestination() string

GetDestination returns the Destination field if non-nil, zero value otherwise.

GetDestinationOk

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.

SetDestination

func (o *Rule) SetDestination(v string)

SetDestination sets Destination field to given value.

HasDestination

func (o *Rule) HasDestination() bool

HasDestination returns a boolean if a field has been set.

GetLog

func (o *Rule) GetLog() bool

GetLog returns the Log field if non-nil, zero value otherwise.

GetLogOk

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.

SetLog

func (o *Rule) SetLog(v bool)

SetLog sets Log field to given value.

HasLog

func (o *Rule) HasLog() bool

HasLog returns a boolean if a field has been set.

SetLogNil

func (o *Rule) SetLogNil(b bool)

SetLogNil sets the value for Log to be an explicit nil

UnsetLog

func (o *Rule) UnsetLog()

UnsetLog ensures that no value is present for Log, not even an explicit nil

GetPorts

func (o *Rule) GetPorts() string

GetPorts returns the Ports field if non-nil, zero value otherwise.

GetPortsOk

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.

SetPorts

func (o *Rule) SetPorts(v string)

SetPorts sets Ports field to given value.

HasPorts

func (o *Rule) HasPorts() bool

HasPorts returns a boolean if a field has been set.

SetPortsNil

func (o *Rule) SetPortsNil(b bool)

SetPortsNil sets the value for Ports to be an explicit nil

UnsetPorts

func (o *Rule) UnsetPorts()

UnsetPorts ensures that no value is present for Ports, not even an explicit nil

GetProtocol

func (o *Rule) GetProtocol() string

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

GetProtocolOk

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.

SetProtocol

func (o *Rule) SetProtocol(v string)

SetProtocol sets Protocol field to given value.

HasProtocol

func (o *Rule) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

GetType

func (o *Rule) GetType() int32

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

GetTypeOk

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.

SetType

func (o *Rule) SetType(v int32)

SetType sets Type field to given value.

HasType

func (o *Rule) HasType() bool

HasType returns a boolean if a field has been set.

SetTypeNil

func (o *Rule) SetTypeNil(b bool)

SetTypeNil sets the value for Type to be an explicit nil

UnsetType

func (o *Rule) UnsetType()

UnsetType ensures that no value is present for Type, not even an explicit nil

[Back to Model list] [Back to API list] [Back to README]