Files
stack/components/fctl/membershipclient/model_public_region_all_of.go

118 lines
2.9 KiB
Go

/*
Membership API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package membershipclient
import (
"encoding/json"
)
// checks if the PublicRegionAllOf type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PublicRegionAllOf{}
// PublicRegionAllOf struct for PublicRegionAllOf
type PublicRegionAllOf struct {
Production bool `json:"production"`
}
// NewPublicRegionAllOf instantiates a new PublicRegionAllOf 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 NewPublicRegionAllOf(production bool) *PublicRegionAllOf {
this := PublicRegionAllOf{}
this.Production = production
return &this
}
// NewPublicRegionAllOfWithDefaults instantiates a new PublicRegionAllOf 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 NewPublicRegionAllOfWithDefaults() *PublicRegionAllOf {
this := PublicRegionAllOf{}
return &this
}
// GetProduction returns the Production field value
func (o *PublicRegionAllOf) GetProduction() bool {
if o == nil {
var ret bool
return ret
}
return o.Production
}
// GetProductionOk returns a tuple with the Production field value
// and a boolean to check if the value has been set.
func (o *PublicRegionAllOf) GetProductionOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Production, true
}
// SetProduction sets field value
func (o *PublicRegionAllOf) SetProduction(v bool) {
o.Production = v
}
func (o PublicRegionAllOf) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PublicRegionAllOf) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["production"] = o.Production
return toSerialize, nil
}
type NullablePublicRegionAllOf struct {
value *PublicRegionAllOf
isSet bool
}
func (v NullablePublicRegionAllOf) Get() *PublicRegionAllOf {
return v.value
}
func (v *NullablePublicRegionAllOf) Set(val *PublicRegionAllOf) {
v.value = val
v.isSet = true
}
func (v NullablePublicRegionAllOf) IsSet() bool {
return v.isSet
}
func (v *NullablePublicRegionAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePublicRegionAllOf(val *PublicRegionAllOf) *NullablePublicRegionAllOf {
return &NullablePublicRegionAllOf{value: val, isSet: true}
}
func (v NullablePublicRegionAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePublicRegionAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}