AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClientException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
32 public:
33 AWS_EKS_API ClientException() = default;
37
39
42 inline const Aws::String& GetClusterName() const { return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 template <typename ClusterNameT = Aws::String>
45 void SetClusterName(ClusterNameT&& value) {
46 m_clusterNameHasBeenSet = true;
47 m_clusterName = std::forward<ClusterNameT>(value);
48 }
49 template <typename ClusterNameT = Aws::String>
50 ClientException& WithClusterName(ClusterNameT&& value) {
51 SetClusterName(std::forward<ClusterNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
61 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
62 template <typename NodegroupNameT = Aws::String>
63 void SetNodegroupName(NodegroupNameT&& value) {
64 m_nodegroupNameHasBeenSet = true;
65 m_nodegroupName = std::forward<NodegroupNameT>(value);
66 }
67 template <typename NodegroupNameT = Aws::String>
68 ClientException& WithNodegroupName(NodegroupNameT&& value) {
69 SetNodegroupName(std::forward<NodegroupNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAddonName() const { return m_addonName; }
79 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
80 template <typename AddonNameT = Aws::String>
81 void SetAddonName(AddonNameT&& value) {
82 m_addonNameHasBeenSet = true;
83 m_addonName = std::forward<AddonNameT>(value);
84 }
85 template <typename AddonNameT = Aws::String>
86 ClientException& WithAddonName(AddonNameT&& value) {
87 SetAddonName(std::forward<AddonNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
97 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
98 template <typename SubscriptionIdT = Aws::String>
99 void SetSubscriptionId(SubscriptionIdT&& value) {
100 m_subscriptionIdHasBeenSet = true;
101 m_subscriptionId = std::forward<SubscriptionIdT>(value);
102 }
103 template <typename SubscriptionIdT = Aws::String>
104 ClientException& WithSubscriptionId(SubscriptionIdT&& value) {
105 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
106 return *this;
107 }
109
111
118 inline const Aws::String& GetMessage() const { return m_message; }
119 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
120 template <typename MessageT = Aws::String>
121 void SetMessage(MessageT&& value) {
122 m_messageHasBeenSet = true;
123 m_message = std::forward<MessageT>(value);
124 }
125 template <typename MessageT = Aws::String>
126 ClientException& WithMessage(MessageT&& value) {
127 SetMessage(std::forward<MessageT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_clusterName;
133
134 Aws::String m_nodegroupName;
135
136 Aws::String m_addonName;
137
138 Aws::String m_subscriptionId;
139
140 Aws::String m_message;
141 bool m_clusterNameHasBeenSet = false;
142 bool m_nodegroupNameHasBeenSet = false;
143 bool m_addonNameHasBeenSet = false;
144 bool m_subscriptionIdHasBeenSet = false;
145 bool m_messageHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace EKS
150} // namespace Aws
AWS_EKS_API ClientException()=default
ClientException & WithClusterName(ClusterNameT &&value)
void SetNodegroupName(NodegroupNameT &&value)
const Aws::String & GetMessage() const
const Aws::String & GetAddonName() const
AWS_EKS_API ClientException(Aws::Utils::Json::JsonView jsonValue)
ClientException & WithAddonName(AddonNameT &&value)
const Aws::String & GetSubscriptionId() const
void SetSubscriptionId(SubscriptionIdT &&value)
const Aws::String & GetNodegroupName() const
void SetClusterName(ClusterNameT &&value)
void SetMessage(MessageT &&value)
void SetAddonName(AddonNameT &&value)
AWS_EKS_API ClientException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterName() const
ClientException & WithSubscriptionId(SubscriptionIdT &&value)
ClientException & WithNodegroupName(NodegroupNameT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ClientException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue