/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Batch { namespace Model { class CreateSchedulingPolicyResult { public: AWS_BATCH_API CreateSchedulingPolicyResult(); AWS_BATCH_API CreateSchedulingPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_BATCH_API CreateSchedulingPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the scheduling policy.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the scheduling policy.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the scheduling policy.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the scheduling policy.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the scheduling policy.

*/ inline CreateSchedulingPolicyResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the scheduling policy.

*/ inline CreateSchedulingPolicyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the scheduling policy.

*/ inline CreateSchedulingPolicyResult& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateSchedulingPolicyResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateSchedulingPolicyResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . For example, * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateSchedulingPolicyResult& WithArn(const char* value) { SetArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateSchedulingPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateSchedulingPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateSchedulingPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_arn; Aws::String m_requestId; }; } // namespace Model } // namespace Batch } // namespace Aws