/** * 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 SecurityHub { namespace Model { /** *

Provides details about an Amazon EKS cluster.

See Also:

AWS * API Reference

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The ARN of the cluster.

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

The certificate authority data for the cluster.

*/ inline const Aws::String& GetCertificateAuthorityData() const{ return m_certificateAuthorityData; } /** *

The certificate authority data for the cluster.

*/ inline bool CertificateAuthorityDataHasBeenSet() const { return m_certificateAuthorityDataHasBeenSet; } /** *

The certificate authority data for the cluster.

*/ inline void SetCertificateAuthorityData(const Aws::String& value) { m_certificateAuthorityDataHasBeenSet = true; m_certificateAuthorityData = value; } /** *

The certificate authority data for the cluster.

*/ inline void SetCertificateAuthorityData(Aws::String&& value) { m_certificateAuthorityDataHasBeenSet = true; m_certificateAuthorityData = std::move(value); } /** *

The certificate authority data for the cluster.

*/ inline void SetCertificateAuthorityData(const char* value) { m_certificateAuthorityDataHasBeenSet = true; m_certificateAuthorityData.assign(value); } /** *

The certificate authority data for the cluster.

*/ inline AwsEksClusterDetails& WithCertificateAuthorityData(const Aws::String& value) { SetCertificateAuthorityData(value); return *this;} /** *

The certificate authority data for the cluster.

*/ inline AwsEksClusterDetails& WithCertificateAuthorityData(Aws::String&& value) { SetCertificateAuthorityData(std::move(value)); return *this;} /** *

The certificate authority data for the cluster.

*/ inline AwsEksClusterDetails& WithCertificateAuthorityData(const char* value) { SetCertificateAuthorityData(value); return *this;} /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline const Aws::String& GetClusterStatus() const{ return m_clusterStatus; } /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; } /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline void SetClusterStatus(const Aws::String& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = value; } /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline void SetClusterStatus(Aws::String&& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = std::move(value); } /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline void SetClusterStatus(const char* value) { m_clusterStatusHasBeenSet = true; m_clusterStatus.assign(value); } /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline AwsEksClusterDetails& WithClusterStatus(const Aws::String& value) { SetClusterStatus(value); return *this;} /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline AwsEksClusterDetails& WithClusterStatus(Aws::String&& value) { SetClusterStatus(std::move(value)); return *this;} /** *

The status of the cluster. Valid values are as follows:

  • * ACTIVE

  • CREATING

  • *

    DELETING

  • FAILED

  • *
  • PENDING

  • UPDATING

    *
*/ inline AwsEksClusterDetails& WithClusterStatus(const char* value) { SetClusterStatus(value); return *this;} /** *

The endpoint for the Amazon EKS API server.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

The endpoint for the Amazon EKS API server.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

The endpoint for the Amazon EKS API server.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

The endpoint for the Amazon EKS API server.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

The endpoint for the Amazon EKS API server.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

The endpoint for the Amazon EKS API server.

*/ inline AwsEksClusterDetails& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The endpoint for the Amazon EKS API server.

*/ inline AwsEksClusterDetails& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The endpoint for the Amazon EKS API server.

*/ inline AwsEksClusterDetails& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The name of the cluster.

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

The VPC configuration used by the cluster control plane.

*/ inline const AwsEksClusterResourcesVpcConfigDetails& GetResourcesVpcConfig() const{ return m_resourcesVpcConfig; } /** *

The VPC configuration used by the cluster control plane.

*/ inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; } /** *

The VPC configuration used by the cluster control plane.

*/ inline void SetResourcesVpcConfig(const AwsEksClusterResourcesVpcConfigDetails& value) { m_resourcesVpcConfigHasBeenSet = true; m_resourcesVpcConfig = value; } /** *

The VPC configuration used by the cluster control plane.

*/ inline void SetResourcesVpcConfig(AwsEksClusterResourcesVpcConfigDetails&& value) { m_resourcesVpcConfigHasBeenSet = true; m_resourcesVpcConfig = std::move(value); } /** *

The VPC configuration used by the cluster control plane.

*/ inline AwsEksClusterDetails& WithResourcesVpcConfig(const AwsEksClusterResourcesVpcConfigDetails& value) { SetResourcesVpcConfig(value); return *this;} /** *

The VPC configuration used by the cluster control plane.

*/ inline AwsEksClusterDetails& WithResourcesVpcConfig(AwsEksClusterResourcesVpcConfigDetails&& value) { SetResourcesVpcConfig(std::move(value)); return *this;} /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline AwsEksClusterDetails& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline AwsEksClusterDetails& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role that provides permissions for the Amazon EKS control * plane to make calls to Amazon Web Services API operations on your behalf.

*/ inline AwsEksClusterDetails& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The Amazon EKS server version for the cluster.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The Amazon EKS server version for the cluster.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The Amazon EKS server version for the cluster.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The Amazon EKS server version for the cluster.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The Amazon EKS server version for the cluster.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The Amazon EKS server version for the cluster.

*/ inline AwsEksClusterDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The Amazon EKS server version for the cluster.

*/ inline AwsEksClusterDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The Amazon EKS server version for the cluster.

*/ inline AwsEksClusterDetails& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The logging configuration for the cluster.

*/ inline const AwsEksClusterLoggingDetails& GetLogging() const{ return m_logging; } /** *

The logging configuration for the cluster.

*/ inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; } /** *

The logging configuration for the cluster.

*/ inline void SetLogging(const AwsEksClusterLoggingDetails& value) { m_loggingHasBeenSet = true; m_logging = value; } /** *

The logging configuration for the cluster.

*/ inline void SetLogging(AwsEksClusterLoggingDetails&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); } /** *

The logging configuration for the cluster.

*/ inline AwsEksClusterDetails& WithLogging(const AwsEksClusterLoggingDetails& value) { SetLogging(value); return *this;} /** *

The logging configuration for the cluster.

*/ inline AwsEksClusterDetails& WithLogging(AwsEksClusterLoggingDetails&& value) { SetLogging(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_certificateAuthorityData; bool m_certificateAuthorityDataHasBeenSet = false; Aws::String m_clusterStatus; bool m_clusterStatusHasBeenSet = false; Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; AwsEksClusterResourcesVpcConfigDetails m_resourcesVpcConfig; bool m_resourcesVpcConfigHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; AwsEksClusterLoggingDetails m_logging; bool m_loggingHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws