AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CopyProjectVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/OutputConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API CopyProjectVersionRequest() = 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 "CopyProjectVersion"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetSourceProjectArn() const { return m_sourceProjectArn; }
40 inline bool SourceProjectArnHasBeenSet() const { return m_sourceProjectArnHasBeenSet; }
41 template <typename SourceProjectArnT = Aws::String>
42 void SetSourceProjectArn(SourceProjectArnT&& value) {
43 m_sourceProjectArnHasBeenSet = true;
44 m_sourceProjectArn = std::forward<SourceProjectArnT>(value);
45 }
46 template <typename SourceProjectArnT = Aws::String>
47 CopyProjectVersionRequest& WithSourceProjectArn(SourceProjectArnT&& value) {
48 SetSourceProjectArn(std::forward<SourceProjectArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSourceProjectVersionArn() const { return m_sourceProjectVersionArn; }
59 inline bool SourceProjectVersionArnHasBeenSet() const { return m_sourceProjectVersionArnHasBeenSet; }
60 template <typename SourceProjectVersionArnT = Aws::String>
61 void SetSourceProjectVersionArn(SourceProjectVersionArnT&& value) {
62 m_sourceProjectVersionArnHasBeenSet = true;
63 m_sourceProjectVersionArn = std::forward<SourceProjectVersionArnT>(value);
64 }
65 template <typename SourceProjectVersionArnT = Aws::String>
66 CopyProjectVersionRequest& WithSourceProjectVersionArn(SourceProjectVersionArnT&& value) {
67 SetSourceProjectVersionArn(std::forward<SourceProjectVersionArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDestinationProjectArn() const { return m_destinationProjectArn; }
78 inline bool DestinationProjectArnHasBeenSet() const { return m_destinationProjectArnHasBeenSet; }
79 template <typename DestinationProjectArnT = Aws::String>
80 void SetDestinationProjectArn(DestinationProjectArnT&& value) {
81 m_destinationProjectArnHasBeenSet = true;
82 m_destinationProjectArn = std::forward<DestinationProjectArnT>(value);
83 }
84 template <typename DestinationProjectArnT = Aws::String>
85 CopyProjectVersionRequest& WithDestinationProjectArn(DestinationProjectArnT&& value) {
86 SetDestinationProjectArn(std::forward<DestinationProjectArnT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetVersionName() const { return m_versionName; }
97 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
98 template <typename VersionNameT = Aws::String>
99 void SetVersionName(VersionNameT&& value) {
100 m_versionNameHasBeenSet = true;
101 m_versionName = std::forward<VersionNameT>(value);
102 }
103 template <typename VersionNameT = Aws::String>
105 SetVersionName(std::forward<VersionNameT>(value));
106 return *this;
107 }
109
111
115 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
116 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
117 template <typename OutputConfigT = OutputConfig>
118 void SetOutputConfig(OutputConfigT&& value) {
119 m_outputConfigHasBeenSet = true;
120 m_outputConfig = std::forward<OutputConfigT>(value);
121 }
122 template <typename OutputConfigT = OutputConfig>
124 SetOutputConfig(std::forward<OutputConfigT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 CopyProjectVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152
154
166 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
167 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
168 template <typename KmsKeyIdT = Aws::String>
169 void SetKmsKeyId(KmsKeyIdT&& value) {
170 m_kmsKeyIdHasBeenSet = true;
171 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
172 }
173 template <typename KmsKeyIdT = Aws::String>
175 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_sourceProjectArn;
181 bool m_sourceProjectArnHasBeenSet = false;
182
183 Aws::String m_sourceProjectVersionArn;
184 bool m_sourceProjectVersionArnHasBeenSet = false;
185
186 Aws::String m_destinationProjectArn;
187 bool m_destinationProjectArnHasBeenSet = false;
188
189 Aws::String m_versionName;
190 bool m_versionNameHasBeenSet = false;
191
192 OutputConfig m_outputConfig;
193 bool m_outputConfigHasBeenSet = false;
194
196 bool m_tagsHasBeenSet = false;
197
198 Aws::String m_kmsKeyId;
199 bool m_kmsKeyIdHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace Rekognition
204} // namespace Aws
CopyProjectVersionRequest & WithOutputConfig(OutputConfigT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopyProjectVersionRequest & WithDestinationProjectArn(DestinationProjectArnT &&value)
CopyProjectVersionRequest & WithSourceProjectVersionArn(SourceProjectVersionArnT &&value)
void SetDestinationProjectArn(DestinationProjectArnT &&value)
AWS_REKOGNITION_API CopyProjectVersionRequest()=default
CopyProjectVersionRequest & WithVersionName(VersionNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSourceProjectVersionArn(SourceProjectVersionArnT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
CopyProjectVersionRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyProjectVersionRequest & WithSourceProjectArn(SourceProjectArnT &&value)
CopyProjectVersionRequest & WithTags(TagsT &&value)
CopyProjectVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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