162 lines
5.0 KiB
C++
162 lines
5.0 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>These errors are usually caused by a server-side issue.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ServerException">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EKS_API ServerException
|
|
{
|
|
public:
|
|
ServerException();
|
|
ServerException(Aws::Utils::Json::JsonView jsonValue);
|
|
ServerException& 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 ServerException& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|
*/
|
|
inline ServerException& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon EKS cluster associated with the exception.</p>
|
|
*/
|
|
inline ServerException& 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 ServerException& WithNodegroupName(const Aws::String& value) { SetNodegroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|
*/
|
|
inline ServerException& WithNodegroupName(Aws::String&& value) { SetNodegroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon EKS managed node group associated with the exception.</p>
|
|
*/
|
|
inline ServerException& 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 ServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|
|
|
|
|
inline ServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|
|
|
|
|
inline ServerException& 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
|