/* AutoGlue API API for managing K3s clusters across cloud providers API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package autoglue import ( "encoding/json" ) // checks if the DtoSshResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DtoSshResponse{} // DtoSshResponse struct for DtoSshResponse type DtoSshResponse struct { CreatedAt *string `json:"created_at,omitempty"` Fingerprint *string `json:"fingerprint,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` OrganizationId *string `json:"organization_id,omitempty"` PublicKey *string `json:"public_key,omitempty"` UpdatedAt *string `json:"updated_at,omitempty"` } // NewDtoSshResponse instantiates a new DtoSshResponse 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 NewDtoSshResponse() *DtoSshResponse { this := DtoSshResponse{} return &this } // NewDtoSshResponseWithDefaults instantiates a new DtoSshResponse 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 NewDtoSshResponseWithDefaults() *DtoSshResponse { this := DtoSshResponse{} return &this } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *DtoSshResponse) GetCreatedAt() string { if o == nil || IsNil(o.CreatedAt) { var ret string return ret } return *o.CreatedAt } // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetCreatedAtOk() (*string, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true } // HasCreatedAt returns a boolean if a field has been set. func (o *DtoSshResponse) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } return false } // SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. func (o *DtoSshResponse) SetCreatedAt(v string) { o.CreatedAt = &v } // GetFingerprint returns the Fingerprint field value if set, zero value otherwise. func (o *DtoSshResponse) GetFingerprint() string { if o == nil || IsNil(o.Fingerprint) { var ret string return ret } return *o.Fingerprint } // GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetFingerprintOk() (*string, bool) { if o == nil || IsNil(o.Fingerprint) { return nil, false } return o.Fingerprint, true } // HasFingerprint returns a boolean if a field has been set. func (o *DtoSshResponse) HasFingerprint() bool { if o != nil && !IsNil(o.Fingerprint) { return true } return false } // SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field. func (o *DtoSshResponse) SetFingerprint(v string) { o.Fingerprint = &v } // GetId returns the Id field value if set, zero value otherwise. func (o *DtoSshResponse) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret } return *o.Id } // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true } // HasId returns a boolean if a field has been set. func (o *DtoSshResponse) HasId() bool { if o != nil && !IsNil(o.Id) { return true } return false } // SetId gets a reference to the given string and assigns it to the Id field. func (o *DtoSshResponse) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. func (o *DtoSshResponse) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret } return *o.Name } // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true } // HasName returns a boolean if a field has been set. func (o *DtoSshResponse) HasName() bool { if o != nil && !IsNil(o.Name) { return true } return false } // SetName gets a reference to the given string and assigns it to the Name field. func (o *DtoSshResponse) SetName(v string) { o.Name = &v } // GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. func (o *DtoSshResponse) GetOrganizationId() string { if o == nil || IsNil(o.OrganizationId) { var ret string return ret } return *o.OrganizationId } // GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetOrganizationIdOk() (*string, bool) { if o == nil || IsNil(o.OrganizationId) { return nil, false } return o.OrganizationId, true } // HasOrganizationId returns a boolean if a field has been set. func (o *DtoSshResponse) HasOrganizationId() bool { if o != nil && !IsNil(o.OrganizationId) { return true } return false } // SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. func (o *DtoSshResponse) SetOrganizationId(v string) { o.OrganizationId = &v } // GetPublicKey returns the PublicKey field value if set, zero value otherwise. func (o *DtoSshResponse) GetPublicKey() string { if o == nil || IsNil(o.PublicKey) { var ret string return ret } return *o.PublicKey } // GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetPublicKeyOk() (*string, bool) { if o == nil || IsNil(o.PublicKey) { return nil, false } return o.PublicKey, true } // HasPublicKey returns a boolean if a field has been set. func (o *DtoSshResponse) HasPublicKey() bool { if o != nil && !IsNil(o.PublicKey) { return true } return false } // SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. func (o *DtoSshResponse) SetPublicKey(v string) { o.PublicKey = &v } // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. func (o *DtoSshResponse) GetUpdatedAt() string { if o == nil || IsNil(o.UpdatedAt) { var ret string return ret } return *o.UpdatedAt } // GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DtoSshResponse) GetUpdatedAtOk() (*string, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } return o.UpdatedAt, true } // HasUpdatedAt returns a boolean if a field has been set. func (o *DtoSshResponse) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } return false } // SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. func (o *DtoSshResponse) SetUpdatedAt(v string) { o.UpdatedAt = &v } func (o DtoSshResponse) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o DtoSshResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } if !IsNil(o.Fingerprint) { toSerialize["fingerprint"] = o.Fingerprint } if !IsNil(o.Id) { toSerialize["id"] = o.Id } if !IsNil(o.Name) { toSerialize["name"] = o.Name } if !IsNil(o.OrganizationId) { toSerialize["organization_id"] = o.OrganizationId } if !IsNil(o.PublicKey) { toSerialize["public_key"] = o.PublicKey } if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } return toSerialize, nil } type NullableDtoSshResponse struct { value *DtoSshResponse isSet bool } func (v NullableDtoSshResponse) Get() *DtoSshResponse { return v.value } func (v *NullableDtoSshResponse) Set(val *DtoSshResponse) { v.value = val v.isSet = true } func (v NullableDtoSshResponse) IsSet() bool { return v.isSet } func (v *NullableDtoSshResponse) Unset() { v.value = nil v.isSet = false } func NewNullableDtoSshResponse(val *DtoSshResponse) *NullableDtoSshResponse { return &NullableDtoSshResponse{value: val, isSet: true} } func (v NullableDtoSshResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableDtoSshResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }