/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object representing summary details of a job.See Also:
* AWS
* API Reference
The ID of the job.
*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *The ID of the job.
*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *The ID of the job.
*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *The ID of the job.
*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *The ID of the job.
*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *The ID of the job.
*/ inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *The ID of the job.
*/ inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *The ID of the job.
*/ inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;} /** *The name of the job.
*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *The name of the job.
*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *The name of the job.
*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *The name of the job.
*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *The name of the job.
*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *The name of the job.
*/ inline JobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *The name of the job.
*/ inline JobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *The name of the job.
*/ inline JobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} /** *The Unix timestamp for when the job was created. For non-array jobs and
* parent array jobs, this is when the job entered the SUBMITTED state
* (at the time SubmitJob was called). For array child jobs, this is when
* the child job was spawned by its parent and entered the PENDING
* state.
The Unix timestamp for when the job was created. For non-array jobs and
* parent array jobs, this is when the job entered the SUBMITTED state
* (at the time SubmitJob was called). For array child jobs, this is when
* the child job was spawned by its parent and entered the PENDING
* state.
The Unix timestamp for when the job was created. For non-array jobs and
* parent array jobs, this is when the job entered the SUBMITTED state
* (at the time SubmitJob was called). For array child jobs, this is when
* the child job was spawned by its parent and entered the PENDING
* state.
The Unix timestamp for when the job was created. For non-array jobs and
* parent array jobs, this is when the job entered the SUBMITTED state
* (at the time SubmitJob was called). For array child jobs, this is when
* the child job was spawned by its parent and entered the PENDING
* state.
The current status for the job.
*/ inline const JobStatus& GetStatus() const{ return m_status; } /** *The current status for the job.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status for the job.
*/ inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status for the job.
*/ inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status for the job.
*/ inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;} /** *The current status for the job.
*/ inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline JobSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline JobSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *A short, human-readable string to provide additional details about the * current status of the job.
*/ inline JobSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *The Unix timestamp for when the job was started (when the job transitioned
* from the STARTING state to the RUNNING state).
The Unix timestamp for when the job was started (when the job transitioned
* from the STARTING state to the RUNNING state).
The Unix timestamp for when the job was started (when the job transitioned
* from the STARTING state to the RUNNING state).
The Unix timestamp for when the job was started (when the job transitioned
* from the STARTING state to the RUNNING state).
The Unix timestamp for when the job was stopped (when the job transitioned
* from the RUNNING state to a terminal state, such as
* SUCCEEDED or FAILED).
The Unix timestamp for when the job was stopped (when the job transitioned
* from the RUNNING state to a terminal state, such as
* SUCCEEDED or FAILED).
The Unix timestamp for when the job was stopped (when the job transitioned
* from the RUNNING state to a terminal state, such as
* SUCCEEDED or FAILED).
The Unix timestamp for when the job was stopped (when the job transitioned
* from the RUNNING state to a terminal state, such as
* SUCCEEDED or FAILED).
An object representing the details of the container that is associated with * the job.
*/ inline const ContainerSummary& GetContainer() const{ return m_container; } /** *An object representing the details of the container that is associated with * the job.
*/ inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; } /** *An object representing the details of the container that is associated with * the job.
*/ inline void SetContainer(const ContainerSummary& value) { m_containerHasBeenSet = true; m_container = value; } /** *An object representing the details of the container that is associated with * the job.
*/ inline void SetContainer(ContainerSummary&& value) { m_containerHasBeenSet = true; m_container = std::move(value); } /** *An object representing the details of the container that is associated with * the job.
*/ inline JobSummary& WithContainer(const ContainerSummary& value) { SetContainer(value); return *this;} /** *An object representing the details of the container that is associated with * the job.
*/ inline JobSummary& WithContainer(ContainerSummary&& value) { SetContainer(std::move(value)); return *this;} /** *The array properties of the job, if it is an array job.
*/ inline const ArrayPropertiesSummary& GetArrayProperties() const{ return m_arrayProperties; } /** *The array properties of the job, if it is an array job.
*/ inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; } /** *The array properties of the job, if it is an array job.
*/ inline void SetArrayProperties(const ArrayPropertiesSummary& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = value; } /** *The array properties of the job, if it is an array job.
*/ inline void SetArrayProperties(ArrayPropertiesSummary&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::move(value); } /** *The array properties of the job, if it is an array job.
*/ inline JobSummary& WithArrayProperties(const ArrayPropertiesSummary& value) { SetArrayProperties(value); return *this;} /** *The array properties of the job, if it is an array job.
*/ inline JobSummary& WithArrayProperties(ArrayPropertiesSummary&& value) { SetArrayProperties(std::move(value)); return *this;} /** *The node properties for a single node in a job summary list.
*/ inline const NodePropertiesSummary& GetNodeProperties() const{ return m_nodeProperties; } /** *The node properties for a single node in a job summary list.
*/ inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; } /** *The node properties for a single node in a job summary list.
*/ inline void SetNodeProperties(const NodePropertiesSummary& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = value; } /** *The node properties for a single node in a job summary list.
*/ inline void SetNodeProperties(NodePropertiesSummary&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::move(value); } /** *The node properties for a single node in a job summary list.
*/ inline JobSummary& WithNodeProperties(const NodePropertiesSummary& value) { SetNodeProperties(value); return *this;} /** *The node properties for a single node in a job summary list.
*/ inline JobSummary& WithNodeProperties(NodePropertiesSummary&& value) { SetNodeProperties(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet; Aws::String m_jobName; bool m_jobNameHasBeenSet; long long m_createdAt; bool m_createdAtHasBeenSet; JobStatus m_status; bool m_statusHasBeenSet; Aws::String m_statusReason; bool m_statusReasonHasBeenSet; long long m_startedAt; bool m_startedAtHasBeenSet; long long m_stoppedAt; bool m_stoppedAtHasBeenSet; ContainerSummary m_container; bool m_containerHasBeenSet; ArrayPropertiesSummary m_arrayProperties; bool m_arrayPropertiesHasBeenSet; NodePropertiesSummary m_nodeProperties; bool m_nodePropertiesHasBeenSet; }; } // namespace Model } // namespace Batch } // namespace Aws