/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about the VPC configuration used by the cluster control * plane.

See Also:

AWS * API Reference

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

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline AwsEksClusterResourcesVpcConfigDetails& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline AwsEksClusterResourcesVpcConfigDetails& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The security groups that are associated with the cross-account elastic * network interfaces that are used to allow communication between your nodes and * the Amazon EKS control plane.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The subnets that are associated with the cluster.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The subnets that are associated with the cluster.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The subnets that are associated with the cluster.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The subnets that are associated with the cluster.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The subnets that are associated with the cluster.

*/ inline AwsEksClusterResourcesVpcConfigDetails& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The subnets that are associated with the cluster.

*/ inline AwsEksClusterResourcesVpcConfigDetails& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The subnets that are associated with the cluster.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The subnets that are associated with the cluster.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The subnets that are associated with the cluster.

*/ inline AwsEksClusterResourcesVpcConfigDetails& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

Indicates whether the Amazon EKS public API server endpoint is turned on. If * the Amazon EKS public API server endpoint is turned off, your cluster's * Kubernetes API server can only receive requests that originate from within the * cluster VPC.

*/ inline bool GetEndpointPublicAccess() const{ return m_endpointPublicAccess; } /** *

Indicates whether the Amazon EKS public API server endpoint is turned on. If * the Amazon EKS public API server endpoint is turned off, your cluster's * Kubernetes API server can only receive requests that originate from within the * cluster VPC.

*/ inline bool EndpointPublicAccessHasBeenSet() const { return m_endpointPublicAccessHasBeenSet; } /** *

Indicates whether the Amazon EKS public API server endpoint is turned on. If * the Amazon EKS public API server endpoint is turned off, your cluster's * Kubernetes API server can only receive requests that originate from within the * cluster VPC.

*/ inline void SetEndpointPublicAccess(bool value) { m_endpointPublicAccessHasBeenSet = true; m_endpointPublicAccess = value; } /** *

Indicates whether the Amazon EKS public API server endpoint is turned on. If * the Amazon EKS public API server endpoint is turned off, your cluster's * Kubernetes API server can only receive requests that originate from within the * cluster VPC.

*/ inline AwsEksClusterResourcesVpcConfigDetails& WithEndpointPublicAccess(bool value) { SetEndpointPublicAccess(value); return *this;} private: Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; bool m_endpointPublicAccess; bool m_endpointPublicAccessHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws