/*
 * 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"
)

// TemplateSummaryTelegrafAllOf struct for TemplateSummaryTelegrafAllOf
type TemplateSummaryTelegrafAllOf struct {
	TelegrafConfig TemplateSummaryTelegrafConfig `json:"telegrafConfig" yaml:"telegrafConfig"`
}

// NewTemplateSummaryTelegrafAllOf instantiates a new TemplateSummaryTelegrafAllOf 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 NewTemplateSummaryTelegrafAllOf(telegrafConfig TemplateSummaryTelegrafConfig) *TemplateSummaryTelegrafAllOf {
	this := TemplateSummaryTelegrafAllOf{}
	this.TelegrafConfig = telegrafConfig
	return &this
}

// NewTemplateSummaryTelegrafAllOfWithDefaults instantiates a new TemplateSummaryTelegrafAllOf 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 NewTemplateSummaryTelegrafAllOfWithDefaults() *TemplateSummaryTelegrafAllOf {
	this := TemplateSummaryTelegrafAllOf{}
	return &this
}

// GetTelegrafConfig returns the TelegrafConfig field value
func (o *TemplateSummaryTelegrafAllOf) GetTelegrafConfig() TemplateSummaryTelegrafConfig {
	if o == nil {
		var ret TemplateSummaryTelegrafConfig
		return ret
	}

	return o.TelegrafConfig
}

// GetTelegrafConfigOk returns a tuple with the TelegrafConfig field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryTelegrafAllOf) GetTelegrafConfigOk() (*TemplateSummaryTelegrafConfig, bool) {
	if o == nil {
		return nil, false
	}
	return &o.TelegrafConfig, true
}

// SetTelegrafConfig sets field value
func (o *TemplateSummaryTelegrafAllOf) SetTelegrafConfig(v TemplateSummaryTelegrafConfig) {
	o.TelegrafConfig = v
}

func (o TemplateSummaryTelegrafAllOf) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["telegrafConfig"] = o.TelegrafConfig
	}
	return json.Marshal(toSerialize)
}

type NullableTemplateSummaryTelegrafAllOf struct {
	value *TemplateSummaryTelegrafAllOf
	isSet bool
}

func (v NullableTemplateSummaryTelegrafAllOf) Get() *TemplateSummaryTelegrafAllOf {
	return v.value
}

func (v *NullableTemplateSummaryTelegrafAllOf) Set(val *TemplateSummaryTelegrafAllOf) {
	v.value = val
	v.isSet = true
}

func (v NullableTemplateSummaryTelegrafAllOf) IsSet() bool {
	return v.isSet
}

func (v *NullableTemplateSummaryTelegrafAllOf) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableTemplateSummaryTelegrafAllOf(val *TemplateSummaryTelegrafAllOf) *NullableTemplateSummaryTelegrafAllOf {
	return &NullableTemplateSummaryTelegrafAllOf{value: val, isSet: true}
}

func (v NullableTemplateSummaryTelegrafAllOf) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableTemplateSummaryTelegrafAllOf) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
