AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServerException.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
29 public:
30 AWS_EKS_API ServerException() = default;
34
36
39 inline const Aws::String& GetClusterName() const { return m_clusterName; }
40 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
41 template <typename ClusterNameT = Aws::String>
42 void SetClusterName(ClusterNameT&& value) {
43 m_clusterNameHasBeenSet = true;
44 m_clusterName = std::forward<ClusterNameT>(value);
45 }
46 template <typename ClusterNameT = Aws::String>
47 ServerException& WithClusterName(ClusterNameT&& value) {
48 SetClusterName(std::forward<ClusterNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
58 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
59 template <typename NodegroupNameT = Aws::String>
60 void SetNodegroupName(NodegroupNameT&& value) {
61 m_nodegroupNameHasBeenSet = true;
62 m_nodegroupName = std::forward<NodegroupNameT>(value);
63 }
64 template <typename NodegroupNameT = Aws::String>
65 ServerException& WithNodegroupName(NodegroupNameT&& value) {
66 SetNodegroupName(std::forward<NodegroupNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddonName() const { return m_addonName; }
76 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
77 template <typename AddonNameT = Aws::String>
78 void SetAddonName(AddonNameT&& value) {
79 m_addonNameHasBeenSet = true;
80 m_addonName = std::forward<AddonNameT>(value);
81 }
82 template <typename AddonNameT = Aws::String>
83 ServerException& WithAddonName(AddonNameT&& value) {
84 SetAddonName(std::forward<AddonNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
94 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
95 template <typename SubscriptionIdT = Aws::String>
96 void SetSubscriptionId(SubscriptionIdT&& value) {
97 m_subscriptionIdHasBeenSet = true;
98 m_subscriptionId = std::forward<SubscriptionIdT>(value);
99 }
100 template <typename SubscriptionIdT = Aws::String>
101 ServerException& WithSubscriptionId(SubscriptionIdT&& value) {
102 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetMessage() const { return m_message; }
112 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
113 template <typename MessageT = Aws::String>
114 void SetMessage(MessageT&& value) {
115 m_messageHasBeenSet = true;
116 m_message = std::forward<MessageT>(value);
117 }
118 template <typename MessageT = Aws::String>
119 ServerException& WithMessage(MessageT&& value) {
120 SetMessage(std::forward<MessageT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_clusterName;
126
127 Aws::String m_nodegroupName;
128
129 Aws::String m_addonName;
130
131 Aws::String m_subscriptionId;
132
133 Aws::String m_message;
134 bool m_clusterNameHasBeenSet = false;
135 bool m_nodegroupNameHasBeenSet = false;
136 bool m_addonNameHasBeenSet = false;
137 bool m_subscriptionIdHasBeenSet = false;
138 bool m_messageHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EKS
143} // namespace Aws
ServerException & WithSubscriptionId(SubscriptionIdT &&value)
const Aws::String & GetAddonName() const
void SetClusterName(ClusterNameT &&value)
const Aws::String & GetSubscriptionId() const
AWS_EKS_API ServerException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerException & WithNodegroupName(NodegroupNameT &&value)
const Aws::String & GetMessage() const
void SetNodegroupName(NodegroupNameT &&value)
ServerException & WithMessage(MessageT &&value)
void SetSubscriptionId(SubscriptionIdT &&value)
const Aws::String & GetNodegroupName() const
void SetMessage(MessageT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClusterName() const
AWS_EKS_API ServerException()=default
AWS_EKS_API ServerException(Aws::Utils::Json::JsonView jsonValue)
void SetAddonName(AddonNameT &&value)
ServerException & WithClusterName(ClusterNameT &&value)
ServerException & WithAddonName(AddonNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue