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

262 lines
8.5 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 ResetUserResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ResetUserResponse{}
/*
types and functions for connectionString
*/
// isNotNullableString
type ResetUserResponseGetConnectionStringAttributeType = *string
func getResetUserResponseGetConnectionStringAttributeTypeOk(arg ResetUserResponseGetConnectionStringAttributeType) (ret ResetUserResponseGetConnectionStringRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setResetUserResponseGetConnectionStringAttributeType(arg *ResetUserResponseGetConnectionStringAttributeType, val ResetUserResponseGetConnectionStringRetType) {
*arg = &val
}
type ResetUserResponseGetConnectionStringArgType = string
type ResetUserResponseGetConnectionStringRetType = string
/*
types and functions for name
*/
// isNotNullableString
type ResetUserResponseGetNameAttributeType = *string
func getResetUserResponseGetNameAttributeTypeOk(arg ResetUserResponseGetNameAttributeType) (ret ResetUserResponseGetNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setResetUserResponseGetNameAttributeType(arg *ResetUserResponseGetNameAttributeType, val ResetUserResponseGetNameRetType) {
*arg = &val
}
type ResetUserResponseGetNameArgType = string
type ResetUserResponseGetNameRetType = string
/*
types and functions for password
*/
// isNotNullableString
type ResetUserResponseGetPasswordAttributeType = *string
func getResetUserResponseGetPasswordAttributeTypeOk(arg ResetUserResponseGetPasswordAttributeType) (ret ResetUserResponseGetPasswordRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setResetUserResponseGetPasswordAttributeType(arg *ResetUserResponseGetPasswordAttributeType, val ResetUserResponseGetPasswordRetType) {
*arg = &val
}
type ResetUserResponseGetPasswordArgType = string
type ResetUserResponseGetPasswordRetType = string
/*
types and functions for status
*/
// isNotNullableString
type ResetUserResponseGetStatusAttributeType = *string
func getResetUserResponseGetStatusAttributeTypeOk(arg ResetUserResponseGetStatusAttributeType) (ret ResetUserResponseGetStatusRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setResetUserResponseGetStatusAttributeType(arg *ResetUserResponseGetStatusAttributeType, val ResetUserResponseGetStatusRetType) {
*arg = &val
}
type ResetUserResponseGetStatusArgType = string
type ResetUserResponseGetStatusRetType = string
// ResetUserResponse struct for ResetUserResponse
type ResetUserResponse struct {
// The connection string for the user to the instance.
// REQUIRED
ConnectionString ResetUserResponseGetConnectionStringAttributeType `json:"connectionString" required:"true"`
// The name of the user.
// REQUIRED
Name ResetUserResponseGetNameAttributeType `json:"name" required:"true"`
// The password for the user.
// REQUIRED
Password ResetUserResponseGetPasswordAttributeType `json:"password" required:"true"`
// The current status of the user.
// REQUIRED
Status ResetUserResponseGetStatusAttributeType `json:"status" required:"true"`
}
type _ResetUserResponse ResetUserResponse
// NewResetUserResponse instantiates a new ResetUserResponse 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 NewResetUserResponse(connectionString ResetUserResponseGetConnectionStringArgType, name ResetUserResponseGetNameArgType, password ResetUserResponseGetPasswordArgType, status ResetUserResponseGetStatusArgType) *ResetUserResponse {
this := ResetUserResponse{}
setResetUserResponseGetConnectionStringAttributeType(&this.ConnectionString, connectionString)
setResetUserResponseGetNameAttributeType(&this.Name, name)
setResetUserResponseGetPasswordAttributeType(&this.Password, password)
setResetUserResponseGetStatusAttributeType(&this.Status, status)
return &this
}
// NewResetUserResponseWithDefaults instantiates a new ResetUserResponse 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 NewResetUserResponseWithDefaults() *ResetUserResponse {
this := ResetUserResponse{}
return &this
}
// GetConnectionString returns the ConnectionString field value
func (o *ResetUserResponse) GetConnectionString() (ret ResetUserResponseGetConnectionStringRetType) {
ret, _ = o.GetConnectionStringOk()
return ret
}
// GetConnectionStringOk returns a tuple with the ConnectionString field value
// and a boolean to check if the value has been set.
func (o *ResetUserResponse) GetConnectionStringOk() (ret ResetUserResponseGetConnectionStringRetType, ok bool) {
return getResetUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString)
}
// SetConnectionString sets field value
func (o *ResetUserResponse) SetConnectionString(v ResetUserResponseGetConnectionStringRetType) {
setResetUserResponseGetConnectionStringAttributeType(&o.ConnectionString, v)
}
// GetName returns the Name field value
func (o *ResetUserResponse) GetName() (ret ResetUserResponseGetNameRetType) {
ret, _ = o.GetNameOk()
return ret
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *ResetUserResponse) GetNameOk() (ret ResetUserResponseGetNameRetType, ok bool) {
return getResetUserResponseGetNameAttributeTypeOk(o.Name)
}
// SetName sets field value
func (o *ResetUserResponse) SetName(v ResetUserResponseGetNameRetType) {
setResetUserResponseGetNameAttributeType(&o.Name, v)
}
// GetPassword returns the Password field value
func (o *ResetUserResponse) GetPassword() (ret ResetUserResponseGetPasswordRetType) {
ret, _ = o.GetPasswordOk()
return ret
}
// GetPasswordOk returns a tuple with the Password field value
// and a boolean to check if the value has been set.
func (o *ResetUserResponse) GetPasswordOk() (ret ResetUserResponseGetPasswordRetType, ok bool) {
return getResetUserResponseGetPasswordAttributeTypeOk(o.Password)
}
// SetPassword sets field value
func (o *ResetUserResponse) SetPassword(v ResetUserResponseGetPasswordRetType) {
setResetUserResponseGetPasswordAttributeType(&o.Password, v)
}
// GetStatus returns the Status field value
func (o *ResetUserResponse) GetStatus() (ret ResetUserResponseGetStatusRetType) {
ret, _ = o.GetStatusOk()
return ret
}
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *ResetUserResponse) GetStatusOk() (ret ResetUserResponseGetStatusRetType, ok bool) {
return getResetUserResponseGetStatusAttributeTypeOk(o.Status)
}
// SetStatus sets field value
func (o *ResetUserResponse) SetStatus(v ResetUserResponseGetStatusRetType) {
setResetUserResponseGetStatusAttributeType(&o.Status, v)
}
func (o ResetUserResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getResetUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString); ok {
toSerialize["ConnectionString"] = val
}
if val, ok := getResetUserResponseGetNameAttributeTypeOk(o.Name); ok {
toSerialize["Name"] = val
}
if val, ok := getResetUserResponseGetPasswordAttributeTypeOk(o.Password); ok {
toSerialize["Password"] = val
}
if val, ok := getResetUserResponseGetStatusAttributeTypeOk(o.Status); ok {
toSerialize["Status"] = val
}
return toSerialize, nil
}
type NullableResetUserResponse struct {
value *ResetUserResponse
isSet bool
}
func (v NullableResetUserResponse) Get() *ResetUserResponse {
return v.value
}
func (v *NullableResetUserResponse) Set(val *ResetUserResponse) {
v.value = val
v.isSet = true
}
func (v NullableResetUserResponse) IsSet() bool {
return v.isSet
}
func (v *NullableResetUserResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableResetUserResponse(val *ResetUserResponse) *NullableResetUserResponse {
return &NullableResetUserResponse{value: val, isSet: true}
}
func (v NullableResetUserResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableResetUserResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}