161 lines
5.1 KiB
C
161 lines
5.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/eks/EKS_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace EKS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specified resource is in use.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ResourceInUseException">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_EKS_API ResourceInUseException
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ResourceInUseException();
|
|||
|
|
ResourceInUseException(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ResourceInUseException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetClusterName() const{ return m_clusterName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& WithClusterName(const char* value) { SetClusterName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNodegroupName() const{ return m_nodegroupName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(const Aws::String& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(Aws::String&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNodegroupName(const char* value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& WithNodegroupName(const Aws::String& value) { SetNodegroupName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& WithNodegroupName(Aws::String&& value) { SetNodegroupName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceInUseException& 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 ResourceInUseException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline ResourceInUseException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline ResourceInUseException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_clusterName;
|
|||
|
|
bool m_clusterNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_nodegroupName;
|
|||
|
|
bool m_nodegroupNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_message;
|
|||
|
|
bool m_messageHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EKS
|
|||
|
|
} // namespace Aws
|