161 lines
4.7 KiB
Go
161 lines
4.7 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 SchemaAdminSetAnswerStatusRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaAdminSetAnswerStatusRequest{}
|
|
|
|
// SchemaAdminSetAnswerStatusRequest struct for SchemaAdminSetAnswerStatusRequest
|
|
type SchemaAdminSetAnswerStatusRequest struct {
|
|
AnswerId *string `json:"answer_id,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// NewSchemaAdminSetAnswerStatusRequest instantiates a new SchemaAdminSetAnswerStatusRequest 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 NewSchemaAdminSetAnswerStatusRequest() *SchemaAdminSetAnswerStatusRequest {
|
|
this := SchemaAdminSetAnswerStatusRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaAdminSetAnswerStatusRequestWithDefaults instantiates a new SchemaAdminSetAnswerStatusRequest 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 NewSchemaAdminSetAnswerStatusRequestWithDefaults() *SchemaAdminSetAnswerStatusRequest {
|
|
this := SchemaAdminSetAnswerStatusRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetAnswerId returns the AnswerId field value if set, zero value otherwise.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) GetAnswerId() string {
|
|
if o == nil || IsNil(o.AnswerId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AnswerId
|
|
}
|
|
|
|
// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) GetAnswerIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AnswerId) {
|
|
return nil, false
|
|
}
|
|
return o.AnswerId, true
|
|
}
|
|
|
|
// HasAnswerId returns a boolean if a field has been set.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) HasAnswerId() bool {
|
|
if o != nil && !IsNil(o.AnswerId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) SetAnswerId(v string) {
|
|
o.AnswerId = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *SchemaAdminSetAnswerStatusRequest) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
func (o SchemaAdminSetAnswerStatusRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaAdminSetAnswerStatusRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AnswerId) {
|
|
toSerialize["answer_id"] = o.AnswerId
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaAdminSetAnswerStatusRequest struct {
|
|
value *SchemaAdminSetAnswerStatusRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetAnswerStatusRequest) Get() *SchemaAdminSetAnswerStatusRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetAnswerStatusRequest) Set(val *SchemaAdminSetAnswerStatusRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetAnswerStatusRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetAnswerStatusRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaAdminSetAnswerStatusRequest(val *SchemaAdminSetAnswerStatusRequest) *NullableSchemaAdminSetAnswerStatusRequest {
|
|
return &NullableSchemaAdminSetAnswerStatusRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetAnswerStatusRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetAnswerStatusRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|