AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateRunCacheRequest.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#include <aws/omics/model/CacheBehavior.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Omics {
18namespace Model {
19
23 public:
24 AWS_OMICS_API CreateRunCacheRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRunCache"; }
31
32 AWS_OMICS_API Aws::String SerializePayload() const override;
33
35
50 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
51 inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; }
52 inline void SetCacheBehavior(CacheBehavior value) {
53 m_cacheBehaviorHasBeenSet = true;
54 m_cacheBehavior = value;
55 }
57 SetCacheBehavior(value);
58 return *this;
59 }
61
63
67 inline const Aws::String& GetCacheS3Location() const { return m_cacheS3Location; }
68 inline bool CacheS3LocationHasBeenSet() const { return m_cacheS3LocationHasBeenSet; }
69 template <typename CacheS3LocationT = Aws::String>
70 void SetCacheS3Location(CacheS3LocationT&& value) {
71 m_cacheS3LocationHasBeenSet = true;
72 m_cacheS3Location = std::forward<CacheS3LocationT>(value);
73 }
74 template <typename CacheS3LocationT = Aws::String>
75 CreateRunCacheRequest& WithCacheS3Location(CacheS3LocationT&& value) {
76 SetCacheS3Location(std::forward<CacheS3LocationT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template <typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) {
89 m_descriptionHasBeenSet = true;
90 m_description = std::forward<DescriptionT>(value);
91 }
92 template <typename DescriptionT = Aws::String>
93 CreateRunCacheRequest& WithDescription(DescriptionT&& value) {
94 SetDescription(std::forward<DescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template <typename NameT = Aws::String>
106 void SetName(NameT&& value) {
107 m_nameHasBeenSet = true;
108 m_name = std::forward<NameT>(value);
109 }
110 template <typename NameT = Aws::String>
112 SetName(std::forward<NameT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::String& GetRequestId() const { return m_requestId; }
124 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateRunCacheRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160
162
167 inline const Aws::String& GetCacheBucketOwnerId() const { return m_cacheBucketOwnerId; }
168 inline bool CacheBucketOwnerIdHasBeenSet() const { return m_cacheBucketOwnerIdHasBeenSet; }
169 template <typename CacheBucketOwnerIdT = Aws::String>
170 void SetCacheBucketOwnerId(CacheBucketOwnerIdT&& value) {
171 m_cacheBucketOwnerIdHasBeenSet = true;
172 m_cacheBucketOwnerId = std::forward<CacheBucketOwnerIdT>(value);
173 }
174 template <typename CacheBucketOwnerIdT = Aws::String>
175 CreateRunCacheRequest& WithCacheBucketOwnerId(CacheBucketOwnerIdT&& value) {
176 SetCacheBucketOwnerId(std::forward<CacheBucketOwnerIdT>(value));
177 return *this;
178 }
180 private:
181 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
182
183 Aws::String m_cacheS3Location;
184
185 Aws::String m_description;
186
187 Aws::String m_name;
188
190
192
193 Aws::String m_cacheBucketOwnerId;
194 bool m_cacheBehaviorHasBeenSet = false;
195 bool m_cacheS3LocationHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_requestIdHasBeenSet = true;
199 bool m_tagsHasBeenSet = false;
200 bool m_cacheBucketOwnerIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Omics
205} // namespace Aws
CreateRunCacheRequest & WithCacheBehavior(CacheBehavior value)
AWS_OMICS_API Aws::String SerializePayload() const override
CreateRunCacheRequest & WithCacheBucketOwnerId(CacheBucketOwnerIdT &&value)
const Aws::String & GetCacheBucketOwnerId() const
CreateRunCacheRequest & WithTags(TagsT &&value)
AWS_OMICS_API CreateRunCacheRequest()=default
CreateRunCacheRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRunCacheRequest & WithRequestId(RequestIdT &&value)
CreateRunCacheRequest & WithName(NameT &&value)
CreateRunCacheRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
void SetCacheS3Location(CacheS3LocationT &&value)
CreateRunCacheRequest & WithCacheS3Location(CacheS3LocationT &&value)
void SetCacheBucketOwnerId(CacheBucketOwnerIdT &&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