AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyProjectVersionRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/OutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API CopyProjectVersionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CopyProjectVersion"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetSourceProjectArn() const { return m_sourceProjectArn; }
44 inline bool SourceProjectArnHasBeenSet() const { return m_sourceProjectArnHasBeenSet; }
45 template<typename SourceProjectArnT = Aws::String>
46 void SetSourceProjectArn(SourceProjectArnT&& value) { m_sourceProjectArnHasBeenSet = true; m_sourceProjectArn = std::forward<SourceProjectArnT>(value); }
47 template<typename SourceProjectArnT = Aws::String>
48 CopyProjectVersionRequest& WithSourceProjectArn(SourceProjectArnT&& value) { SetSourceProjectArn(std::forward<SourceProjectArnT>(value)); return *this;}
50
52
56 inline const Aws::String& GetSourceProjectVersionArn() const { return m_sourceProjectVersionArn; }
57 inline bool SourceProjectVersionArnHasBeenSet() const { return m_sourceProjectVersionArnHasBeenSet; }
58 template<typename SourceProjectVersionArnT = Aws::String>
59 void SetSourceProjectVersionArn(SourceProjectVersionArnT&& value) { m_sourceProjectVersionArnHasBeenSet = true; m_sourceProjectVersionArn = std::forward<SourceProjectVersionArnT>(value); }
60 template<typename SourceProjectVersionArnT = Aws::String>
61 CopyProjectVersionRequest& WithSourceProjectVersionArn(SourceProjectVersionArnT&& value) { SetSourceProjectVersionArn(std::forward<SourceProjectVersionArnT>(value)); return *this;}
63
65
69 inline const Aws::String& GetDestinationProjectArn() const { return m_destinationProjectArn; }
70 inline bool DestinationProjectArnHasBeenSet() const { return m_destinationProjectArnHasBeenSet; }
71 template<typename DestinationProjectArnT = Aws::String>
72 void SetDestinationProjectArn(DestinationProjectArnT&& value) { m_destinationProjectArnHasBeenSet = true; m_destinationProjectArn = std::forward<DestinationProjectArnT>(value); }
73 template<typename DestinationProjectArnT = Aws::String>
74 CopyProjectVersionRequest& WithDestinationProjectArn(DestinationProjectArnT&& value) { SetDestinationProjectArn(std::forward<DestinationProjectArnT>(value)); return *this;}
76
78
82 inline const Aws::String& GetVersionName() const { return m_versionName; }
83 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
84 template<typename VersionNameT = Aws::String>
85 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
86 template<typename VersionNameT = Aws::String>
87 CopyProjectVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
89
91
95 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
96 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
97 template<typename OutputConfigT = OutputConfig>
98 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
99 template<typename OutputConfigT = OutputConfig>
100 CopyProjectVersionRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 CopyProjectVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 CopyProjectVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118
120
132 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
133 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
134 template<typename KmsKeyIdT = Aws::String>
135 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
136 template<typename KmsKeyIdT = Aws::String>
137 CopyProjectVersionRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_sourceProjectArn;
142 bool m_sourceProjectArnHasBeenSet = false;
143
144 Aws::String m_sourceProjectVersionArn;
145 bool m_sourceProjectVersionArnHasBeenSet = false;
146
147 Aws::String m_destinationProjectArn;
148 bool m_destinationProjectArnHasBeenSet = false;
149
150 Aws::String m_versionName;
151 bool m_versionNameHasBeenSet = false;
152
153 OutputConfig m_outputConfig;
154 bool m_outputConfigHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158
159 Aws::String m_kmsKeyId;
160 bool m_kmsKeyIdHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Rekognition
165} // 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