/* 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" ) // TaskResponse struct for TaskResponse type TaskResponse struct { PlugTaskId *string `json:"plug_task_id,omitempty"` PlugTaskStatus *string `json:"plug_task_status,omitempty"` } // NewTaskResponse instantiates a new TaskResponse 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 NewTaskResponse() *TaskResponse { this := TaskResponse{} return &this } // NewTaskResponseWithDefaults instantiates a new TaskResponse 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 NewTaskResponseWithDefaults() *TaskResponse { this := TaskResponse{} return &this } // GetPlugTaskId returns the PlugTaskId field value if set, zero value otherwise. func (o *TaskResponse) GetPlugTaskId() string { if o == nil || o.PlugTaskId == nil { var ret string return ret } return *o.PlugTaskId } // GetPlugTaskIdOk returns a tuple with the PlugTaskId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResponse) GetPlugTaskIdOk() (*string, bool) { if o == nil || o.PlugTaskId == nil { return nil, false } return o.PlugTaskId, true } // HasPlugTaskId returns a boolean if a field has been set. func (o *TaskResponse) HasPlugTaskId() bool { if o != nil && o.PlugTaskId != nil { return true } return false } // SetPlugTaskId gets a reference to the given string and assigns it to the PlugTaskId field. func (o *TaskResponse) SetPlugTaskId(v string) { o.PlugTaskId = &v } // GetPlugTaskStatus returns the PlugTaskStatus field value if set, zero value otherwise. func (o *TaskResponse) GetPlugTaskStatus() string { if o == nil || o.PlugTaskStatus == nil { var ret string return ret } return *o.PlugTaskStatus } // GetPlugTaskStatusOk returns a tuple with the PlugTaskStatus field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TaskResponse) GetPlugTaskStatusOk() (*string, bool) { if o == nil || o.PlugTaskStatus == nil { return nil, false } return o.PlugTaskStatus, true } // HasPlugTaskStatus returns a boolean if a field has been set. func (o *TaskResponse) HasPlugTaskStatus() bool { if o != nil && o.PlugTaskStatus != nil { return true } return false } // SetPlugTaskStatus gets a reference to the given string and assigns it to the PlugTaskStatus field. func (o *TaskResponse) SetPlugTaskStatus(v string) { o.PlugTaskStatus = &v } func (o TaskResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.PlugTaskId != nil { toSerialize["plug_task_id"] = o.PlugTaskId } if o.PlugTaskStatus != nil { toSerialize["plug_task_status"] = o.PlugTaskStatus } return json.Marshal(toSerialize) } type NullableTaskResponse struct { value *TaskResponse isSet bool } func (v NullableTaskResponse) Get() *TaskResponse { return v.value } func (v *NullableTaskResponse) Set(val *TaskResponse) { v.value = val v.isSet = true } func (v NullableTaskResponse) IsSet() bool { return v.isSet } func (v *NullableTaskResponse) Unset() { v.value = nil v.isSet = false } func NewNullableTaskResponse(val *TaskResponse) *NullableTaskResponse { return &NullableTaskResponse{value: val, isSet: true} } func (v NullableTaskResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTaskResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }