521 lines
14 KiB
Go
521 lines
14 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 SchemaActObjectTimeline type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaActObjectTimeline{}
|
|
|
|
// SchemaActObjectTimeline struct for SchemaActObjectTimeline
|
|
type SchemaActObjectTimeline struct {
|
|
ActivityId *string `json:"activity_id,omitempty"`
|
|
ActivityType *string `json:"activity_type,omitempty"`
|
|
Cancelled *bool `json:"cancelled,omitempty"`
|
|
CancelledAt *int32 `json:"cancelled_at,omitempty"`
|
|
Comment *string `json:"comment,omitempty"`
|
|
CreatedAt *int32 `json:"created_at,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ObjectId *string `json:"object_id,omitempty"`
|
|
ObjectType *string `json:"object_type,omitempty"`
|
|
RevisionId *string `json:"revision_id,omitempty"`
|
|
UserDisplayName *string `json:"user_display_name,omitempty"`
|
|
Username *string `json:"username,omitempty"`
|
|
}
|
|
|
|
// NewSchemaActObjectTimeline instantiates a new SchemaActObjectTimeline 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 NewSchemaActObjectTimeline() *SchemaActObjectTimeline {
|
|
this := SchemaActObjectTimeline{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaActObjectTimelineWithDefaults instantiates a new SchemaActObjectTimeline 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 NewSchemaActObjectTimelineWithDefaults() *SchemaActObjectTimeline {
|
|
this := SchemaActObjectTimeline{}
|
|
return &this
|
|
}
|
|
|
|
// GetActivityId returns the ActivityId field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetActivityId() string {
|
|
if o == nil || IsNil(o.ActivityId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ActivityId
|
|
}
|
|
|
|
// GetActivityIdOk returns a tuple with the ActivityId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetActivityIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ActivityId) {
|
|
return nil, false
|
|
}
|
|
return o.ActivityId, true
|
|
}
|
|
|
|
// HasActivityId returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasActivityId() bool {
|
|
if o != nil && !IsNil(o.ActivityId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActivityId gets a reference to the given string and assigns it to the ActivityId field.
|
|
func (o *SchemaActObjectTimeline) SetActivityId(v string) {
|
|
o.ActivityId = &v
|
|
}
|
|
|
|
// GetActivityType returns the ActivityType field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetActivityType() string {
|
|
if o == nil || IsNil(o.ActivityType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ActivityType
|
|
}
|
|
|
|
// GetActivityTypeOk returns a tuple with the ActivityType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetActivityTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ActivityType) {
|
|
return nil, false
|
|
}
|
|
return o.ActivityType, true
|
|
}
|
|
|
|
// HasActivityType returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasActivityType() bool {
|
|
if o != nil && !IsNil(o.ActivityType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActivityType gets a reference to the given string and assigns it to the ActivityType field.
|
|
func (o *SchemaActObjectTimeline) SetActivityType(v string) {
|
|
o.ActivityType = &v
|
|
}
|
|
|
|
// GetCancelled returns the Cancelled field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetCancelled() bool {
|
|
if o == nil || IsNil(o.Cancelled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Cancelled
|
|
}
|
|
|
|
// GetCancelledOk returns a tuple with the Cancelled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetCancelledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Cancelled) {
|
|
return nil, false
|
|
}
|
|
return o.Cancelled, true
|
|
}
|
|
|
|
// HasCancelled returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasCancelled() bool {
|
|
if o != nil && !IsNil(o.Cancelled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCancelled gets a reference to the given bool and assigns it to the Cancelled field.
|
|
func (o *SchemaActObjectTimeline) SetCancelled(v bool) {
|
|
o.Cancelled = &v
|
|
}
|
|
|
|
// GetCancelledAt returns the CancelledAt field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetCancelledAt() int32 {
|
|
if o == nil || IsNil(o.CancelledAt) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.CancelledAt
|
|
}
|
|
|
|
// GetCancelledAtOk returns a tuple with the CancelledAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetCancelledAtOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.CancelledAt) {
|
|
return nil, false
|
|
}
|
|
return o.CancelledAt, true
|
|
}
|
|
|
|
// HasCancelledAt returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasCancelledAt() bool {
|
|
if o != nil && !IsNil(o.CancelledAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCancelledAt gets a reference to the given int32 and assigns it to the CancelledAt field.
|
|
func (o *SchemaActObjectTimeline) SetCancelledAt(v int32) {
|
|
o.CancelledAt = &v
|
|
}
|
|
|
|
// GetComment returns the Comment field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetComment() string {
|
|
if o == nil || IsNil(o.Comment) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Comment
|
|
}
|
|
|
|
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetCommentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Comment) {
|
|
return nil, false
|
|
}
|
|
return o.Comment, true
|
|
}
|
|
|
|
// HasComment returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasComment() bool {
|
|
if o != nil && !IsNil(o.Comment) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetComment gets a reference to the given string and assigns it to the Comment field.
|
|
func (o *SchemaActObjectTimeline) SetComment(v string) {
|
|
o.Comment = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetCreatedAt(v int32) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *SchemaActObjectTimeline) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectId(v string) {
|
|
o.ObjectId = &v
|
|
}
|
|
|
|
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectType(v string) {
|
|
o.ObjectType = &v
|
|
}
|
|
|
|
// GetRevisionId returns the RevisionId field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetRevisionId() string {
|
|
if o == nil || IsNil(o.RevisionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RevisionId
|
|
}
|
|
|
|
// GetRevisionIdOk returns a tuple with the RevisionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetRevisionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RevisionId) {
|
|
return nil, false
|
|
}
|
|
return o.RevisionId, true
|
|
}
|
|
|
|
// HasRevisionId returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasRevisionId() bool {
|
|
if o != nil && !IsNil(o.RevisionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRevisionId gets a reference to the given string and assigns it to the RevisionId field.
|
|
func (o *SchemaActObjectTimeline) SetRevisionId(v string) {
|
|
o.RevisionId = &v
|
|
}
|
|
|
|
// GetUserDisplayName returns the UserDisplayName field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetUserDisplayName() string {
|
|
if o == nil || IsNil(o.UserDisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserDisplayName
|
|
}
|
|
|
|
// GetUserDisplayNameOk returns a tuple with the UserDisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetUserDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserDisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.UserDisplayName, true
|
|
}
|
|
|
|
// HasUserDisplayName returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasUserDisplayName() bool {
|
|
if o != nil && !IsNil(o.UserDisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserDisplayName gets a reference to the given string and assigns it to the UserDisplayName field.
|
|
func (o *SchemaActObjectTimeline) SetUserDisplayName(v string) {
|
|
o.UserDisplayName = &v
|
|
}
|
|
|
|
// GetUsername returns the Username field value if set, zero value otherwise.
|
|
func (o *SchemaActObjectTimeline) GetUsername() string {
|
|
if o == nil || IsNil(o.Username) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Username
|
|
}
|
|
|
|
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaActObjectTimeline) GetUsernameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Username) {
|
|
return nil, false
|
|
}
|
|
return o.Username, true
|
|
}
|
|
|
|
// HasUsername returns a boolean if a field has been set.
|
|
func (o *SchemaActObjectTimeline) HasUsername() bool {
|
|
if o != nil && !IsNil(o.Username) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUsername gets a reference to the given string and assigns it to the Username field.
|
|
func (o *SchemaActObjectTimeline) SetUsername(v string) {
|
|
o.Username = &v
|
|
}
|
|
|
|
func (o SchemaActObjectTimeline) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaActObjectTimeline) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ActivityId) {
|
|
toSerialize["activity_id"] = o.ActivityId
|
|
}
|
|
if !IsNil(o.ActivityType) {
|
|
toSerialize["activity_type"] = o.ActivityType
|
|
}
|
|
if !IsNil(o.Cancelled) {
|
|
toSerialize["cancelled"] = o.Cancelled
|
|
}
|
|
if !IsNil(o.CancelledAt) {
|
|
toSerialize["cancelled_at"] = o.CancelledAt
|
|
}
|
|
if !IsNil(o.Comment) {
|
|
toSerialize["comment"] = o.Comment
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["created_at"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.ObjectId) {
|
|
toSerialize["object_id"] = o.ObjectId
|
|
}
|
|
if !IsNil(o.ObjectType) {
|
|
toSerialize["object_type"] = o.ObjectType
|
|
}
|
|
if !IsNil(o.RevisionId) {
|
|
toSerialize["revision_id"] = o.RevisionId
|
|
}
|
|
if !IsNil(o.UserDisplayName) {
|
|
toSerialize["user_display_name"] = o.UserDisplayName
|
|
}
|
|
if !IsNil(o.Username) {
|
|
toSerialize["username"] = o.Username
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaActObjectTimeline struct {
|
|
value *SchemaActObjectTimeline
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaActObjectTimeline) Get() *SchemaActObjectTimeline {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaActObjectTimeline) Set(val *SchemaActObjectTimeline) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaActObjectTimeline) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaActObjectTimeline) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaActObjectTimeline(val *SchemaActObjectTimeline) *NullableSchemaActObjectTimeline {
|
|
return &NullableSchemaActObjectTimeline{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaActObjectTimeline) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaActObjectTimeline) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|