161 lines
4.8 KiB
Go
161 lines
4.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 SchemaAdminSetQuestionStatusRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaAdminSetQuestionStatusRequest{}
|
|
|
|
// SchemaAdminSetQuestionStatusRequest struct for SchemaAdminSetQuestionStatusRequest
|
|
type SchemaAdminSetQuestionStatusRequest struct {
|
|
QuestionId *string `json:"question_id,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// NewSchemaAdminSetQuestionStatusRequest instantiates a new SchemaAdminSetQuestionStatusRequest 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 NewSchemaAdminSetQuestionStatusRequest() *SchemaAdminSetQuestionStatusRequest {
|
|
this := SchemaAdminSetQuestionStatusRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaAdminSetQuestionStatusRequestWithDefaults instantiates a new SchemaAdminSetQuestionStatusRequest 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 NewSchemaAdminSetQuestionStatusRequestWithDefaults() *SchemaAdminSetQuestionStatusRequest {
|
|
this := SchemaAdminSetQuestionStatusRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetQuestionId returns the QuestionId field value if set, zero value otherwise.
|
|
func (o *SchemaAdminSetQuestionStatusRequest) GetQuestionId() string {
|
|
if o == nil || IsNil(o.QuestionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.QuestionId
|
|
}
|
|
|
|
// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaAdminSetQuestionStatusRequest) GetQuestionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.QuestionId) {
|
|
return nil, false
|
|
}
|
|
return o.QuestionId, true
|
|
}
|
|
|
|
// HasQuestionId returns a boolean if a field has been set.
|
|
func (o *SchemaAdminSetQuestionStatusRequest) HasQuestionId() bool {
|
|
if o != nil && !IsNil(o.QuestionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field.
|
|
func (o *SchemaAdminSetQuestionStatusRequest) SetQuestionId(v string) {
|
|
o.QuestionId = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
func (o SchemaAdminSetQuestionStatusRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaAdminSetQuestionStatusRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.QuestionId) {
|
|
toSerialize["question_id"] = o.QuestionId
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaAdminSetQuestionStatusRequest struct {
|
|
value *SchemaAdminSetQuestionStatusRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetQuestionStatusRequest) Get() *SchemaAdminSetQuestionStatusRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetQuestionStatusRequest) Set(val *SchemaAdminSetQuestionStatusRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetQuestionStatusRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetQuestionStatusRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaAdminSetQuestionStatusRequest(val *SchemaAdminSetQuestionStatusRequest) *NullableSchemaAdminSetQuestionStatusRequest {
|
|
return &NullableSchemaAdminSetQuestionStatusRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaAdminSetQuestionStatusRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaAdminSetQuestionStatusRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|