/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Batch { namespace Model { /** *

An object that represents a scheduling policy.

See Also:

AWS * API Reference

*/ class SchedulingPolicyDetail { public: AWS_BATCH_API SchedulingPolicyDetail(); AWS_BATCH_API SchedulingPolicyDetail(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API SchedulingPolicyDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the scheduling policy.

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

The name of the scheduling policy.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the scheduling policy.

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

The name of the scheduling policy.

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

The name of the scheduling policy.

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

The name of the scheduling policy.

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

The name of the scheduling policy.

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

The name of the scheduling policy.

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

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

The Amazon Resource Name (ARN) of the scheduling policy. An example is * arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority * .

*/ inline SchedulingPolicyDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *

The fair share policy for the scheduling policy.

*/ inline const FairsharePolicy& GetFairsharePolicy() const{ return m_fairsharePolicy; } /** *

The fair share policy for the scheduling policy.

*/ inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; } /** *

The fair share policy for the scheduling policy.

*/ inline void SetFairsharePolicy(const FairsharePolicy& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = value; } /** *

The fair share policy for the scheduling policy.

*/ inline void SetFairsharePolicy(FairsharePolicy&& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = std::move(value); } /** *

The fair share policy for the scheduling policy.

*/ inline SchedulingPolicyDetail& WithFairsharePolicy(const FairsharePolicy& value) { SetFairsharePolicy(value); return *this;} /** *

The fair share policy for the scheduling policy.

*/ inline SchedulingPolicyDetail& WithFairsharePolicy(FairsharePolicy&& value) { SetFairsharePolicy(std::move(value)); return *this;} /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that you apply to the scheduling policy to categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * Amazon Web Services resources in Amazon Web Services General * Reference.

*/ inline SchedulingPolicyDetail& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; FairsharePolicy m_fairsharePolicy; bool m_fairsharePolicyHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws