Files
sdk/model_reference_reference_out.go

231 lines
6.5 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the ReferenceReferenceOut type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ReferenceReferenceOut{}
// ReferenceReferenceOut struct for ReferenceReferenceOut
type ReferenceReferenceOut struct {
// Next is the key to page from, empty when this is the last page.
Next *string `json:"next,omitempty"`
// Overrides is YOUR org's entries over that baseline, in key order. They are held in your organisation's own store and are not visible to any other.
Overrides []ReferenceReferenceOverride `json:"overrides,omitempty"`
// Set is the published set: its version, its freshness and its sources.
Set *ReferenceReferenceSet `json:"set,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ReferenceReferenceOut ReferenceReferenceOut
// NewReferenceReferenceOut instantiates a new ReferenceReferenceOut 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 NewReferenceReferenceOut() *ReferenceReferenceOut {
this := ReferenceReferenceOut{}
return &this
}
// NewReferenceReferenceOutWithDefaults instantiates a new ReferenceReferenceOut 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 NewReferenceReferenceOutWithDefaults() *ReferenceReferenceOut {
this := ReferenceReferenceOut{}
return &this
}
// GetNext returns the Next field value if set, zero value otherwise.
func (o *ReferenceReferenceOut) GetNext() string {
if o == nil || IsNil(o.Next) {
var ret string
return ret
}
return *o.Next
}
// GetNextOk returns a tuple with the Next field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReferenceReferenceOut) GetNextOk() (*string, bool) {
if o == nil || IsNil(o.Next) {
return nil, false
}
return o.Next, true
}
// HasNext returns a boolean if a field has been set.
func (o *ReferenceReferenceOut) HasNext() bool {
if o != nil && !IsNil(o.Next) {
return true
}
return false
}
// SetNext gets a reference to the given string and assigns it to the Next field.
func (o *ReferenceReferenceOut) SetNext(v string) {
o.Next = &v
}
// GetOverrides returns the Overrides field value if set, zero value otherwise.
func (o *ReferenceReferenceOut) GetOverrides() []ReferenceReferenceOverride {
if o == nil || IsNil(o.Overrides) {
var ret []ReferenceReferenceOverride
return ret
}
return o.Overrides
}
// GetOverridesOk returns a tuple with the Overrides field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReferenceReferenceOut) GetOverridesOk() ([]ReferenceReferenceOverride, bool) {
if o == nil || IsNil(o.Overrides) {
return nil, false
}
return o.Overrides, true
}
// HasOverrides returns a boolean if a field has been set.
func (o *ReferenceReferenceOut) HasOverrides() bool {
if o != nil && !IsNil(o.Overrides) {
return true
}
return false
}
// SetOverrides gets a reference to the given []ReferenceReferenceOverride and assigns it to the Overrides field.
func (o *ReferenceReferenceOut) SetOverrides(v []ReferenceReferenceOverride) {
o.Overrides = v
}
// GetSet returns the Set field value if set, zero value otherwise.
func (o *ReferenceReferenceOut) GetSet() ReferenceReferenceSet {
if o == nil || IsNil(o.Set) {
var ret ReferenceReferenceSet
return ret
}
return *o.Set
}
// GetSetOk returns a tuple with the Set field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReferenceReferenceOut) GetSetOk() (*ReferenceReferenceSet, bool) {
if o == nil || IsNil(o.Set) {
return nil, false
}
return o.Set, true
}
// HasSet returns a boolean if a field has been set.
func (o *ReferenceReferenceOut) HasSet() bool {
if o != nil && !IsNil(o.Set) {
return true
}
return false
}
// SetSet gets a reference to the given ReferenceReferenceSet and assigns it to the Set field.
func (o *ReferenceReferenceOut) SetSet(v ReferenceReferenceSet) {
o.Set = &v
}
func (o ReferenceReferenceOut) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ReferenceReferenceOut) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Next) {
toSerialize["next"] = o.Next
}
if !IsNil(o.Overrides) {
toSerialize["overrides"] = o.Overrides
}
if !IsNil(o.Set) {
toSerialize["set"] = o.Set
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *ReferenceReferenceOut) UnmarshalJSON(data []byte) (err error) {
varReferenceReferenceOut := _ReferenceReferenceOut{}
err = json.Unmarshal(data, &varReferenceReferenceOut)
if err != nil {
return err
}
*o = ReferenceReferenceOut(varReferenceReferenceOut)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "next")
delete(additionalProperties, "overrides")
delete(additionalProperties, "set")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableReferenceReferenceOut struct {
value *ReferenceReferenceOut
isSet bool
}
func (v NullableReferenceReferenceOut) Get() *ReferenceReferenceOut {
return v.value
}
func (v *NullableReferenceReferenceOut) Set(val *ReferenceReferenceOut) {
v.value = val
v.isSet = true
}
func (v NullableReferenceReferenceOut) IsSet() bool {
return v.isSet
}
func (v *NullableReferenceReferenceOut) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableReferenceReferenceOut(val *ReferenceReferenceOut) *NullableReferenceReferenceOut {
return &NullableReferenceReferenceOut{value: val, isSet: true}
}
func (v NullableReferenceReferenceOut) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableReferenceReferenceOut) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}