Name | Type | Description | Notes |
---|---|---|---|
Id | string | Globally unique task's identifier | |
CreatedAt | string | The timestamp when the task was created in the format <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>. | |
Type | TaskType | ||
Status | TaskStatus | ||
Payload | TaskPayload |
func NewTask(id string, createdAt string, type_ TaskType, status TaskStatus, payload TaskPayload, ) *Task
NewTask instantiates a new Task 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 NewTaskWithDefaults() *Task
NewTaskWithDefaults instantiates a new Task 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 (o *Task) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Task) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Task) SetId(v string)
SetId sets Id field to given value.
func (o *Task) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *Task) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Task) SetCreatedAt(v string)
SetCreatedAt sets CreatedAt field to given value.
func (o *Task) GetType() TaskType
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Task) GetTypeOk() (*TaskType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Task) SetType(v TaskType)
SetType sets Type field to given value.
func (o *Task) GetStatus() TaskStatus
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *Task) GetStatusOk() (*TaskStatus, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Task) SetStatus(v TaskStatus)
SetStatus sets Status field to given value.
func (o *Task) GetPayload() TaskPayload
GetPayload returns the Payload field if non-nil, zero value otherwise.
func (o *Task) GetPayloadOk() (*TaskPayload, bool)
GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Task) SetPayload(v TaskPayload)
SetPayload sets Payload field to given value.