AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRunGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/omics/Omics_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Omics {
25namespace Model {
27 public:
28 AWS_OMICS_API GetRunGroupResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
43 GetRunGroupResult& WithArn(ArnT&& value) {
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
60 GetRunGroupResult& WithId(IdT&& value) {
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
77 GetRunGroupResult& WithName(NameT&& value) {
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline int GetMaxCpus() const { return m_maxCpus; }
88 inline void SetMaxCpus(int value) {
89 m_maxCpusHasBeenSet = true;
90 m_maxCpus = value;
91 }
92 inline GetRunGroupResult& WithMaxCpus(int value) {
93 SetMaxCpus(value);
94 return *this;
95 }
97
99
102 inline int GetMaxRuns() const { return m_maxRuns; }
103 inline void SetMaxRuns(int value) {
104 m_maxRunsHasBeenSet = true;
105 m_maxRuns = value;
106 }
107 inline GetRunGroupResult& WithMaxRuns(int value) {
108 SetMaxRuns(value);
109 return *this;
110 }
112
114
117 inline int GetMaxDuration() const { return m_maxDuration; }
118 inline void SetMaxDuration(int value) {
119 m_maxDurationHasBeenSet = true;
120 m_maxDuration = value;
121 }
123 SetMaxDuration(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
133 template <typename CreationTimeT = Aws::Utils::DateTime>
134 void SetCreationTime(CreationTimeT&& value) {
135 m_creationTimeHasBeenSet = true;
136 m_creationTime = std::forward<CreationTimeT>(value);
137 }
138 template <typename CreationTimeT = Aws::Utils::DateTime>
139 GetRunGroupResult& WithCreationTime(CreationTimeT&& value) {
140 SetCreationTime(std::forward<CreationTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 GetRunGroupResult& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 GetRunGroupResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
172 inline int GetMaxGpus() const { return m_maxGpus; }
173 inline void SetMaxGpus(int value) {
174 m_maxGpusHasBeenSet = true;
175 m_maxGpus = value;
176 }
177 inline GetRunGroupResult& WithMaxGpus(int value) {
178 SetMaxGpus(value);
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
192 GetRunGroupResult& WithRequestId(RequestIdT&& value) {
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
198
199 private:
200 Aws::String m_arn;
201
202 Aws::String m_id;
203
204 Aws::String m_name;
205
206 int m_maxCpus{0};
207
208 int m_maxRuns{0};
209
210 int m_maxDuration{0};
211
212 Aws::Utils::DateTime m_creationTime{};
213
215
216 int m_maxGpus{0};
217
218 Aws::String m_requestId;
219 Aws::Http::HttpResponseCode m_HttpResponseCode;
220 bool m_arnHasBeenSet = false;
221 bool m_idHasBeenSet = false;
222 bool m_nameHasBeenSet = false;
223 bool m_maxCpusHasBeenSet = false;
224 bool m_maxRunsHasBeenSet = false;
225 bool m_maxDurationHasBeenSet = false;
226 bool m_creationTimeHasBeenSet = false;
227 bool m_tagsHasBeenSet = false;
228 bool m_maxGpusHasBeenSet = false;
229 bool m_requestIdHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace Omics
234} // namespace Aws
const Aws::String & GetName() const
GetRunGroupResult & WithName(NameT &&value)
const Aws::String & GetRequestId() const
AWS_OMICS_API GetRunGroupResult()=default
GetRunGroupResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetRunGroupResult & WithMaxCpus(int value)
GetRunGroupResult & WithMaxRuns(int value)
GetRunGroupResult & WithCreationTime(CreationTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetRunGroupResult & WithId(IdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRunGroupResult & WithArn(ArnT &&value)
GetRunGroupResult & WithRequestId(RequestIdT &&value)
GetRunGroupResult & WithMaxGpus(int value)
GetRunGroupResult & WithMaxDuration(int value)
AWS_OMICS_API GetRunGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRunGroupResult & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetId() const
AWS_OMICS_API GetRunGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetArn() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue