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

Contains the parameters for * CreateSchedulingPolicy.

See Also:

AWS * API Reference

*/ class CreateSchedulingPolicyRequest : public BatchRequest { public: AWS_BATCH_API CreateSchedulingPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateSchedulingPolicy"; } AWS_BATCH_API Aws::String SerializePayload() const override; /** *

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).

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

The fair share policy of the scheduling policy.

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

The fair share policy of the scheduling policy.

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

The fair share policy of the scheduling policy.

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

The fair share policy of the scheduling policy.

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

The fair share policy of the scheduling policy.

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

The fair share policy of the scheduling policy.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

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

The tags that you apply to the scheduling policy to help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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 help you 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.

These tags can be updated or removed using the TagResource * and UntagResource * API operations.

*/ inline CreateSchedulingPolicyRequest& 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; FairsharePolicy m_fairsharePolicy; bool m_fairsharePolicyHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws