AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceInUseException.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
28 public:
29 AWS_EKS_API ResourceInUseException() = default;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
46 ResourceInUseException& WithClusterName(ClusterNameT&& value) {
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
57 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
58 template <typename NodegroupNameT = Aws::String>
59 void SetNodegroupName(NodegroupNameT&& value) {
60 m_nodegroupNameHasBeenSet = true;
61 m_nodegroupName = std::forward<NodegroupNameT>(value);
62 }
63 template <typename NodegroupNameT = Aws::String>
64 ResourceInUseException& WithNodegroupName(NodegroupNameT&& value) {
65 SetNodegroupName(std::forward<NodegroupNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAddonName() const { return m_addonName; }
75 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
76 template <typename AddonNameT = Aws::String>
77 void SetAddonName(AddonNameT&& value) {
78 m_addonNameHasBeenSet = true;
79 m_addonName = std::forward<AddonNameT>(value);
80 }
81 template <typename AddonNameT = Aws::String>
83 SetAddonName(std::forward<AddonNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template <typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) {
96 m_messageHasBeenSet = true;
97 m_message = std::forward<MessageT>(value);
98 }
99 template <typename MessageT = Aws::String>
101 SetMessage(std::forward<MessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_clusterName;
107
108 Aws::String m_nodegroupName;
109
110 Aws::String m_addonName;
111
112 Aws::String m_message;
113 bool m_clusterNameHasBeenSet = false;
114 bool m_nodegroupNameHasBeenSet = false;
115 bool m_addonNameHasBeenSet = false;
116 bool m_messageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace EKS
121} // namespace Aws
ResourceInUseException & WithNodegroupName(NodegroupNameT &&value)
ResourceInUseException & WithAddonName(AddonNameT &&value)
void SetNodegroupName(NodegroupNameT &&value)
ResourceInUseException & WithMessage(MessageT &&value)
AWS_EKS_API ResourceInUseException(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API ResourceInUseException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceInUseException & WithClusterName(ClusterNameT &&value)
AWS_EKS_API ResourceInUseException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue