/* answer answer api API version: v0.0.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package openapi import ( "encoding/json" ) // checks if the SchemaGetRankPersonalWithPageResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaGetRankPersonalWithPageResp{} // SchemaGetRankPersonalWithPageResp struct for SchemaGetRankPersonalWithPageResp type SchemaGetRankPersonalWithPageResp struct { // answer id AnswerId *string `json:"answer_id,omitempty"` // content Content *string `json:"content,omitempty"` // create time CreatedAt *int32 `json:"created_at,omitempty"` // object id ObjectId *string `json:"object_id,omitempty"` // object type ObjectType *string `json:"object_type,omitempty"` // question id QuestionId *string `json:"question_id,omitempty"` // rank type RankType *string `json:"rank_type,omitempty"` // reputation Reputation *int32 `json:"reputation,omitempty"` // title Title *string `json:"title,omitempty"` // url title UrlTitle *string `json:"url_title,omitempty"` } // NewSchemaGetRankPersonalWithPageResp instantiates a new SchemaGetRankPersonalWithPageResp 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 NewSchemaGetRankPersonalWithPageResp() *SchemaGetRankPersonalWithPageResp { this := SchemaGetRankPersonalWithPageResp{} return &this } // NewSchemaGetRankPersonalWithPageRespWithDefaults instantiates a new SchemaGetRankPersonalWithPageResp 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 NewSchemaGetRankPersonalWithPageRespWithDefaults() *SchemaGetRankPersonalWithPageResp { this := SchemaGetRankPersonalWithPageResp{} return &this } // GetAnswerId returns the AnswerId field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) SetAnswerId(v string) { o.AnswerId = &v } // GetContent returns the Content field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetContent() string { if o == nil || IsNil(o.Content) { var ret string return ret } return *o.Content } // GetContentOk returns a tuple with the Content field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetContentOk() (*string, bool) { if o == nil || IsNil(o.Content) { return nil, false } return o.Content, true } // HasContent returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasContent() bool { if o != nil && !IsNil(o.Content) { return true } return false } // SetContent gets a reference to the given string and assigns it to the Content field. func (o *SchemaGetRankPersonalWithPageResp) SetContent(v string) { o.Content = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAt() int32 { if o == nil || IsNil(o.CreatedAt) { var ret int32 return ret } return *o.CreatedAt } // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAtOk() (*int32, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true } // HasCreatedAt returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } return false } // SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. func (o *SchemaGetRankPersonalWithPageResp) SetCreatedAt(v int32) { o.CreatedAt = &v } // GetObjectId returns the ObjectId field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetObjectId() string { if o == nil || IsNil(o.ObjectId) { var ret string return ret } return *o.ObjectId } // GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetObjectIdOk() (*string, bool) { if o == nil || IsNil(o.ObjectId) { return nil, false } return o.ObjectId, true } // HasObjectId returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasObjectId() bool { if o != nil && !IsNil(o.ObjectId) { return true } return false } // SetObjectId gets a reference to the given string and assigns it to the ObjectId field. func (o *SchemaGetRankPersonalWithPageResp) SetObjectId(v string) { o.ObjectId = &v } // GetObjectType returns the ObjectType field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetObjectType() string { if o == nil || IsNil(o.ObjectType) { var ret string return ret } return *o.ObjectType } // GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetObjectTypeOk() (*string, bool) { if o == nil || IsNil(o.ObjectType) { return nil, false } return o.ObjectType, true } // HasObjectType returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasObjectType() bool { if o != nil && !IsNil(o.ObjectType) { return true } return false } // SetObjectType gets a reference to the given string and assigns it to the ObjectType field. func (o *SchemaGetRankPersonalWithPageResp) SetObjectType(v string) { o.ObjectType = &v } // GetQuestionId returns the QuestionId field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) 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 *SchemaGetRankPersonalWithPageResp) SetQuestionId(v string) { o.QuestionId = &v } // GetRankType returns the RankType field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetRankType() string { if o == nil || IsNil(o.RankType) { var ret string return ret } return *o.RankType } // GetRankTypeOk returns a tuple with the RankType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetRankTypeOk() (*string, bool) { if o == nil || IsNil(o.RankType) { return nil, false } return o.RankType, true } // HasRankType returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasRankType() bool { if o != nil && !IsNil(o.RankType) { return true } return false } // SetRankType gets a reference to the given string and assigns it to the RankType field. func (o *SchemaGetRankPersonalWithPageResp) SetRankType(v string) { o.RankType = &v } // GetReputation returns the Reputation field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetReputation() int32 { if o == nil || IsNil(o.Reputation) { var ret int32 return ret } return *o.Reputation } // GetReputationOk returns a tuple with the Reputation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetReputationOk() (*int32, bool) { if o == nil || IsNil(o.Reputation) { return nil, false } return o.Reputation, true } // HasReputation returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasReputation() bool { if o != nil && !IsNil(o.Reputation) { return true } return false } // SetReputation gets a reference to the given int32 and assigns it to the Reputation field. func (o *SchemaGetRankPersonalWithPageResp) SetReputation(v int32) { o.Reputation = &v } // GetTitle returns the Title field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetTitle() string { if o == nil || IsNil(o.Title) { var ret string return ret } return *o.Title } // GetTitleOk returns a tuple with the Title field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetTitleOk() (*string, bool) { if o == nil || IsNil(o.Title) { return nil, false } return o.Title, true } // HasTitle returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasTitle() bool { if o != nil && !IsNil(o.Title) { return true } return false } // SetTitle gets a reference to the given string and assigns it to the Title field. func (o *SchemaGetRankPersonalWithPageResp) SetTitle(v string) { o.Title = &v } // GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitle() string { if o == nil || IsNil(o.UrlTitle) { var ret string return ret } return *o.UrlTitle } // GetUrlTitleOk returns a tuple with the UrlTitle field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitleOk() (*string, bool) { if o == nil || IsNil(o.UrlTitle) { return nil, false } return o.UrlTitle, true } // HasUrlTitle returns a boolean if a field has been set. func (o *SchemaGetRankPersonalWithPageResp) HasUrlTitle() bool { if o != nil && !IsNil(o.UrlTitle) { return true } return false } // SetUrlTitle gets a reference to the given string and assigns it to the UrlTitle field. func (o *SchemaGetRankPersonalWithPageResp) SetUrlTitle(v string) { o.UrlTitle = &v } func (o SchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaGetRankPersonalWithPageResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.AnswerId) { toSerialize["answer_id"] = o.AnswerId } if !IsNil(o.Content) { toSerialize["content"] = o.Content } if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } if !IsNil(o.ObjectId) { toSerialize["object_id"] = o.ObjectId } if !IsNil(o.ObjectType) { toSerialize["object_type"] = o.ObjectType } if !IsNil(o.QuestionId) { toSerialize["question_id"] = o.QuestionId } if !IsNil(o.RankType) { toSerialize["rank_type"] = o.RankType } if !IsNil(o.Reputation) { toSerialize["reputation"] = o.Reputation } if !IsNil(o.Title) { toSerialize["title"] = o.Title } if !IsNil(o.UrlTitle) { toSerialize["url_title"] = o.UrlTitle } return toSerialize, nil } type NullableSchemaGetRankPersonalWithPageResp struct { value *SchemaGetRankPersonalWithPageResp isSet bool } func (v NullableSchemaGetRankPersonalWithPageResp) Get() *SchemaGetRankPersonalWithPageResp { return v.value } func (v *NullableSchemaGetRankPersonalWithPageResp) Set(val *SchemaGetRankPersonalWithPageResp) { v.value = val v.isSet = true } func (v NullableSchemaGetRankPersonalWithPageResp) IsSet() bool { return v.isSet } func (v *NullableSchemaGetRankPersonalWithPageResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaGetRankPersonalWithPageResp(val *SchemaGetRankPersonalWithPageResp) *NullableSchemaGetRankPersonalWithPageResp { return &NullableSchemaGetRankPersonalWithPageResp{value: val, isSet: true} } func (v NullableSchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaGetRankPersonalWithPageResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }