/* 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 SchemaCollectionSwitchReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaCollectionSwitchReq{} // SchemaCollectionSwitchReq struct for SchemaCollectionSwitchReq type SchemaCollectionSwitchReq struct { // user collection group TagID GroupId string `json:"group_id"` // object TagID ObjectId string `json:"object_id"` } // NewSchemaCollectionSwitchReq instantiates a new SchemaCollectionSwitchReq 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 NewSchemaCollectionSwitchReq(groupId string, objectId string) *SchemaCollectionSwitchReq { this := SchemaCollectionSwitchReq{} this.GroupId = groupId this.ObjectId = objectId return &this } // NewSchemaCollectionSwitchReqWithDefaults instantiates a new SchemaCollectionSwitchReq 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 NewSchemaCollectionSwitchReqWithDefaults() *SchemaCollectionSwitchReq { this := SchemaCollectionSwitchReq{} return &this } // GetGroupId returns the GroupId field value func (o *SchemaCollectionSwitchReq) GetGroupId() string { if o == nil { var ret string return ret } return o.GroupId } // GetGroupIdOk returns a tuple with the GroupId field value // and a boolean to check if the value has been set. func (o *SchemaCollectionSwitchReq) GetGroupIdOk() (*string, bool) { if o == nil { return nil, false } return &o.GroupId, true } // SetGroupId sets field value func (o *SchemaCollectionSwitchReq) SetGroupId(v string) { o.GroupId = v } // GetObjectId returns the ObjectId field value func (o *SchemaCollectionSwitchReq) GetObjectId() string { if o == nil { var ret string return ret } return o.ObjectId } // GetObjectIdOk returns a tuple with the ObjectId field value // and a boolean to check if the value has been set. func (o *SchemaCollectionSwitchReq) GetObjectIdOk() (*string, bool) { if o == nil { return nil, false } return &o.ObjectId, true } // SetObjectId sets field value func (o *SchemaCollectionSwitchReq) SetObjectId(v string) { o.ObjectId = v } func (o SchemaCollectionSwitchReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaCollectionSwitchReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["group_id"] = o.GroupId toSerialize["object_id"] = o.ObjectId return toSerialize, nil } type NullableSchemaCollectionSwitchReq struct { value *SchemaCollectionSwitchReq isSet bool } func (v NullableSchemaCollectionSwitchReq) Get() *SchemaCollectionSwitchReq { return v.value } func (v *NullableSchemaCollectionSwitchReq) Set(val *SchemaCollectionSwitchReq) { v.value = val v.isSet = true } func (v NullableSchemaCollectionSwitchReq) IsSet() bool { return v.isSet } func (v *NullableSchemaCollectionSwitchReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaCollectionSwitchReq(val *SchemaCollectionSwitchReq) *NullableSchemaCollectionSwitchReq { return &NullableSchemaCollectionSwitchReq{value: val, isSet: true} } func (v NullableSchemaCollectionSwitchReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaCollectionSwitchReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }