AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateRunGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/omics/OmicsRequest.h>
11#include <aws/omics/Omics_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Omics {
17namespace Model {
18
22 public:
23 AWS_OMICS_API CreateRunGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateRunGroup"; }
30
31 AWS_OMICS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
56 inline int GetMaxCpus() const { return m_maxCpus; }
57 inline bool MaxCpusHasBeenSet() const { return m_maxCpusHasBeenSet; }
58 inline void SetMaxCpus(int value) {
59 m_maxCpusHasBeenSet = true;
60 m_maxCpus = value;
61 }
63 SetMaxCpus(value);
64 return *this;
65 }
67
69
72 inline int GetMaxRuns() const { return m_maxRuns; }
73 inline bool MaxRunsHasBeenSet() const { return m_maxRunsHasBeenSet; }
74 inline void SetMaxRuns(int value) {
75 m_maxRunsHasBeenSet = true;
76 m_maxRuns = value;
77 }
79 SetMaxRuns(value);
80 return *this;
81 }
83
85
89 inline int GetMaxDuration() const { return m_maxDuration; }
90 inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; }
91 inline void SetMaxDuration(int value) {
92 m_maxDurationHasBeenSet = true;
93 m_maxDuration = value;
94 }
96 SetMaxDuration(value);
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateRunGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
132 template <typename RequestIdT = Aws::String>
133 void SetRequestId(RequestIdT&& value) {
134 m_requestIdHasBeenSet = true;
135 m_requestId = std::forward<RequestIdT>(value);
136 }
137 template <typename RequestIdT = Aws::String>
139 SetRequestId(std::forward<RequestIdT>(value));
140 return *this;
141 }
143
145
149 inline int GetMaxGpus() const { return m_maxGpus; }
150 inline bool MaxGpusHasBeenSet() const { return m_maxGpusHasBeenSet; }
151 inline void SetMaxGpus(int value) {
152 m_maxGpusHasBeenSet = true;
153 m_maxGpus = value;
154 }
156 SetMaxGpus(value);
157 return *this;
158 }
160 private:
161 Aws::String m_name;
162
163 int m_maxCpus{0};
164
165 int m_maxRuns{0};
166
167 int m_maxDuration{0};
168
170
172
173 int m_maxGpus{0};
174 bool m_nameHasBeenSet = false;
175 bool m_maxCpusHasBeenSet = false;
176 bool m_maxRunsHasBeenSet = false;
177 bool m_maxDurationHasBeenSet = false;
178 bool m_tagsHasBeenSet = false;
179 bool m_requestIdHasBeenSet = true;
180 bool m_maxGpusHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Omics
185} // namespace Aws
CreateRunGroupRequest & WithRequestId(RequestIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OMICS_API CreateRunGroupRequest()=default
CreateRunGroupRequest & WithMaxCpus(int value)
CreateRunGroupRequest & WithTags(TagsT &&value)
CreateRunGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
CreateRunGroupRequest & WithMaxGpus(int value)
CreateRunGroupRequest & WithMaxDuration(int value)
CreateRunGroupRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRunGroupRequest & WithMaxRuns(int value)
static Aws::Utils::UUID PseudoRandomUUID()
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