github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_multiple_data_store_data_latest.go (about) 1 /* 2 * Cios Openapi 3 * 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 * 6 * API version: 1.0.1 7 */ 8 9 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 11 package cios 12 13 import ( 14 "encoding/json" 15 ) 16 17 // MultipleDataStoreDataLatest struct for MultipleDataStoreDataLatest 18 type MultipleDataStoreDataLatest struct { 19 Total *float32 `json:"total,omitempty"` 20 Objects *[]PackerFormatJson `json:"objects,omitempty"` 21 Errors *[]DataError `json:"errors,omitempty"` 22 } 23 24 // NewMultipleDataStoreDataLatest instantiates a new MultipleDataStoreDataLatest object 25 // This constructor will assign default values to properties that have it defined, 26 // and makes sure properties required by API are set, but the set of arguments 27 // will change when the set of required properties is changed 28 func NewMultipleDataStoreDataLatest() *MultipleDataStoreDataLatest { 29 this := MultipleDataStoreDataLatest{} 30 return &this 31 } 32 33 // NewMultipleDataStoreDataLatestWithDefaults instantiates a new MultipleDataStoreDataLatest object 34 // This constructor will only assign default values to properties that have it defined, 35 // but it doesn't guarantee that properties required by API are set 36 func NewMultipleDataStoreDataLatestWithDefaults() *MultipleDataStoreDataLatest { 37 this := MultipleDataStoreDataLatest{} 38 return &this 39 } 40 41 // GetTotal returns the Total field value if set, zero value otherwise. 42 func (o *MultipleDataStoreDataLatest) GetTotal() float32 { 43 if o == nil || o.Total == nil { 44 var ret float32 45 return ret 46 } 47 return *o.Total 48 } 49 50 // GetTotalOk returns a tuple with the Total field value if set, nil otherwise 51 // and a boolean to check if the value has been set. 52 func (o *MultipleDataStoreDataLatest) GetTotalOk() (*float32, bool) { 53 if o == nil || o.Total == nil { 54 return nil, false 55 } 56 return o.Total, true 57 } 58 59 // HasTotal returns a boolean if a field has been set. 60 func (o *MultipleDataStoreDataLatest) HasTotal() bool { 61 if o != nil && o.Total != nil { 62 return true 63 } 64 65 return false 66 } 67 68 // SetTotal gets a reference to the given float32 and assigns it to the Total field. 69 func (o *MultipleDataStoreDataLatest) SetTotal(v float32) { 70 o.Total = &v 71 } 72 73 // GetObjects returns the Objects field value if set, zero value otherwise. 74 func (o *MultipleDataStoreDataLatest) GetObjects() []PackerFormatJson { 75 if o == nil || o.Objects == nil { 76 var ret []PackerFormatJson 77 return ret 78 } 79 return *o.Objects 80 } 81 82 // GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise 83 // and a boolean to check if the value has been set. 84 func (o *MultipleDataStoreDataLatest) GetObjectsOk() (*[]PackerFormatJson, bool) { 85 if o == nil || o.Objects == nil { 86 return nil, false 87 } 88 return o.Objects, true 89 } 90 91 // HasObjects returns a boolean if a field has been set. 92 func (o *MultipleDataStoreDataLatest) HasObjects() bool { 93 if o != nil && o.Objects != nil { 94 return true 95 } 96 97 return false 98 } 99 100 // SetObjects gets a reference to the given []PackerFormatJson and assigns it to the Objects field. 101 func (o *MultipleDataStoreDataLatest) SetObjects(v []PackerFormatJson) { 102 o.Objects = &v 103 } 104 105 // GetErrors returns the Errors field value if set, zero value otherwise. 106 func (o *MultipleDataStoreDataLatest) GetErrors() []DataError { 107 if o == nil || o.Errors == nil { 108 var ret []DataError 109 return ret 110 } 111 return *o.Errors 112 } 113 114 // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise 115 // and a boolean to check if the value has been set. 116 func (o *MultipleDataStoreDataLatest) GetErrorsOk() (*[]DataError, bool) { 117 if o == nil || o.Errors == nil { 118 return nil, false 119 } 120 return o.Errors, true 121 } 122 123 // HasErrors returns a boolean if a field has been set. 124 func (o *MultipleDataStoreDataLatest) HasErrors() bool { 125 if o != nil && o.Errors != nil { 126 return true 127 } 128 129 return false 130 } 131 132 // SetErrors gets a reference to the given []DataError and assigns it to the Errors field. 133 func (o *MultipleDataStoreDataLatest) SetErrors(v []DataError) { 134 o.Errors = &v 135 } 136 137 func (o MultipleDataStoreDataLatest) MarshalJSON() ([]byte, error) { 138 toSerialize := map[string]interface{}{} 139 if o.Total != nil { 140 toSerialize["total"] = o.Total 141 } 142 if o.Objects != nil { 143 toSerialize["objects"] = o.Objects 144 } 145 if o.Errors != nil { 146 toSerialize["errors"] = o.Errors 147 } 148 return json.Marshal(toSerialize) 149 } 150 151 type NullableMultipleDataStoreDataLatest struct { 152 value *MultipleDataStoreDataLatest 153 isSet bool 154 } 155 156 func (v NullableMultipleDataStoreDataLatest) Get() *MultipleDataStoreDataLatest { 157 return v.value 158 } 159 160 func (v *NullableMultipleDataStoreDataLatest) Set(val *MultipleDataStoreDataLatest) { 161 v.value = val 162 v.isSet = true 163 } 164 165 func (v NullableMultipleDataStoreDataLatest) IsSet() bool { 166 return v.isSet 167 } 168 169 func (v *NullableMultipleDataStoreDataLatest) Unset() { 170 v.value = nil 171 v.isSet = false 172 } 173 174 func NewNullableMultipleDataStoreDataLatest(val *MultipleDataStoreDataLatest) *NullableMultipleDataStoreDataLatest { 175 return &NullableMultipleDataStoreDataLatest{value: val, isSet: true} 176 } 177 178 func (v NullableMultipleDataStoreDataLatest) MarshalJSON() ([]byte, error) { 179 return json.Marshal(v.value) 180 } 181 182 func (v *NullableMultipleDataStoreDataLatest) UnmarshalJSON(src []byte) error { 183 v.isSet = true 184 return json.Unmarshal(src, &v.value) 185 } 186 187