/* * Redfish OAPI specification * * Partial Redfish OAPI specification for a limited client * * API version: 0.0.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package client import ( "encoding/json" "os" ) // InlineObject struct for InlineObject type InlineObject struct { SoftwareImage **os.File `json:"softwareImage,omitempty"` } // NewInlineObject instantiates a new InlineObject 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 NewInlineObject() *InlineObject { this := InlineObject{} return &this } // NewInlineObjectWithDefaults instantiates a new InlineObject 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 NewInlineObjectWithDefaults() *InlineObject { this := InlineObject{} return &this } // GetSoftwareImage returns the SoftwareImage field value if set, zero value otherwise. func (o *InlineObject) GetSoftwareImage() *os.File { if o == nil || o.SoftwareImage == nil { var ret *os.File return ret } return *o.SoftwareImage } // GetSoftwareImageOk returns a tuple with the SoftwareImage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InlineObject) GetSoftwareImageOk() (**os.File, bool) { if o == nil || o.SoftwareImage == nil { return nil, false } return o.SoftwareImage, true } // HasSoftwareImage returns a boolean if a field has been set. func (o *InlineObject) HasSoftwareImage() bool { if o != nil && o.SoftwareImage != nil { return true } return false } // SetSoftwareImage gets a reference to the given *os.File and assigns it to the SoftwareImage field. func (o *InlineObject) SetSoftwareImage(v *os.File) { o.SoftwareImage = &v } func (o InlineObject) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.SoftwareImage != nil { toSerialize["softwareImage"] = o.SoftwareImage } return json.Marshal(toSerialize) } type NullableInlineObject struct { value *InlineObject isSet bool } func (v NullableInlineObject) Get() *InlineObject { return v.value } func (v *NullableInlineObject) Set(val *InlineObject) { v.value = val v.isSet = true } func (v NullableInlineObject) IsSet() bool { return v.isSet } func (v *NullableInlineObject) Unset() { v.value = nil v.isSet = false } func NewNullableInlineObject(val *InlineObject) *NullableInlineObject { return &NullableInlineObject{value: val, isSet: true} } func (v NullableInlineObject) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableInlineObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }