AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Queue& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Queue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Queue& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetId() const{ return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 inline Queue& WithId(const Aws::String& value) { SetId(value); return *this;}
69 inline Queue& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
70 inline Queue& WithId(const char* value) { SetId(value); return *this;}
72
74
77 inline const Aws::String& GetArn() const{ return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
80 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
81 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
82 inline Queue& WithArn(const Aws::String& value) { SetArn(value); return *this;}
83 inline Queue& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
84 inline Queue& WithArn(const char* value) { SetArn(value); return *this;}
86
88
91 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
92 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
93 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
94 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
95 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
96 inline Queue& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
97 inline Queue& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
98 inline Queue& WithClusterId(const char* value) { SetClusterId(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
106 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
107 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
108 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
109 inline Queue& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
110 inline Queue& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
118 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
119 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
120 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
121 inline Queue& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;}
122 inline Queue& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
124
126
130 inline const QueueStatus& GetStatus() const{ return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(const QueueStatus& value) { m_statusHasBeenSet = true; m_status = value; }
133 inline void SetStatus(QueueStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
134 inline Queue& WithStatus(const QueueStatus& value) { SetStatus(value); return *this;}
135 inline Queue& WithStatus(QueueStatus&& value) { SetStatus(std::move(value)); return *this;}
137
139
143 inline const Aws::Vector<ComputeNodeGroupConfiguration>& GetComputeNodeGroupConfigurations() const{ return m_computeNodeGroupConfigurations; }
144 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
145 inline void SetComputeNodeGroupConfigurations(const Aws::Vector<ComputeNodeGroupConfiguration>& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = value; }
146 inline void SetComputeNodeGroupConfigurations(Aws::Vector<ComputeNodeGroupConfiguration>&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = std::move(value); }
149 inline Queue& AddComputeNodeGroupConfigurations(const ComputeNodeGroupConfiguration& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.push_back(value); return *this; }
150 inline Queue& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfiguration&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.push_back(std::move(value)); return *this; }
152
154
157 inline const Aws::Vector<ErrorInfo>& GetErrorInfo() const{ return m_errorInfo; }
158 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
159 inline void SetErrorInfo(const Aws::Vector<ErrorInfo>& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; }
160 inline void SetErrorInfo(Aws::Vector<ErrorInfo>&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); }
161 inline Queue& WithErrorInfo(const Aws::Vector<ErrorInfo>& value) { SetErrorInfo(value); return *this;}
162 inline Queue& WithErrorInfo(Aws::Vector<ErrorInfo>&& value) { SetErrorInfo(std::move(value)); return *this;}
163 inline Queue& AddErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(value); return *this; }
164 inline Queue& AddErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 Aws::String m_id;
172 bool m_idHasBeenSet = false;
173
174 Aws::String m_arn;
175 bool m_arnHasBeenSet = false;
176
177 Aws::String m_clusterId;
178 bool m_clusterIdHasBeenSet = false;
179
180 Aws::Utils::DateTime m_createdAt;
181 bool m_createdAtHasBeenSet = false;
182
183 Aws::Utils::DateTime m_modifiedAt;
184 bool m_modifiedAtHasBeenSet = false;
185
186 QueueStatus m_status;
187 bool m_statusHasBeenSet = false;
188
189 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
190 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
191
192 Aws::Vector<ErrorInfo> m_errorInfo;
193 bool m_errorInfoHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace PCS
198} // namespace Aws
bool ModifiedAtHasBeenSet() const
Definition Queue.h:118
Queue & AddErrorInfo(ErrorInfo &&value)
Definition Queue.h:164
const Aws::Vector< ErrorInfo > & GetErrorInfo() const
Definition Queue.h:157
const Aws::String & GetArn() const
Definition Queue.h:77
Queue & WithClusterId(Aws::String &&value)
Definition Queue.h:97
Queue & WithArn(const Aws::String &value)
Definition Queue.h:82
AWS_PCS_API Queue(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition Queue.h:131
Queue & WithName(const Aws::String &value)
Definition Queue.h:54
Queue & WithArn(const char *value)
Definition Queue.h:84
void SetArn(Aws::String &&value)
Definition Queue.h:80
bool CreatedAtHasBeenSet() const
Definition Queue.h:106
void SetName(const char *value)
Definition Queue.h:53
Queue & WithModifiedAt(Aws::Utils::DateTime &&value)
Definition Queue.h:122
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
Definition Queue.h:143
void SetErrorInfo(Aws::Vector< ErrorInfo > &&value)
Definition Queue.h:160
bool ClusterIdHasBeenSet() const
Definition Queue.h:92
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Queue.h:108
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Queue.h:117
Queue & WithClusterId(const Aws::String &value)
Definition Queue.h:96
bool ArnHasBeenSet() const
Definition Queue.h:78
void SetComputeNodeGroupConfigurations(const Aws::Vector< ComputeNodeGroupConfiguration > &value)
Definition Queue.h:145
Queue & WithClusterId(const char *value)
Definition Queue.h:98
Queue & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfiguration &&value)
Definition Queue.h:150
Queue & WithStatus(QueueStatus &&value)
Definition Queue.h:135
bool NameHasBeenSet() const
Definition Queue.h:50
Queue & WithId(Aws::String &&value)
Definition Queue.h:69
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Queue.h:107
Queue & AddErrorInfo(const ErrorInfo &value)
Definition Queue.h:163
void SetComputeNodeGroupConfigurations(Aws::Vector< ComputeNodeGroupConfiguration > &&value)
Definition Queue.h:146
Queue & WithComputeNodeGroupConfigurations(const Aws::Vector< ComputeNodeGroupConfiguration > &value)
Definition Queue.h:147
Queue & WithId(const Aws::String &value)
Definition Queue.h:68
void SetId(const char *value)
Definition Queue.h:67
Queue & WithModifiedAt(const Aws::Utils::DateTime &value)
Definition Queue.h:121
Queue & WithName(Aws::String &&value)
Definition Queue.h:55
void SetName(const Aws::String &value)
Definition Queue.h:51
void SetStatus(const QueueStatus &value)
Definition Queue.h:132
void SetArn(const Aws::String &value)
Definition Queue.h:79
AWS_PCS_API Queue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const char *value)
Definition Queue.h:81
Queue & AddComputeNodeGroupConfigurations(const ComputeNodeGroupConfiguration &value)
Definition Queue.h:149
bool ErrorInfoHasBeenSet() const
Definition Queue.h:158
void SetStatus(QueueStatus &&value)
Definition Queue.h:133
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Queue.h:52
Queue & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Queue.h:110
Queue & WithStatus(const QueueStatus &value)
Definition Queue.h:134
void SetId(Aws::String &&value)
Definition Queue.h:66
Queue & WithComputeNodeGroupConfigurations(Aws::Vector< ComputeNodeGroupConfiguration > &&value)
Definition Queue.h:148
Queue & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Queue.h:109
Queue & WithErrorInfo(Aws::Vector< ErrorInfo > &&value)
Definition Queue.h:162
Queue & WithName(const char *value)
Definition Queue.h:56
void SetErrorInfo(const Aws::Vector< ErrorInfo > &value)
Definition Queue.h:159
void SetModifiedAt(const Aws::Utils::DateTime &value)
Definition Queue.h:119
Queue & WithId(const char *value)
Definition Queue.h:70
Queue & WithArn(Aws::String &&value)
Definition Queue.h:83
void SetClusterId(const char *value)
Definition Queue.h:95
bool ComputeNodeGroupConfigurationsHasBeenSet() const
Definition Queue.h:144
const Aws::String & GetId() const
Definition Queue.h:63
bool IdHasBeenSet() const
Definition Queue.h:64
void SetClusterId(Aws::String &&value)
Definition Queue.h:94
Queue & WithErrorInfo(const Aws::Vector< ErrorInfo > &value)
Definition Queue.h:161
void SetId(const Aws::String &value)
Definition Queue.h:65
const Aws::String & GetClusterId() const
Definition Queue.h:91
const QueueStatus & GetStatus() const
Definition Queue.h:130
const Aws::String & GetName() const
Definition Queue.h:49
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Queue.h:105
void SetClusterId(const Aws::String &value)
Definition Queue.h:93
void SetModifiedAt(Aws::Utils::DateTime &&value)
Definition Queue.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue