/* * 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" ) // TemplateSummaryDashboard struct for TemplateSummaryDashboard type TemplateSummaryDashboard struct { Kind string `json:"kind" yaml:"kind"` TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` Id string `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Description *string `json:"description,omitempty" yaml:"description,omitempty"` } // NewTemplateSummaryDashboard instantiates a new TemplateSummaryDashboard 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 NewTemplateSummaryDashboard(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id string, name string) *TemplateSummaryDashboard { this := TemplateSummaryDashboard{} this.Kind = kind this.EnvReferences = envReferences this.LabelAssociations = labelAssociations this.Id = id this.Name = name return &this } // NewTemplateSummaryDashboardWithDefaults instantiates a new TemplateSummaryDashboard 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 NewTemplateSummaryDashboardWithDefaults() *TemplateSummaryDashboard { this := TemplateSummaryDashboard{} return &this } // GetKind returns the Kind field value func (o *TemplateSummaryDashboard) GetKind() string { if o == nil { var ret string return ret } return o.Kind } // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDashboard) GetKindOk() (*string, bool) { if o == nil { return nil, false } return &o.Kind, true } // SetKind sets field value func (o *TemplateSummaryDashboard) SetKind(v string) { o.Kind = v } // GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise. func (o *TemplateSummaryDashboard) GetTemplateMetaName() string { if o == nil || o.TemplateMetaName == nil { var ret string return ret } return *o.TemplateMetaName } // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TemplateSummaryDashboard) GetTemplateMetaNameOk() (*string, bool) { if o == nil || o.TemplateMetaName == nil { return nil, false } return o.TemplateMetaName, true } // HasTemplateMetaName returns a boolean if a field has been set. func (o *TemplateSummaryDashboard) HasTemplateMetaName() bool { if o != nil && o.TemplateMetaName != nil { return true } return false } // SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field. func (o *TemplateSummaryDashboard) SetTemplateMetaName(v string) { o.TemplateMetaName = &v } // GetEnvReferences returns the EnvReferences field value func (o *TemplateSummaryDashboard) GetEnvReferences() []TemplateEnvReference { if o == nil { var ret []TemplateEnvReference return ret } return o.EnvReferences } // GetEnvReferencesOk returns a tuple with the EnvReferences field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDashboard) GetEnvReferencesOk() (*[]TemplateEnvReference, bool) { if o == nil { return nil, false } return &o.EnvReferences, true } // SetEnvReferences sets field value func (o *TemplateSummaryDashboard) SetEnvReferences(v []TemplateEnvReference) { o.EnvReferences = v } // GetLabelAssociations returns the LabelAssociations field value func (o *TemplateSummaryDashboard) GetLabelAssociations() []TemplateSummaryLabel { if o == nil { var ret []TemplateSummaryLabel return ret } return o.LabelAssociations } // GetLabelAssociationsOk returns a tuple with the LabelAssociations field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDashboard) GetLabelAssociationsOk() (*[]TemplateSummaryLabel, bool) { if o == nil { return nil, false } return &o.LabelAssociations, true } // SetLabelAssociations sets field value func (o *TemplateSummaryDashboard) SetLabelAssociations(v []TemplateSummaryLabel) { o.LabelAssociations = v } // GetId returns the Id field value func (o *TemplateSummaryDashboard) GetId() string { if o == nil { var ret string return ret } return o.Id } // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. func (o *TemplateSummaryDashboard) GetIdOk() (*string, bool) { if o == nil { return nil, false } return &o.Id, true } // SetId sets field value func (o *TemplateSummaryDashboard) SetId(v string) { o.Id = v } // GetName returns the Name field value func (o *TemplateSummaryDashboard) 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 *TemplateSummaryDashboard) GetNameOk() (*string, bool) { if o == nil { return nil, false } return &o.Name, true } // SetName sets field value func (o *TemplateSummaryDashboard) SetName(v string) { o.Name = v } // GetDescription returns the Description field value if set, zero value otherwise. func (o *TemplateSummaryDashboard) 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 *TemplateSummaryDashboard) 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 *TemplateSummaryDashboard) 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 *TemplateSummaryDashboard) SetDescription(v string) { o.Description = &v } func (o TemplateSummaryDashboard) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["kind"] = o.Kind } if o.TemplateMetaName != nil { toSerialize["templateMetaName"] = o.TemplateMetaName } if true { toSerialize["envReferences"] = o.EnvReferences } if true { toSerialize["labelAssociations"] = o.LabelAssociations } if true { toSerialize["id"] = o.Id } if true { toSerialize["name"] = o.Name } if o.Description != nil { toSerialize["description"] = o.Description } return json.Marshal(toSerialize) } type NullableTemplateSummaryDashboard struct { value *TemplateSummaryDashboard isSet bool } func (v NullableTemplateSummaryDashboard) Get() *TemplateSummaryDashboard { return v.value } func (v *NullableTemplateSummaryDashboard) Set(val *TemplateSummaryDashboard) { v.value = val v.isSet = true } func (v NullableTemplateSummaryDashboard) IsSet() bool { return v.isSet } func (v *NullableTemplateSummaryDashboard) Unset() { v.value = nil v.isSet = false } func NewNullableTemplateSummaryDashboard(val *TemplateSummaryDashboard) *NullableTemplateSummaryDashboard { return &NullableTemplateSummaryDashboard{value: val, isSet: true} } func (v NullableTemplateSummaryDashboard) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTemplateSummaryDashboard) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }