/* Anthrove Orchestrator API This service handles the communication between the manager and the plugs API version: 1.0 Contact: support@anthrove.art */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package openapi import ( "encoding/json" ) // TaskStartTask struct for TaskStartTask type TaskStartTask struct { UserApiKey *string `json:"user_api_key,omitempty"` UserId *string `json:"user_id,omitempty"` UserSourceId *string `json:"user_source_id,omitempty"` } // NewTaskStartTask instantiates a new TaskStartTask 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 NewTaskStartTask() *TaskStartTask { this := TaskStartTask{} return &this } // NewTaskStartTaskWithDefaults instantiates a new TaskStartTask 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 NewTaskStartTaskWithDefaults() *TaskStartTask { this := TaskStartTask{} return &this } // GetUserApiKey returns the UserApiKey field value if set, zero value otherwise. func (o *TaskStartTask) GetUserApiKey() string { if o == nil || o.UserApiKey == nil { var ret string return ret } return *o.UserApiKey } // GetUserApiKeyOk returns a tuple with the UserApiKey field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskStartTask) GetUserApiKeyOk() (*string, bool) { if o == nil || o.UserApiKey == nil { return nil, false } return o.UserApiKey, true } // HasUserApiKey returns a boolean if a field has been set. func (o *TaskStartTask) HasUserApiKey() bool { if o != nil && o.UserApiKey != nil { return true } return false } // SetUserApiKey gets a reference to the given string and assigns it to the UserApiKey field. func (o *TaskStartTask) SetUserApiKey(v string) { o.UserApiKey = &v } // GetUserId returns the UserId field value if set, zero value otherwise. func (o *TaskStartTask) GetUserId() string { if o == nil || o.UserId == nil { var ret string return ret } return *o.UserId } // GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskStartTask) GetUserIdOk() (*string, bool) { if o == nil || o.UserId == nil { return nil, false } return o.UserId, true } // HasUserId returns a boolean if a field has been set. func (o *TaskStartTask) HasUserId() bool { if o != nil && o.UserId != nil { return true } return false } // SetUserId gets a reference to the given string and assigns it to the UserId field. func (o *TaskStartTask) SetUserId(v string) { o.UserId = &v } // GetUserSourceId returns the UserSourceId field value if set, zero value otherwise. func (o *TaskStartTask) GetUserSourceId() string { if o == nil || o.UserSourceId == nil { var ret string return ret } return *o.UserSourceId } // GetUserSourceIdOk returns a tuple with the UserSourceId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskStartTask) GetUserSourceIdOk() (*string, bool) { if o == nil || o.UserSourceId == nil { return nil, false } return o.UserSourceId, true } // HasUserSourceId returns a boolean if a field has been set. func (o *TaskStartTask) HasUserSourceId() bool { if o != nil && o.UserSourceId != nil { return true } return false } // SetUserSourceId gets a reference to the given string and assigns it to the UserSourceId field. func (o *TaskStartTask) SetUserSourceId(v string) { o.UserSourceId = &v } func (o TaskStartTask) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.UserApiKey != nil { toSerialize["user_api_key"] = o.UserApiKey } if o.UserId != nil { toSerialize["user_id"] = o.UserId } if o.UserSourceId != nil { toSerialize["user_source_id"] = o.UserSourceId } return json.Marshal(toSerialize) } type NullableTaskStartTask struct { value *TaskStartTask isSet bool } func (v NullableTaskStartTask) Get() *TaskStartTask { return v.value } func (v *NullableTaskStartTask) Set(val *TaskStartTask) { v.value = val v.isSet = true } func (v NullableTaskStartTask) IsSet() bool { return v.isSet } func (v *NullableTaskStartTask) Unset() { v.value = nil v.isSet = false } func NewNullableTaskStartTask(val *TaskStartTask) *NullableTaskStartTask { return &NullableTaskStartTask{value: val, isSet: true} } func (v NullableTaskStartTask) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTaskStartTask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }