AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Queue.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/pcs/model/QueueStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/pcs/model/ComputeNodeGroupConfiguration.h>
13#include <aws/pcs/model/ErrorInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PCS
27{
28namespace Model
29{
30
36 class Queue
37 {
38 public:
39 AWS_PCS_API Queue() = default;
40 AWS_PCS_API Queue(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 Queue& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template<typename IdT = Aws::String>
64 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
65 template<typename IdT = Aws::String>
66 Queue& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetArn() const { return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 template<typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
77 template<typename ArnT = Aws::String>
78 Queue& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
80
82
85 inline const Aws::String& GetClusterId() const { return m_clusterId; }
86 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
87 template<typename ClusterIdT = Aws::String>
88 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
89 template<typename ClusterIdT = Aws::String>
90 Queue& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 template<typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
101 template<typename CreatedAtT = Aws::Utils::DateTime>
102 Queue& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
110 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
111 template<typename ModifiedAtT = Aws::Utils::DateTime>
112 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
113 template<typename ModifiedAtT = Aws::Utils::DateTime>
114 Queue& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
116
118
131 inline QueueStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(QueueStatus value) { m_statusHasBeenSet = true; m_status = value; }
134 inline Queue& WithStatus(QueueStatus value) { SetStatus(value); return *this;}
136
138
142 inline const Aws::Vector<ComputeNodeGroupConfiguration>& GetComputeNodeGroupConfigurations() const { return m_computeNodeGroupConfigurations; }
143 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
144 template<typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
145 void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = std::forward<ComputeNodeGroupConfigurationsT>(value); }
146 template<typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
147 Queue& WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { SetComputeNodeGroupConfigurations(std::forward<ComputeNodeGroupConfigurationsT>(value)); return *this;}
148 template<typename ComputeNodeGroupConfigurationsT = ComputeNodeGroupConfiguration>
149 Queue& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.emplace_back(std::forward<ComputeNodeGroupConfigurationsT>(value)); return *this; }
151
153
156 inline const Aws::Vector<ErrorInfo>& GetErrorInfo() const { return m_errorInfo; }
157 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
158 template<typename ErrorInfoT = Aws::Vector<ErrorInfo>>
159 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::forward<ErrorInfoT>(value); }
160 template<typename ErrorInfoT = Aws::Vector<ErrorInfo>>
161 Queue& WithErrorInfo(ErrorInfoT&& value) { SetErrorInfo(std::forward<ErrorInfoT>(value)); return *this;}
162 template<typename ErrorInfoT = ErrorInfo>
163 Queue& AddErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet = true; m_errorInfo.emplace_back(std::forward<ErrorInfoT>(value)); return *this; }
165 private:
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_id;
171 bool m_idHasBeenSet = false;
172
173 Aws::String m_arn;
174 bool m_arnHasBeenSet = false;
175
176 Aws::String m_clusterId;
177 bool m_clusterIdHasBeenSet = false;
178
179 Aws::Utils::DateTime m_createdAt{};
180 bool m_createdAtHasBeenSet = false;
181
182 Aws::Utils::DateTime m_modifiedAt{};
183 bool m_modifiedAtHasBeenSet = false;
184
186 bool m_statusHasBeenSet = false;
187
188 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
189 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
190
191 Aws::Vector<ErrorInfo> m_errorInfo;
192 bool m_errorInfoHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace PCS
197} // namespace Aws
bool ModifiedAtHasBeenSet() const
Definition Queue.h:110
const Aws::Vector< ErrorInfo > & GetErrorInfo() const
Definition Queue.h:156
Queue & AddErrorInfo(ErrorInfoT &&value)
Definition Queue.h:163
Queue & WithErrorInfo(ErrorInfoT &&value)
Definition Queue.h:161
const Aws::String & GetArn() const
Definition Queue.h:73
AWS_PCS_API Queue(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition Queue.h:132
void SetArn(ArnT &&value)
Definition Queue.h:76
AWS_PCS_API Queue()=default
bool CreatedAtHasBeenSet() const
Definition Queue.h:98
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
Definition Queue.h:142
void SetErrorInfo(ErrorInfoT &&value)
Definition Queue.h:159
bool ClusterIdHasBeenSet() const
Definition Queue.h:86
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Queue.h:109
Queue & WithStatus(QueueStatus value)
Definition Queue.h:134
Queue & WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:147
void SetClusterId(ClusterIdT &&value)
Definition Queue.h:88
bool ArnHasBeenSet() const
Definition Queue.h:74
void SetModifiedAt(ModifiedAtT &&value)
Definition Queue.h:112
bool NameHasBeenSet() const
Definition Queue.h:50
Queue & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:149
void SetCreatedAt(CreatedAtT &&value)
Definition Queue.h:100
Queue & WithClusterId(ClusterIdT &&value)
Definition Queue.h:90
QueueStatus GetStatus() const
Definition Queue.h:131
Queue & WithCreatedAt(CreatedAtT &&value)
Definition Queue.h:102
AWS_PCS_API Queue & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ErrorInfoHasBeenSet() const
Definition Queue.h:157
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Queue & WithName(NameT &&value)
Definition Queue.h:54
void SetId(IdT &&value)
Definition Queue.h:64
Queue & WithArn(ArnT &&value)
Definition Queue.h:78
void SetName(NameT &&value)
Definition Queue.h:52
Queue & WithId(IdT &&value)
Definition Queue.h:66
bool ComputeNodeGroupConfigurationsHasBeenSet() const
Definition Queue.h:143
const Aws::String & GetId() const
Definition Queue.h:61
bool IdHasBeenSet() const
Definition Queue.h:62
Queue & WithModifiedAt(ModifiedAtT &&value)
Definition Queue.h:114
void SetStatus(QueueStatus value)
Definition Queue.h:133
const Aws::String & GetClusterId() const
Definition Queue.h:85
const Aws::String & GetName() const
Definition Queue.h:49
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Queue.h:97
void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:145
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue