/* 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 SchemaConnectorInfoResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaConnectorInfoResp{} // SchemaConnectorInfoResp struct for SchemaConnectorInfoResp type SchemaConnectorInfoResp struct { Icon *string `json:"icon,omitempty"` Link *string `json:"link,omitempty"` Name *string `json:"name,omitempty"` } // NewSchemaConnectorInfoResp instantiates a new SchemaConnectorInfoResp 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 NewSchemaConnectorInfoResp() *SchemaConnectorInfoResp { this := SchemaConnectorInfoResp{} return &this } // NewSchemaConnectorInfoRespWithDefaults instantiates a new SchemaConnectorInfoResp 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 NewSchemaConnectorInfoRespWithDefaults() *SchemaConnectorInfoResp { this := SchemaConnectorInfoResp{} return &this } // GetIcon returns the Icon field value if set, zero value otherwise. func (o *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) SetIcon(v string) { o.Icon = &v } // GetLink returns the Link field value if set, zero value otherwise. func (o *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) SetLink(v string) { o.Link = &v } // GetName returns the Name field value if set, zero value otherwise. func (o *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) SetName(v string) { o.Name = &v } func (o SchemaConnectorInfoResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaConnectorInfoResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} 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 NullableSchemaConnectorInfoResp struct { value *SchemaConnectorInfoResp isSet bool } func (v NullableSchemaConnectorInfoResp) Get() *SchemaConnectorInfoResp { return v.value } func (v *NullableSchemaConnectorInfoResp) Set(val *SchemaConnectorInfoResp) { v.value = val v.isSet = true } func (v NullableSchemaConnectorInfoResp) IsSet() bool { return v.isSet } func (v *NullableSchemaConnectorInfoResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaConnectorInfoResp(val *SchemaConnectorInfoResp) *NullableSchemaConnectorInfoResp { return &NullableSchemaConnectorInfoResp{value: val, isSet: true} } func (v NullableSchemaConnectorInfoResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaConnectorInfoResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }