/** * 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 #include namespace Aws { namespace EKS { namespace Model { /** */ class CreateFargateProfileRequest : public EKSRequest { public: AWS_EKS_API CreateFargateProfileRequest(); // 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 "CreateFargateProfile"; } AWS_EKS_API Aws::String SerializePayload() const override; /** *

The name of the Fargate profile.

*/ inline const Aws::String& GetFargateProfileName() const{ return m_fargateProfileName; } /** *

The name of the Fargate profile.

*/ inline bool FargateProfileNameHasBeenSet() const { return m_fargateProfileNameHasBeenSet; } /** *

The name of the Fargate profile.

*/ inline void SetFargateProfileName(const Aws::String& value) { m_fargateProfileNameHasBeenSet = true; m_fargateProfileName = value; } /** *

The name of the Fargate profile.

*/ inline void SetFargateProfileName(Aws::String&& value) { m_fargateProfileNameHasBeenSet = true; m_fargateProfileName = std::move(value); } /** *

The name of the Fargate profile.

*/ inline void SetFargateProfileName(const char* value) { m_fargateProfileNameHasBeenSet = true; m_fargateProfileName.assign(value); } /** *

The name of the Fargate profile.

*/ inline CreateFargateProfileRequest& WithFargateProfileName(const Aws::String& value) { SetFargateProfileName(value); return *this;} /** *

The name of the Fargate profile.

*/ inline CreateFargateProfileRequest& WithFargateProfileName(Aws::String&& value) { SetFargateProfileName(std::move(value)); return *this;} /** *

The name of the Fargate profile.

*/ inline CreateFargateProfileRequest& WithFargateProfileName(const char* value) { SetFargateProfileName(value); return *this;} /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline CreateFargateProfileRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline CreateFargateProfileRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the Amazon EKS cluster to apply the Fargate profile to.

*/ inline CreateFargateProfileRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline const Aws::String& GetPodExecutionRoleArn() const{ return m_podExecutionRoleArn; } /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline bool PodExecutionRoleArnHasBeenSet() const { return m_podExecutionRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline void SetPodExecutionRoleArn(const Aws::String& value) { m_podExecutionRoleArnHasBeenSet = true; m_podExecutionRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline void SetPodExecutionRoleArn(Aws::String&& value) { m_podExecutionRoleArnHasBeenSet = true; m_podExecutionRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline void SetPodExecutionRoleArn(const char* value) { m_podExecutionRoleArnHasBeenSet = true; m_podExecutionRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline CreateFargateProfileRequest& WithPodExecutionRoleArn(const Aws::String& value) { SetPodExecutionRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline CreateFargateProfileRequest& WithPodExecutionRoleArn(Aws::String&& value) { SetPodExecutionRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the pod execution role to use for pods that * match the selectors in the Fargate profile. The pod execution role allows * Fargate infrastructure to register with your cluster as a node, and it provides * read access to Amazon ECR image repositories. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline CreateFargateProfileRequest& WithPodExecutionRoleArn(const char* value) { SetPodExecutionRoleArn(value); return *this;} /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline CreateFargateProfileRequest& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline CreateFargateProfileRequest& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline CreateFargateProfileRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline CreateFargateProfileRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *

The IDs of subnets to launch your pods into. At this time, pods running on * Fargate are not assigned public IP addresses, so only private subnets (with no * direct route to an Internet Gateway) are accepted for this parameter.

*/ inline CreateFargateProfileRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline const Aws::Vector& GetSelectors() const{ return m_selectors; } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline void SetSelectors(const Aws::Vector& value) { m_selectorsHasBeenSet = true; m_selectors = value; } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline void SetSelectors(Aws::Vector&& value) { m_selectorsHasBeenSet = true; m_selectors = std::move(value); } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline CreateFargateProfileRequest& WithSelectors(const Aws::Vector& value) { SetSelectors(value); return *this;} /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline CreateFargateProfileRequest& WithSelectors(Aws::Vector&& value) { SetSelectors(std::move(value)); return *this;} /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline CreateFargateProfileRequest& AddSelectors(const FargateProfileSelector& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(value); return *this; } /** *

The selectors to match for pods to use this Fargate profile. Each selector * must have an associated namespace. Optionally, you can also specify labels for a * namespace. You may specify up to five selectors in a Fargate profile.

*/ inline CreateFargateProfileRequest& AddSelectors(FargateProfileSelector&& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(std::move(value)); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateFargateProfileRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateFargateProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateFargateProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

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

The metadata to apply to the Fargate profile to assist with categorization * and organization. Each tag consists of a key and an optional value. You define * both. Fargate profile tags do not propagate to any other resources associated * with the Fargate profile, such as the pods that are scheduled with it.

*/ inline CreateFargateProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_fargateProfileName; bool m_fargateProfileNameHasBeenSet = false; Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_podExecutionRoleArn; bool m_podExecutionRoleArnHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_selectors; bool m_selectorsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws