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

269 lines
7.2 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 SchemaConnectorUserInfoResp type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaConnectorUserInfoResp{}
// SchemaConnectorUserInfoResp struct for SchemaConnectorUserInfoResp
type SchemaConnectorUserInfoResp struct {
Binding *bool `json:"binding,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
Icon *string `json:"icon,omitempty"`
Link *string `json:"link,omitempty"`
Name *string `json:"name,omitempty"`
}
// NewSchemaConnectorUserInfoResp instantiates a new SchemaConnectorUserInfoResp 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 NewSchemaConnectorUserInfoResp() *SchemaConnectorUserInfoResp {
this := SchemaConnectorUserInfoResp{}
return &this
}
// NewSchemaConnectorUserInfoRespWithDefaults instantiates a new SchemaConnectorUserInfoResp 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 NewSchemaConnectorUserInfoRespWithDefaults() *SchemaConnectorUserInfoResp {
this := SchemaConnectorUserInfoResp{}
return &this
}
// GetBinding returns the Binding field value if set, zero value otherwise.
func (o *SchemaConnectorUserInfoResp) GetBinding() bool {
if o == nil || IsNil(o.Binding) {
var ret bool
return ret
}
return *o.Binding
}
// GetBindingOk returns a tuple with the Binding field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaConnectorUserInfoResp) GetBindingOk() (*bool, bool) {
if o == nil || IsNil(o.Binding) {
return nil, false
}
return o.Binding, true
}
// HasBinding returns a boolean if a field has been set.
func (o *SchemaConnectorUserInfoResp) HasBinding() bool {
if o != nil && !IsNil(o.Binding) {
return true
}
return false
}
// SetBinding gets a reference to the given bool and assigns it to the Binding field.
func (o *SchemaConnectorUserInfoResp) SetBinding(v bool) {
o.Binding = &v
}
// GetExternalId returns the ExternalId field value if set, zero value otherwise.
func (o *SchemaConnectorUserInfoResp) GetExternalId() string {
if o == nil || IsNil(o.ExternalId) {
var ret string
return ret
}
return *o.ExternalId
}
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaConnectorUserInfoResp) GetExternalIdOk() (*string, bool) {
if o == nil || IsNil(o.ExternalId) {
return nil, false
}
return o.ExternalId, true
}
// HasExternalId returns a boolean if a field has been set.
func (o *SchemaConnectorUserInfoResp) HasExternalId() bool {
if o != nil && !IsNil(o.ExternalId) {
return true
}
return false
}
// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
func (o *SchemaConnectorUserInfoResp) SetExternalId(v string) {
o.ExternalId = &v
}
// GetIcon returns the Icon field value if set, zero value otherwise.
func (o *SchemaConnectorUserInfoResp) GetIcon() string {
if o == nil || IsNil(o.Icon) {
var ret string
return ret
}
return *o.Icon
}
// GetIconOk returns a tuple with the Icon field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaConnectorUserInfoResp) GetIconOk() (*string, bool) {
if o == nil || IsNil(o.Icon) {
return nil, false
}
return o.Icon, true
}
// HasIcon returns a boolean if a field has been set.
func (o *SchemaConnectorUserInfoResp) HasIcon() bool {
if o != nil && !IsNil(o.Icon) {
return true
}
return false
}
// SetIcon gets a reference to the given string and assigns it to the Icon field.
func (o *SchemaConnectorUserInfoResp) SetIcon(v string) {
o.Icon = &v
}
// GetLink returns the Link field value if set, zero value otherwise.
func (o *SchemaConnectorUserInfoResp) GetLink() string {
if o == nil || IsNil(o.Link) {
var ret string
return ret
}
return *o.Link
}
// GetLinkOk returns a tuple with the Link field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaConnectorUserInfoResp) GetLinkOk() (*string, bool) {
if o == nil || IsNil(o.Link) {
return nil, false
}
return o.Link, true
}
// HasLink returns a boolean if a field has been set.
func (o *SchemaConnectorUserInfoResp) HasLink() bool {
if o != nil && !IsNil(o.Link) {
return true
}
return false
}
// SetLink gets a reference to the given string and assigns it to the Link field.
func (o *SchemaConnectorUserInfoResp) SetLink(v string) {
o.Link = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) SetName(v string) {
o.Name = &v
}
func (o SchemaConnectorUserInfoResp) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaConnectorUserInfoResp) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Binding) {
toSerialize["binding"] = o.Binding
}
if !IsNil(o.ExternalId) {
toSerialize["external_id"] = o.ExternalId
}
if !IsNil(o.Icon) {
toSerialize["icon"] = o.Icon
}
if !IsNil(o.Link) {
toSerialize["link"] = o.Link
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
return toSerialize, nil
}
type NullableSchemaConnectorUserInfoResp struct {
value *SchemaConnectorUserInfoResp
isSet bool
}
func (v NullableSchemaConnectorUserInfoResp) Get() *SchemaConnectorUserInfoResp {
return v.value
}
func (v *NullableSchemaConnectorUserInfoResp) Set(val *SchemaConnectorUserInfoResp) {
v.value = val
v.isSet = true
}
func (v NullableSchemaConnectorUserInfoResp) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaConnectorUserInfoResp) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaConnectorUserInfoResp(val *SchemaConnectorUserInfoResp) *NullableSchemaConnectorUserInfoResp {
return &NullableSchemaConnectorUserInfoResp{value: val, isSet: true}
}
func (v NullableSchemaConnectorUserInfoResp) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaConnectorUserInfoResp) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}