Name | Type | Description | Notes |
---|---|---|---|
Name | string | ||
Ports | []int32 | ||
Protocol | Pointer to string | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | [optional] |
Description | Pointer to string | [optional] | |
Comments | Pointer to string | [optional] | |
Tags | Pointer to []NestedTagRequest | [optional] | |
CustomFields | Pointer to map[string]interface{} | [optional] |
func NewServiceTemplateRequest(name string, ports []int32, ) *ServiceTemplateRequest
NewServiceTemplateRequest instantiates a new ServiceTemplateRequest 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 NewServiceTemplateRequestWithDefaults() *ServiceTemplateRequest
NewServiceTemplateRequestWithDefaults instantiates a new ServiceTemplateRequest 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 *ServiceTemplateRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) 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.
func (o *ServiceTemplateRequest) SetName(v string)
SetName sets Name field to given value.
func (o *ServiceTemplateRequest) GetPorts() []int32
GetPorts returns the Ports field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) GetPortsOk() (*[]int32, 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 *ServiceTemplateRequest) SetPorts(v []int32)
SetPorts sets Ports field to given value.
func (o *ServiceTemplateRequest) GetProtocol() string
GetProtocol returns the Protocol field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) 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 *ServiceTemplateRequest) SetProtocol(v string)
SetProtocol sets Protocol field to given value.
func (o *ServiceTemplateRequest) HasProtocol() bool
HasProtocol returns a boolean if a field has been set.
func (o *ServiceTemplateRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) 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 *ServiceTemplateRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *ServiceTemplateRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ServiceTemplateRequest) GetComments() string
GetComments returns the Comments field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) GetCommentsOk() (*string, bool)
GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ServiceTemplateRequest) SetComments(v string)
SetComments sets Comments field to given value.
func (o *ServiceTemplateRequest) HasComments() bool
HasComments returns a boolean if a field has been set.
func (o *ServiceTemplateRequest) GetTags() []NestedTagRequest
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ServiceTemplateRequest) SetTags(v []NestedTagRequest)
SetTags sets Tags field to given value.
func (o *ServiceTemplateRequest) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ServiceTemplateRequest) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
func (o *ServiceTemplateRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)
GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ServiceTemplateRequest) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *ServiceTemplateRequest) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.