/* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package answer_sdk import ( "encoding/json" ) // checks if the SchemaUpdatePluginStatusReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaUpdatePluginStatusReq{} // SchemaUpdatePluginStatusReq struct for SchemaUpdatePluginStatusReq type SchemaUpdatePluginStatusReq struct { Enabled *bool `json:"enabled,omitempty"` PluginSlugName string `json:"plugin_slug_name"` } // NewSchemaUpdatePluginStatusReq instantiates a new SchemaUpdatePluginStatusReq 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 NewSchemaUpdatePluginStatusReq(pluginSlugName string) *SchemaUpdatePluginStatusReq { this := SchemaUpdatePluginStatusReq{} this.PluginSlugName = pluginSlugName return &this } // NewSchemaUpdatePluginStatusReqWithDefaults instantiates a new SchemaUpdatePluginStatusReq 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 NewSchemaUpdatePluginStatusReqWithDefaults() *SchemaUpdatePluginStatusReq { this := SchemaUpdatePluginStatusReq{} return &this } // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *SchemaUpdatePluginStatusReq) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { var ret bool return ret } return *o.Enabled } // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdatePluginStatusReq) GetEnabledOk() (*bool, bool) { if o == nil || IsNil(o.Enabled) { return nil, false } return o.Enabled, true } // HasEnabled returns a boolean if a field has been set. func (o *SchemaUpdatePluginStatusReq) HasEnabled() bool { if o != nil && !IsNil(o.Enabled) { return true } return false } // SetEnabled gets a reference to the given bool and assigns it to the Enabled field. func (o *SchemaUpdatePluginStatusReq) SetEnabled(v bool) { o.Enabled = &v } // GetPluginSlugName returns the PluginSlugName field value func (o *SchemaUpdatePluginStatusReq) GetPluginSlugName() string { if o == nil { var ret string return ret } return o.PluginSlugName } // GetPluginSlugNameOk returns a tuple with the PluginSlugName field value // and a boolean to check if the value has been set. func (o *SchemaUpdatePluginStatusReq) GetPluginSlugNameOk() (*string, bool) { if o == nil { return nil, false } return &o.PluginSlugName, true } // SetPluginSlugName sets field value func (o *SchemaUpdatePluginStatusReq) SetPluginSlugName(v string) { o.PluginSlugName = v } func (o SchemaUpdatePluginStatusReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaUpdatePluginStatusReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } toSerialize["plugin_slug_name"] = o.PluginSlugName return toSerialize, nil } type NullableSchemaUpdatePluginStatusReq struct { value *SchemaUpdatePluginStatusReq isSet bool } func (v NullableSchemaUpdatePluginStatusReq) Get() *SchemaUpdatePluginStatusReq { return v.value } func (v *NullableSchemaUpdatePluginStatusReq) Set(val *SchemaUpdatePluginStatusReq) { v.value = val v.isSet = true } func (v NullableSchemaUpdatePluginStatusReq) IsSet() bool { return v.isSet } func (v *NullableSchemaUpdatePluginStatusReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaUpdatePluginStatusReq(val *SchemaUpdatePluginStatusReq) *NullableSchemaUpdatePluginStatusReq { return &NullableSchemaUpdatePluginStatusReq{value: val, isSet: true} } func (v NullableSchemaUpdatePluginStatusReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaUpdatePluginStatusReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }