Name | Type | Description | Notes |
---|---|---|---|
DestinationPorts | Pointer to []string | List of destination ports to allow 1-65535 | [optional] |
SourcePorts | Pointer to []string | List of source ports to allow 1-65535, defaults to 1000-65535 | [optional] |
func NewV1ProtocolUdp() *V1ProtocolUdp
NewV1ProtocolUdp instantiates a new V1ProtocolUdp 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 NewV1ProtocolUdpWithDefaults() *V1ProtocolUdp
NewV1ProtocolUdpWithDefaults instantiates a new V1ProtocolUdp 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 *V1ProtocolUdp) GetDestinationPorts() []string
GetDestinationPorts returns the DestinationPorts field if non-nil, zero value otherwise.
func (o *V1ProtocolUdp) GetDestinationPortsOk() (*[]string, bool)
GetDestinationPortsOk returns a tuple with the DestinationPorts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1ProtocolUdp) SetDestinationPorts(v []string)
SetDestinationPorts sets DestinationPorts field to given value.
func (o *V1ProtocolUdp) HasDestinationPorts() bool
HasDestinationPorts returns a boolean if a field has been set.
func (o *V1ProtocolUdp) GetSourcePorts() []string
GetSourcePorts returns the SourcePorts field if non-nil, zero value otherwise.
func (o *V1ProtocolUdp) GetSourcePortsOk() (*[]string, bool)
GetSourcePortsOk returns a tuple with the SourcePorts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1ProtocolUdp) SetSourcePorts(v []string)
SetSourcePorts sets SourcePorts field to given value.
func (o *V1ProtocolUdp) HasSourcePorts() bool
HasSourcePorts returns a boolean if a field has been set.