AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
DescribeQuotaShareResult.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/QuotaShareCapacityLimit.h>
9#include <aws/batch/model/QuotaSharePreemptionConfiguration.h>
10#include <aws/batch/model/QuotaShareResourceSharingConfiguration.h>
11#include <aws/batch/model/QuotaShareState.h>
12#include <aws/batch/model/QuotaShareStatus.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Batch {
30namespace Model {
32 public:
33 AWS_BATCH_API DescribeQuotaShareResult() = default;
36
38
41 inline const Aws::String& GetQuotaShareName() const { return m_quotaShareName; }
42 template <typename QuotaShareNameT = Aws::String>
43 void SetQuotaShareName(QuotaShareNameT&& value) {
44 m_quotaShareNameHasBeenSet = true;
45 m_quotaShareName = std::forward<QuotaShareNameT>(value);
46 }
47 template <typename QuotaShareNameT = Aws::String>
48 DescribeQuotaShareResult& WithQuotaShareName(QuotaShareNameT&& value) {
49 SetQuotaShareName(std::forward<QuotaShareNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetQuotaShareArn() const { return m_quotaShareArn; }
59 template <typename QuotaShareArnT = Aws::String>
60 void SetQuotaShareArn(QuotaShareArnT&& value) {
61 m_quotaShareArnHasBeenSet = true;
62 m_quotaShareArn = std::forward<QuotaShareArnT>(value);
63 }
64 template <typename QuotaShareArnT = Aws::String>
66 SetQuotaShareArn(std::forward<QuotaShareArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetJobQueueArn() const { return m_jobQueueArn; }
76 template <typename JobQueueArnT = Aws::String>
77 void SetJobQueueArn(JobQueueArnT&& value) {
78 m_jobQueueArnHasBeenSet = true;
79 m_jobQueueArn = std::forward<JobQueueArnT>(value);
80 }
81 template <typename JobQueueArnT = Aws::String>
83 SetJobQueueArn(std::forward<JobQueueArnT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<QuotaShareCapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
94 template <typename CapacityLimitsT = Aws::Vector<QuotaShareCapacityLimit>>
95 void SetCapacityLimits(CapacityLimitsT&& value) {
96 m_capacityLimitsHasBeenSet = true;
97 m_capacityLimits = std::forward<CapacityLimitsT>(value);
98 }
99 template <typename CapacityLimitsT = Aws::Vector<QuotaShareCapacityLimit>>
101 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
102 return *this;
103 }
104 template <typename CapacityLimitsT = QuotaShareCapacityLimit>
105 DescribeQuotaShareResult& AddCapacityLimits(CapacityLimitsT&& value) {
106 m_capacityLimitsHasBeenSet = true;
107 m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value));
108 return *this;
109 }
111
113
117 inline const QuotaShareResourceSharingConfiguration& GetResourceSharingConfiguration() const { return m_resourceSharingConfiguration; }
118 template <typename ResourceSharingConfigurationT = QuotaShareResourceSharingConfiguration>
119 void SetResourceSharingConfiguration(ResourceSharingConfigurationT&& value) {
120 m_resourceSharingConfigurationHasBeenSet = true;
121 m_resourceSharingConfiguration = std::forward<ResourceSharingConfigurationT>(value);
122 }
123 template <typename ResourceSharingConfigurationT = QuotaShareResourceSharingConfiguration>
124 DescribeQuotaShareResult& WithResourceSharingConfiguration(ResourceSharingConfigurationT&& value) {
125 SetResourceSharingConfiguration(std::forward<ResourceSharingConfigurationT>(value));
126 return *this;
127 }
129
131
134 inline const QuotaSharePreemptionConfiguration& GetPreemptionConfiguration() const { return m_preemptionConfiguration; }
135 template <typename PreemptionConfigurationT = QuotaSharePreemptionConfiguration>
136 void SetPreemptionConfiguration(PreemptionConfigurationT&& value) {
137 m_preemptionConfigurationHasBeenSet = true;
138 m_preemptionConfiguration = std::forward<PreemptionConfigurationT>(value);
139 }
140 template <typename PreemptionConfigurationT = QuotaSharePreemptionConfiguration>
141 DescribeQuotaShareResult& WithPreemptionConfiguration(PreemptionConfigurationT&& value) {
142 SetPreemptionConfiguration(std::forward<PreemptionConfigurationT>(value));
143 return *this;
144 }
146
148
151 inline QuotaShareState GetState() const { return m_state; }
152 inline void SetState(QuotaShareState value) {
153 m_stateHasBeenSet = true;
154 m_state = value;
155 }
157 SetState(value);
158 return *this;
159 }
161
163
166 inline QuotaShareStatus GetStatus() const { return m_status; }
167 inline void SetStatus(QuotaShareStatus value) {
168 m_statusHasBeenSet = true;
169 m_status = value;
170 }
172 SetStatus(value);
173 return *this;
174 }
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 DescribeQuotaShareResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
196 return *this;
197 }
199
201
202 inline const Aws::String& GetRequestId() const { return m_requestId; }
203 template <typename RequestIdT = Aws::String>
204 void SetRequestId(RequestIdT&& value) {
205 m_requestIdHasBeenSet = true;
206 m_requestId = std::forward<RequestIdT>(value);
207 }
208 template <typename RequestIdT = Aws::String>
210 SetRequestId(std::forward<RequestIdT>(value));
211 return *this;
212 }
214 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
215
216 private:
217 Aws::String m_quotaShareName;
218
219 Aws::String m_quotaShareArn;
220
221 Aws::String m_jobQueueArn;
222
224
225 QuotaShareResourceSharingConfiguration m_resourceSharingConfiguration;
226
227 QuotaSharePreemptionConfiguration m_preemptionConfiguration;
228
230
232
234
235 Aws::String m_requestId;
236 Aws::Http::HttpResponseCode m_HttpResponseCode;
237 bool m_quotaShareNameHasBeenSet = false;
238 bool m_quotaShareArnHasBeenSet = false;
239 bool m_jobQueueArnHasBeenSet = false;
240 bool m_capacityLimitsHasBeenSet = false;
241 bool m_resourceSharingConfigurationHasBeenSet = false;
242 bool m_preemptionConfigurationHasBeenSet = false;
243 bool m_stateHasBeenSet = false;
244 bool m_statusHasBeenSet = false;
245 bool m_tagsHasBeenSet = false;
246 bool m_requestIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace Batch
251} // namespace Aws
DescribeQuotaShareResult & WithStatus(QuotaShareStatus value)
DescribeQuotaShareResult & WithQuotaShareArn(QuotaShareArnT &&value)
DescribeQuotaShareResult & WithCapacityLimits(CapacityLimitsT &&value)
DescribeQuotaShareResult & WithState(QuotaShareState value)
AWS_BATCH_API DescribeQuotaShareResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BATCH_API DescribeQuotaShareResult()=default
const QuotaSharePreemptionConfiguration & GetPreemptionConfiguration() const
DescribeQuotaShareResult & WithTags(TagsT &&value)
void SetPreemptionConfiguration(PreemptionConfigurationT &&value)
DescribeQuotaShareResult & WithQuotaShareName(QuotaShareNameT &&value)
DescribeQuotaShareResult & WithJobQueueArn(JobQueueArnT &&value)
DescribeQuotaShareResult & WithResourceSharingConfiguration(ResourceSharingConfigurationT &&value)
AWS_BATCH_API DescribeQuotaShareResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceSharingConfiguration(ResourceSharingConfigurationT &&value)
DescribeQuotaShareResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeQuotaShareResult & AddCapacityLimits(CapacityLimitsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeQuotaShareResult & WithRequestId(RequestIdT &&value)
const QuotaShareResourceSharingConfiguration & GetResourceSharingConfiguration() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeQuotaShareResult & WithPreemptionConfiguration(PreemptionConfigurationT &&value)
const Aws::Vector< QuotaShareCapacityLimit > & GetCapacityLimits() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue