/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EKS { namespace Model { /** *

An object representing an AWS Fargate profile.

See Also:

AWS * API Reference

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

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 FargateProfile& WithFargateProfileName(const Aws::String& value) { SetFargateProfileName(value); return *this;} /** *

The name of the Fargate profile.

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

The name of the Fargate profile.

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

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline const Aws::String& GetFargateProfileArn() const{ return m_fargateProfileArn; } /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline bool FargateProfileArnHasBeenSet() const { return m_fargateProfileArnHasBeenSet; } /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline void SetFargateProfileArn(const Aws::String& value) { m_fargateProfileArnHasBeenSet = true; m_fargateProfileArn = value; } /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline void SetFargateProfileArn(Aws::String&& value) { m_fargateProfileArnHasBeenSet = true; m_fargateProfileArn = std::move(value); } /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline void SetFargateProfileArn(const char* value) { m_fargateProfileArnHasBeenSet = true; m_fargateProfileArn.assign(value); } /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline FargateProfile& WithFargateProfileArn(const Aws::String& value) { SetFargateProfileArn(value); return *this;} /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline FargateProfile& WithFargateProfileArn(Aws::String&& value) { SetFargateProfileArn(std::move(value)); return *this;} /** *

The full Amazon Resource Name (ARN) of the Fargate profile.

*/ inline FargateProfile& WithFargateProfileArn(const char* value) { SetFargateProfileArn(value); return *this;} /** *

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The name of the Amazon EKS cluster that the Fargate profile belongs to.

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

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline FargateProfile& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The Unix epoch timestamp in seconds for when the Fargate profile was * created.

*/ inline FargateProfile& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(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. 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. 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. 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. 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. 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. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline FargateProfile& 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. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

*/ inline FargateProfile& 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. For more information, see Pod * Execution Role in the Amazon EKS User Guide.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

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

The IDs of subnets to launch pods into.

*/ inline FargateProfile& 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.

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

The selectors to match for pods to use this Fargate profile.

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

The selectors to match for pods to use this 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.

*/ 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.

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

The selectors to match for pods to use this Fargate profile.

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

The selectors to match for pods to use this Fargate profile.

*/ inline FargateProfile& 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.

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

The current status of the Fargate profile.

*/ inline const FargateProfileStatus& GetStatus() const{ return m_status; } /** *

The current status of the Fargate profile.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the Fargate profile.

*/ inline void SetStatus(const FargateProfileStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the Fargate profile.

*/ inline void SetStatus(FargateProfileStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the Fargate profile.

*/ inline FargateProfile& WithStatus(const FargateProfileStatus& value) { SetStatus(value); return *this;} /** *

The current status of the Fargate profile.

*/ inline FargateProfile& WithStatus(FargateProfileStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata applied to the Fargate profile to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. 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 FargateProfile& 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; Aws::String m_fargateProfileArn; bool m_fargateProfileArnHasBeenSet; Aws::String m_clusterName; bool m_clusterNameHasBeenSet; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; Aws::String m_podExecutionRoleArn; bool m_podExecutionRoleArnHasBeenSet; Aws::Vector m_subnets; bool m_subnetsHasBeenSet; Aws::Vector m_selectors; bool m_selectorsHasBeenSet; FargateProfileStatus m_status; bool m_statusHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace EKS } // namespace Aws