/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ECS { namespace Model { /** */ class CreateCapacityProviderRequest : public ECSRequest { public: AWS_ECS_API CreateCapacityProviderRequest(); // 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 "CreateCapacityProvider"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The name of the capacity provider. Up to 255 characters are allowed. They * include letters (both upper and lowercase letters), numbers, underscores (_), * and hyphens (-). The name can't be prefixed with "aws", * "ecs", or "fargate".

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

The details of the Auto Scaling group for the capacity provider.

*/ inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; } /** *

The details of the Auto Scaling group for the capacity provider.

*/ inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; } /** *

The details of the Auto Scaling group for the capacity provider.

*/ inline void SetAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; } /** *

The details of the Auto Scaling group for the capacity provider.

*/ inline void SetAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); } /** *

The details of the Auto Scaling group for the capacity provider.

*/ inline CreateCapacityProviderRequest& WithAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { SetAutoScalingGroupProvider(value); return *this;} /** *

The details of the Auto Scaling group for the capacity provider.

*/ inline CreateCapacityProviderRequest& WithAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { SetAutoScalingGroupProvider(std::move(value)); return *this;} /** *

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

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

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

    *
*/ inline CreateCapacityProviderRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The metadata that you apply to the capacity provider to categorize and * organize them more conveniently. Each tag consists of a key and an optional * value. You define both of them.

The following basic restrictions apply to * tags:

  • Maximum number of tags per resource - 50

  • *

    For each resource, each tag key must be unique, and each tag key can have * only one value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for Amazon Web * Services use. You cannot edit or delete tag keys or values with this prefix. * Tags with this prefix do not count against your tags per resource limit.

    *
*/ inline CreateCapacityProviderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; AutoScalingGroupProvider m_autoScalingGroupProvider; bool m_autoScalingGroupProviderHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws