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

143 lines
3.8 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 SchemaUpdateUserPasswordReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaUpdateUserPasswordReq{}
// SchemaUpdateUserPasswordReq struct for SchemaUpdateUserPasswordReq
type SchemaUpdateUserPasswordReq struct {
Password string `json:"password"`
UserId string `json:"user_id"`
}
// NewSchemaUpdateUserPasswordReq instantiates a new SchemaUpdateUserPasswordReq 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 NewSchemaUpdateUserPasswordReq(password string, userId string) *SchemaUpdateUserPasswordReq {
this := SchemaUpdateUserPasswordReq{}
this.Password = password
this.UserId = userId
return &this
}
// NewSchemaUpdateUserPasswordReqWithDefaults instantiates a new SchemaUpdateUserPasswordReq 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 NewSchemaUpdateUserPasswordReqWithDefaults() *SchemaUpdateUserPasswordReq {
this := SchemaUpdateUserPasswordReq{}
return &this
}
// GetPassword returns the Password field value
func (o *SchemaUpdateUserPasswordReq) GetPassword() string {
if o == nil {
var ret string
return ret
}
return o.Password
}
// GetPasswordOk returns a tuple with the Password field value
// and a boolean to check if the value has been set.
func (o *SchemaUpdateUserPasswordReq) GetPasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Password, true
}
// SetPassword sets field value
func (o *SchemaUpdateUserPasswordReq) SetPassword(v string) {
o.Password = v
}
// GetUserId returns the UserId field value
func (o *SchemaUpdateUserPasswordReq) GetUserId() string {
if o == nil {
var ret string
return ret
}
return o.UserId
}
// GetUserIdOk returns a tuple with the UserId field value
// and a boolean to check if the value has been set.
func (o *SchemaUpdateUserPasswordReq) GetUserIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UserId, true
}
// SetUserId sets field value
func (o *SchemaUpdateUserPasswordReq) SetUserId(v string) {
o.UserId = v
}
func (o SchemaUpdateUserPasswordReq) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaUpdateUserPasswordReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["password"] = o.Password
toSerialize["user_id"] = o.UserId
return toSerialize, nil
}
type NullableSchemaUpdateUserPasswordReq struct {
value *SchemaUpdateUserPasswordReq
isSet bool
}
func (v NullableSchemaUpdateUserPasswordReq) Get() *SchemaUpdateUserPasswordReq {
return v.value
}
func (v *NullableSchemaUpdateUserPasswordReq) Set(val *SchemaUpdateUserPasswordReq) {
v.value = val
v.isSet = true
}
func (v NullableSchemaUpdateUserPasswordReq) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaUpdateUserPasswordReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaUpdateUserPasswordReq(val *SchemaUpdateUserPasswordReq) *NullableSchemaUpdateUserPasswordReq {
return &NullableSchemaUpdateUserPasswordReq{value: val, isSet: true}
}
func (v NullableSchemaUpdateUserPasswordReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaUpdateUserPasswordReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}