/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for TerminateJob
.See
* Also:
AWS
* API Reference
The Batch job ID of the job to terminate.
*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *The Batch job ID of the job to terminate.
*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *The Batch job ID of the job to terminate.
*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *The Batch job ID of the job to terminate.
*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *The Batch job ID of the job to terminate.
*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *The Batch job ID of the job to terminate.
*/ inline TerminateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *The Batch job ID of the job to terminate.
*/ inline TerminateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *The Batch job ID of the job to terminate.
*/ inline TerminateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline TerminateJobRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline TerminateJobRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *A message to attach to the job that explains the reason for canceling it. * This message is returned by future DescribeJobs operations on the job. * This message is also recorded in the Batch activity logs.
*/ inline TerminateJobRequest& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws