AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRunCacheResult.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#include <aws/omics/model/CacheBehavior.h>
13#include <aws/omics/model/RunCacheStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Omics {
27namespace Model {
29 public:
30 AWS_OMICS_API GetRunCacheResult() = default;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
45 GetRunCacheResult& WithArn(ArnT&& value) {
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
55 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
56 inline void SetCacheBehavior(CacheBehavior value) {
57 m_cacheBehaviorHasBeenSet = true;
58 m_cacheBehavior = value;
59 }
61 SetCacheBehavior(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCacheBucketOwnerId() const { return m_cacheBucketOwnerId; }
71 template <typename CacheBucketOwnerIdT = Aws::String>
72 void SetCacheBucketOwnerId(CacheBucketOwnerIdT&& value) {
73 m_cacheBucketOwnerIdHasBeenSet = true;
74 m_cacheBucketOwnerId = std::forward<CacheBucketOwnerIdT>(value);
75 }
76 template <typename CacheBucketOwnerIdT = Aws::String>
77 GetRunCacheResult& WithCacheBucketOwnerId(CacheBucketOwnerIdT&& value) {
78 SetCacheBucketOwnerId(std::forward<CacheBucketOwnerIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetCacheS3Uri() const { return m_cacheS3Uri; }
88 template <typename CacheS3UriT = Aws::String>
89 void SetCacheS3Uri(CacheS3UriT&& value) {
90 m_cacheS3UriHasBeenSet = true;
91 m_cacheS3Uri = std::forward<CacheS3UriT>(value);
92 }
93 template <typename CacheS3UriT = Aws::String>
94 GetRunCacheResult& WithCacheS3Uri(CacheS3UriT&& value) {
95 SetCacheS3Uri(std::forward<CacheS3UriT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
105 template <typename CreationTimeT = Aws::Utils::DateTime>
106 void SetCreationTime(CreationTimeT&& value) {
107 m_creationTimeHasBeenSet = true;
108 m_creationTime = std::forward<CreationTimeT>(value);
109 }
110 template <typename CreationTimeT = Aws::Utils::DateTime>
111 GetRunCacheResult& WithCreationTime(CreationTimeT&& value) {
112 SetCreationTime(std::forward<CreationTimeT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 GetRunCacheResult& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetId() const { return m_id; }
139 template <typename IdT = Aws::String>
140 void SetId(IdT&& value) {
141 m_idHasBeenSet = true;
142 m_id = std::forward<IdT>(value);
143 }
144 template <typename IdT = Aws::String>
145 GetRunCacheResult& WithId(IdT&& value) {
146 SetId(std::forward<IdT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetName() const { return m_name; }
156 template <typename NameT = Aws::String>
157 void SetName(NameT&& value) {
158 m_nameHasBeenSet = true;
159 m_name = std::forward<NameT>(value);
160 }
161 template <typename NameT = Aws::String>
162 GetRunCacheResult& WithName(NameT&& value) {
163 SetName(std::forward<NameT>(value));
164 return *this;
165 }
167
169
172 inline RunCacheStatus GetStatus() const { return m_status; }
173 inline void SetStatus(RunCacheStatus value) {
174 m_statusHasBeenSet = true;
175 m_status = value;
176 }
178 SetStatus(value);
179 return *this;
180 }
182
184
187 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 GetRunCacheResult& WithTags(TagsT&& value) {
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 GetRunCacheResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
215 GetRunCacheResult& WithRequestId(RequestIdT&& value) {
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
221
222 private:
223 Aws::String m_arn;
224
225 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
226
227 Aws::String m_cacheBucketOwnerId;
228
229 Aws::String m_cacheS3Uri;
230
231 Aws::Utils::DateTime m_creationTime{};
232
233 Aws::String m_description;
234
235 Aws::String m_id;
236
237 Aws::String m_name;
238
240
242
243 Aws::String m_requestId;
244 Aws::Http::HttpResponseCode m_HttpResponseCode;
245 bool m_arnHasBeenSet = false;
246 bool m_cacheBehaviorHasBeenSet = false;
247 bool m_cacheBucketOwnerIdHasBeenSet = false;
248 bool m_cacheS3UriHasBeenSet = false;
249 bool m_creationTimeHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_idHasBeenSet = false;
252 bool m_nameHasBeenSet = false;
253 bool m_statusHasBeenSet = false;
254 bool m_tagsHasBeenSet = false;
255 bool m_requestIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace Omics
260} // namespace Aws
GetRunCacheResult & WithName(NameT &&value)
const Aws::String & GetName() const
GetRunCacheResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetStatus(RunCacheStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRunCacheResult & WithCacheBehavior(CacheBehavior value)
GetRunCacheResult & WithId(IdT &&value)
AWS_OMICS_API GetRunCacheResult()=default
const Aws::String & GetRequestId() const
void SetCacheBucketOwnerId(CacheBucketOwnerIdT &&value)
const Aws::String & GetArn() const
GetRunCacheResult & WithStatus(RunCacheStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetRunCacheResult & WithTags(TagsT &&value)
GetRunCacheResult & WithCacheS3Uri(CacheS3UriT &&value)
AWS_OMICS_API GetRunCacheResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRunCacheResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetCacheBucketOwnerId() const
GetRunCacheResult & WithDescription(DescriptionT &&value)
const Aws::String & GetId() const
AWS_OMICS_API GetRunCacheResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
GetRunCacheResult & WithCreationTime(CreationTimeT &&value)
GetRunCacheResult & WithCacheBucketOwnerId(CacheBucketOwnerIdT &&value)
const Aws::String & GetDescription() const
GetRunCacheResult & WithArn(ArnT &&value)
void SetCacheS3Uri(CacheS3UriT &&value)
const Aws::String & GetCacheS3Uri() const
void SetDescription(DescriptionT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetCacheBehavior(CacheBehavior value)
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