terraform-provider-stackitp.../pkg/postgresflexalpha/model_recovery_response.go

127 lines
3.4 KiB
Go

/*
PostgreSQL Flex API
This is the documentation for the STACKIT Postgres Flex service
API version: 3alpha1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package postgresflexalpha
import (
"encoding/json"
)
// checks if the RecoveryResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RecoveryResponse{}
/*
types and functions for id
*/
// isNotNullableString
type RecoveryResponseGetIdAttributeType = *string
func getRecoveryResponseGetIdAttributeTypeOk(arg RecoveryResponseGetIdAttributeType) (ret RecoveryResponseGetIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setRecoveryResponseGetIdAttributeType(arg *RecoveryResponseGetIdAttributeType, val RecoveryResponseGetIdRetType) {
*arg = &val
}
type RecoveryResponseGetIdArgType = string
type RecoveryResponseGetIdRetType = string
// RecoveryResponse struct for RecoveryResponse
type RecoveryResponse struct {
// The ID of the instance.
// REQUIRED
Id RecoveryResponseGetIdAttributeType `json:"id" required:"true"`
}
type _RecoveryResponse RecoveryResponse
// NewRecoveryResponse instantiates a new RecoveryResponse 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 NewRecoveryResponse(id RecoveryResponseGetIdArgType) *RecoveryResponse {
this := RecoveryResponse{}
setRecoveryResponseGetIdAttributeType(&this.Id, id)
return &this
}
// NewRecoveryResponseWithDefaults instantiates a new RecoveryResponse 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 NewRecoveryResponseWithDefaults() *RecoveryResponse {
this := RecoveryResponse{}
return &this
}
// GetId returns the Id field value
func (o *RecoveryResponse) GetId() (ret RecoveryResponseGetIdRetType) {
ret, _ = o.GetIdOk()
return ret
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *RecoveryResponse) GetIdOk() (ret RecoveryResponseGetIdRetType, ok bool) {
return getRecoveryResponseGetIdAttributeTypeOk(o.Id)
}
// SetId sets field value
func (o *RecoveryResponse) SetId(v RecoveryResponseGetIdRetType) {
setRecoveryResponseGetIdAttributeType(&o.Id, v)
}
func (o RecoveryResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getRecoveryResponseGetIdAttributeTypeOk(o.Id); ok {
toSerialize["Id"] = val
}
return toSerialize, nil
}
type NullableRecoveryResponse struct {
value *RecoveryResponse
isSet bool
}
func (v NullableRecoveryResponse) Get() *RecoveryResponse {
return v.value
}
func (v *NullableRecoveryResponse) Set(val *RecoveryResponse) {
v.value = val
v.isSet = true
}
func (v NullableRecoveryResponse) IsSet() bool {
return v.isSet
}
func (v *NullableRecoveryResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRecoveryResponse(val *RecoveryResponse) *NullableRecoveryResponse {
return &NullableRecoveryResponse{value: val, isSet: true}
}
func (v NullableRecoveryResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRecoveryResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}