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

The input source of the Amazon Elastic Kubernetes Service * cluster.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline const Aws::String& GetEksClusterArn() const{ return m_eksClusterArn; } /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline bool EksClusterArnHasBeenSet() const { return m_eksClusterArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetEksClusterArn(const Aws::String& value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn = value; } /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetEksClusterArn(Aws::String&& value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetEksClusterArn(const char* value) { m_eksClusterArnHasBeenSet = true; m_eksClusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline EksSource& WithEksClusterArn(const Aws::String& value) { SetEksClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline EksSource& WithEksClusterArn(Aws::String&& value) { SetEksClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service * cluster. The format for this ARN is: * arn:aws:eks:region:account-id:cluster/cluster-name. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline EksSource& WithEksClusterArn(const char* value) { SetEksClusterArn(value); return *this;} /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline const Aws::Vector& GetNamespaces() const{ return m_namespaces; } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline bool NamespacesHasBeenSet() const { return m_namespacesHasBeenSet; } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline void SetNamespaces(const Aws::Vector& value) { m_namespacesHasBeenSet = true; m_namespaces = value; } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline void SetNamespaces(Aws::Vector&& value) { m_namespacesHasBeenSet = true; m_namespaces = std::move(value); } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline EksSource& WithNamespaces(const Aws::Vector& value) { SetNamespaces(value); return *this;} /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline EksSource& WithNamespaces(Aws::Vector&& value) { SetNamespaces(std::move(value)); return *this;} /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline EksSource& AddNamespaces(const Aws::String& value) { m_namespacesHasBeenSet = true; m_namespaces.push_back(value); return *this; } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline EksSource& AddNamespaces(Aws::String&& value) { m_namespacesHasBeenSet = true; m_namespaces.push_back(std::move(value)); return *this; } /** *

The list of namespaces located on your Amazon Elastic Kubernetes Service * cluster.

*/ inline EksSource& AddNamespaces(const char* value) { m_namespacesHasBeenSet = true; m_namespaces.push_back(value); return *this; } private: Aws::String m_eksClusterArn; bool m_eksClusterArnHasBeenSet = false; Aws::Vector m_namespaces; bool m_namespacesHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws