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

You have encountered a service limit on the specified resource.

See * Also:

AWS * API Reference

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS cluster associated with the exception.

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

The Amazon EKS managed node group associated with the exception.

*/ inline const Aws::String& GetNodegroupName() const{ return m_nodegroupName; } /** *

The Amazon EKS managed node group associated with the exception.

*/ inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; } /** *

The Amazon EKS managed node group associated with the exception.

*/ inline void SetNodegroupName(const Aws::String& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = value; } /** *

The Amazon EKS managed node group associated with the exception.

*/ inline void SetNodegroupName(Aws::String&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::move(value); } /** *

The Amazon EKS managed node group associated with the exception.

*/ inline void SetNodegroupName(const char* value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName.assign(value); } /** *

The Amazon EKS managed node group associated with the exception.

*/ inline ResourceLimitExceededException& WithNodegroupName(const Aws::String& value) { SetNodegroupName(value); return *this;} /** *

The Amazon EKS managed node group associated with the exception.

*/ inline ResourceLimitExceededException& WithNodegroupName(Aws::String&& value) { SetNodegroupName(std::move(value)); return *this;} /** *

The Amazon EKS managed node group associated with the exception.

*/ inline ResourceLimitExceededException& WithNodegroupName(const char* value) { SetNodegroupName(value); return *this;} inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ResourceLimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ResourceLimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ResourceLimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_nodegroupName; bool m_nodegroupNameHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws