/* * Subset of Influx API covered by Influx CLI * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 2.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package api import ( "encoding/json" ) // TemplateSummaryDiffNotificationRuleFields struct for TemplateSummaryDiffNotificationRuleFields type TemplateSummaryDiffNotificationRuleFields struct { Name string `json:"name" yaml:"name"` Description *string `json:"description,omitempty" yaml:"description,omitempty"` EndpointName string `json:"endpointName" yaml:"endpointName"` EndpointID uint64 `json:"endpointID" yaml:"endpointID"` EndpointType string `json:"endpointType" yaml:"endpointType"` Every string `json:"every" yaml:"every"` Offset string `json:"offset" yaml:"offset"` MessageTemplate *string `json:"messageTemplate,omitempty" yaml:"messageTemplate,omitempty"` } // NewTemplateSummaryDiffNotificationRuleFields instantiates a new TemplateSummaryDiffNotificationRuleFields 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 NewTemplateSummaryDiffNotificationRuleFields(name string, endpointName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryDiffNotificationRuleFields { this := TemplateSummaryDiffNotificationRuleFields{} this.Name = name this.EndpointName = endpointName this.EndpointID = endpointID this.EndpointType = endpointType this.Every = every this.Offset = offset return &this } // NewTemplateSummaryDiffNotificationRuleFieldsWithDefaults instantiates a new TemplateSummaryDiffNotificationRuleFields 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 NewTemplateSummaryDiffNotificationRuleFieldsWithDefaults() *TemplateSummaryDiffNotificationRuleFields { this := TemplateSummaryDiffNotificationRuleFields{} return &this } // GetName returns the Name field value func (o *TemplateSummaryDiffNotificationRuleFields) GetName() string { if o == nil { var ret string return ret } return o.Name } // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetNameOk() (*string, bool) { if o == nil { return nil, false } return &o.Name, true } // SetName sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetName(v string) { o.Name = v } // GetDescription returns the Description field value if set, zero value otherwise. func (o *TemplateSummaryDiffNotificationRuleFields) GetDescription() string { if o == nil || o.Description == nil { var ret string return ret } return *o.Description } // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetDescriptionOk() (*string, bool) { if o == nil || o.Description == nil { return nil, false } return o.Description, true } // HasDescription returns a boolean if a field has been set. func (o *TemplateSummaryDiffNotificationRuleFields) HasDescription() bool { if o != nil && o.Description != nil { return true } return false } // SetDescription gets a reference to the given string and assigns it to the Description field. func (o *TemplateSummaryDiffNotificationRuleFields) SetDescription(v string) { o.Description = &v } // GetEndpointName returns the EndpointName field value func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointName() string { if o == nil { var ret string return ret } return o.EndpointName } // GetEndpointNameOk returns a tuple with the EndpointName field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointNameOk() (*string, bool) { if o == nil { return nil, false } return &o.EndpointName, true } // SetEndpointName sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetEndpointName(v string) { o.EndpointName = v } // GetEndpointID returns the EndpointID field value func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointID() uint64 { if o == nil { var ret uint64 return ret } return o.EndpointID } // GetEndpointIDOk returns a tuple with the EndpointID field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointIDOk() (*uint64, bool) { if o == nil { return nil, false } return &o.EndpointID, true } // SetEndpointID sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetEndpointID(v uint64) { o.EndpointID = v } // GetEndpointType returns the EndpointType field value func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointType() string { if o == nil { var ret string return ret } return o.EndpointType } // GetEndpointTypeOk returns a tuple with the EndpointType field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetEndpointTypeOk() (*string, bool) { if o == nil { return nil, false } return &o.EndpointType, true } // SetEndpointType sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetEndpointType(v string) { o.EndpointType = v } // GetEvery returns the Every field value func (o *TemplateSummaryDiffNotificationRuleFields) GetEvery() string { if o == nil { var ret string return ret } return o.Every } // GetEveryOk returns a tuple with the Every field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetEveryOk() (*string, bool) { if o == nil { return nil, false } return &o.Every, true } // SetEvery sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetEvery(v string) { o.Every = v } // GetOffset returns the Offset field value func (o *TemplateSummaryDiffNotificationRuleFields) GetOffset() string { if o == nil { var ret string return ret } return o.Offset } // GetOffsetOk returns a tuple with the Offset field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetOffsetOk() (*string, bool) { if o == nil { return nil, false } return &o.Offset, true } // SetOffset sets field value func (o *TemplateSummaryDiffNotificationRuleFields) SetOffset(v string) { o.Offset = v } // GetMessageTemplate returns the MessageTemplate field value if set, zero value otherwise. func (o *TemplateSummaryDiffNotificationRuleFields) GetMessageTemplate() string { if o == nil || o.MessageTemplate == nil { var ret string return ret } return *o.MessageTemplate } // GetMessageTemplateOk returns a tuple with the MessageTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TemplateSummaryDiffNotificationRuleFields) GetMessageTemplateOk() (*string, bool) { if o == nil || o.MessageTemplate == nil { return nil, false } return o.MessageTemplate, true } // HasMessageTemplate returns a boolean if a field has been set. func (o *TemplateSummaryDiffNotificationRuleFields) HasMessageTemplate() bool { if o != nil && o.MessageTemplate != nil { return true } return false } // SetMessageTemplate gets a reference to the given string and assigns it to the MessageTemplate field. func (o *TemplateSummaryDiffNotificationRuleFields) SetMessageTemplate(v string) { o.MessageTemplate = &v } func (o TemplateSummaryDiffNotificationRuleFields) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["name"] = o.Name } if o.Description != nil { toSerialize["description"] = o.Description } if true { toSerialize["endpointName"] = o.EndpointName } if true { toSerialize["endpointID"] = o.EndpointID } if true { toSerialize["endpointType"] = o.EndpointType } if true { toSerialize["every"] = o.Every } if true { toSerialize["offset"] = o.Offset } if o.MessageTemplate != nil { toSerialize["messageTemplate"] = o.MessageTemplate } return json.Marshal(toSerialize) } type NullableTemplateSummaryDiffNotificationRuleFields struct { value *TemplateSummaryDiffNotificationRuleFields isSet bool } func (v NullableTemplateSummaryDiffNotificationRuleFields) Get() *TemplateSummaryDiffNotificationRuleFields { return v.value } func (v *NullableTemplateSummaryDiffNotificationRuleFields) Set(val *TemplateSummaryDiffNotificationRuleFields) { v.value = val v.isSet = true } func (v NullableTemplateSummaryDiffNotificationRuleFields) IsSet() bool { return v.isSet } func (v *NullableTemplateSummaryDiffNotificationRuleFields) Unset() { v.value = nil v.isSet = false } func NewNullableTemplateSummaryDiffNotificationRuleFields(val *TemplateSummaryDiffNotificationRuleFields) *NullableTemplateSummaryDiffNotificationRuleFields { return &NullableTemplateSummaryDiffNotificationRuleFields{value: val, isSet: true} } func (v NullableTemplateSummaryDiffNotificationRuleFields) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTemplateSummaryDiffNotificationRuleFields) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }