AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRunCacheRequest.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/omics/OmicsRequest.h>
9#include <aws/omics/model/CacheBehavior.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Omics
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_OMICS_API CreateRunCacheRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRunCache"; }
34
35 AWS_OMICS_API Aws::String SerializePayload() const override;
36
37
39
54 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
55 inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; }
56 inline void SetCacheBehavior(CacheBehavior value) { m_cacheBehaviorHasBeenSet = true; m_cacheBehavior = value; }
59
61
65 inline const Aws::String& GetCacheS3Location() const { return m_cacheS3Location; }
66 inline bool CacheS3LocationHasBeenSet() const { return m_cacheS3LocationHasBeenSet; }
67 template<typename CacheS3LocationT = Aws::String>
68 void SetCacheS3Location(CacheS3LocationT&& value) { m_cacheS3LocationHasBeenSet = true; m_cacheS3Location = std::forward<CacheS3LocationT>(value); }
69 template<typename CacheS3LocationT = Aws::String>
70 CreateRunCacheRequest& WithCacheS3Location(CacheS3LocationT&& value) { SetCacheS3Location(std::forward<CacheS3LocationT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 CreateRunCacheRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::String& GetName() const { return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 template<typename NameT = Aws::String>
92 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
93 template<typename NameT = Aws::String>
94 CreateRunCacheRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
96
98
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
105 template<typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
107 template<typename RequestIdT = Aws::String>
108 CreateRunCacheRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 CreateRunCacheRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateRunCacheRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
124 }
126
128
133 inline const Aws::String& GetCacheBucketOwnerId() const { return m_cacheBucketOwnerId; }
134 inline bool CacheBucketOwnerIdHasBeenSet() const { return m_cacheBucketOwnerIdHasBeenSet; }
135 template<typename CacheBucketOwnerIdT = Aws::String>
136 void SetCacheBucketOwnerId(CacheBucketOwnerIdT&& value) { m_cacheBucketOwnerIdHasBeenSet = true; m_cacheBucketOwnerId = std::forward<CacheBucketOwnerIdT>(value); }
137 template<typename CacheBucketOwnerIdT = Aws::String>
138 CreateRunCacheRequest& WithCacheBucketOwnerId(CacheBucketOwnerIdT&& value) { SetCacheBucketOwnerId(std::forward<CacheBucketOwnerIdT>(value)); return *this;}
140 private:
141
142 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
143 bool m_cacheBehaviorHasBeenSet = false;
144
145 Aws::String m_cacheS3Location;
146 bool m_cacheS3LocationHasBeenSet = false;
147
148 Aws::String m_description;
149 bool m_descriptionHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
155 bool m_requestIdHasBeenSet = true;
156
158 bool m_tagsHasBeenSet = false;
159
160 Aws::String m_cacheBucketOwnerId;
161 bool m_cacheBucketOwnerIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Omics
166} // 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