Files
openapi-go-answer/model_install_check_config_file_resp.go
2023-09-26 16:20:01 +08:00

197 lines
5.9 KiB
Go

/*
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package answer_sdk
import (
"encoding/json"
)
// checks if the InstallCheckConfigFileResp type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &InstallCheckConfigFileResp{}
// InstallCheckConfigFileResp struct for InstallCheckConfigFileResp
type InstallCheckConfigFileResp struct {
ConfigFileExist *bool `json:"config_file_exist,omitempty"`
DbConnectionSuccess *bool `json:"db_connection_success,omitempty"`
DbTableExist *bool `json:"db_table_exist,omitempty"`
}
// NewInstallCheckConfigFileResp instantiates a new InstallCheckConfigFileResp 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 NewInstallCheckConfigFileResp() *InstallCheckConfigFileResp {
this := InstallCheckConfigFileResp{}
return &this
}
// NewInstallCheckConfigFileRespWithDefaults instantiates a new InstallCheckConfigFileResp 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 NewInstallCheckConfigFileRespWithDefaults() *InstallCheckConfigFileResp {
this := InstallCheckConfigFileResp{}
return &this
}
// GetConfigFileExist returns the ConfigFileExist field value if set, zero value otherwise.
func (o *InstallCheckConfigFileResp) GetConfigFileExist() bool {
if o == nil || IsNil(o.ConfigFileExist) {
var ret bool
return ret
}
return *o.ConfigFileExist
}
// GetConfigFileExistOk returns a tuple with the ConfigFileExist field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstallCheckConfigFileResp) GetConfigFileExistOk() (*bool, bool) {
if o == nil || IsNil(o.ConfigFileExist) {
return nil, false
}
return o.ConfigFileExist, true
}
// HasConfigFileExist returns a boolean if a field has been set.
func (o *InstallCheckConfigFileResp) HasConfigFileExist() bool {
if o != nil && !IsNil(o.ConfigFileExist) {
return true
}
return false
}
// SetConfigFileExist gets a reference to the given bool and assigns it to the ConfigFileExist field.
func (o *InstallCheckConfigFileResp) SetConfigFileExist(v bool) {
o.ConfigFileExist = &v
}
// GetDbConnectionSuccess returns the DbConnectionSuccess field value if set, zero value otherwise.
func (o *InstallCheckConfigFileResp) GetDbConnectionSuccess() bool {
if o == nil || IsNil(o.DbConnectionSuccess) {
var ret bool
return ret
}
return *o.DbConnectionSuccess
}
// GetDbConnectionSuccessOk returns a tuple with the DbConnectionSuccess field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstallCheckConfigFileResp) GetDbConnectionSuccessOk() (*bool, bool) {
if o == nil || IsNil(o.DbConnectionSuccess) {
return nil, false
}
return o.DbConnectionSuccess, true
}
// HasDbConnectionSuccess returns a boolean if a field has been set.
func (o *InstallCheckConfigFileResp) HasDbConnectionSuccess() bool {
if o != nil && !IsNil(o.DbConnectionSuccess) {
return true
}
return false
}
// SetDbConnectionSuccess gets a reference to the given bool and assigns it to the DbConnectionSuccess field.
func (o *InstallCheckConfigFileResp) SetDbConnectionSuccess(v bool) {
o.DbConnectionSuccess = &v
}
// GetDbTableExist returns the DbTableExist field value if set, zero value otherwise.
func (o *InstallCheckConfigFileResp) GetDbTableExist() bool {
if o == nil || IsNil(o.DbTableExist) {
var ret bool
return ret
}
return *o.DbTableExist
}
// GetDbTableExistOk returns a tuple with the DbTableExist field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstallCheckConfigFileResp) GetDbTableExistOk() (*bool, bool) {
if o == nil || IsNil(o.DbTableExist) {
return nil, false
}
return o.DbTableExist, true
}
// HasDbTableExist returns a boolean if a field has been set.
func (o *InstallCheckConfigFileResp) HasDbTableExist() bool {
if o != nil && !IsNil(o.DbTableExist) {
return true
}
return false
}
// SetDbTableExist gets a reference to the given bool and assigns it to the DbTableExist field.
func (o *InstallCheckConfigFileResp) SetDbTableExist(v bool) {
o.DbTableExist = &v
}
func (o InstallCheckConfigFileResp) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o InstallCheckConfigFileResp) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ConfigFileExist) {
toSerialize["config_file_exist"] = o.ConfigFileExist
}
if !IsNil(o.DbConnectionSuccess) {
toSerialize["db_connection_success"] = o.DbConnectionSuccess
}
if !IsNil(o.DbTableExist) {
toSerialize["db_table_exist"] = o.DbTableExist
}
return toSerialize, nil
}
type NullableInstallCheckConfigFileResp struct {
value *InstallCheckConfigFileResp
isSet bool
}
func (v NullableInstallCheckConfigFileResp) Get() *InstallCheckConfigFileResp {
return v.value
}
func (v *NullableInstallCheckConfigFileResp) Set(val *InstallCheckConfigFileResp) {
v.value = val
v.isSet = true
}
func (v NullableInstallCheckConfigFileResp) IsSet() bool {
return v.isSet
}
func (v *NullableInstallCheckConfigFileResp) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInstallCheckConfigFileResp(val *InstallCheckConfigFileResp) *NullableInstallCheckConfigFileResp {
return &NullableInstallCheckConfigFileResp{value: val, isSet: true}
}
func (v NullableInstallCheckConfigFileResp) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInstallCheckConfigFileResp) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}