AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
CreateModelCopyJobRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/Tag.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Bedrock {
18namespace Model {
19
23 public:
24 AWS_BEDROCK_API CreateModelCopyJobRequest() = 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 "CreateModelCopyJob"; }
31
32 AWS_BEDROCK_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetSourceModelArn() const { return m_sourceModelArn; }
39 inline bool SourceModelArnHasBeenSet() const { return m_sourceModelArnHasBeenSet; }
40 template <typename SourceModelArnT = Aws::String>
41 void SetSourceModelArn(SourceModelArnT&& value) {
42 m_sourceModelArnHasBeenSet = true;
43 m_sourceModelArn = std::forward<SourceModelArnT>(value);
44 }
45 template <typename SourceModelArnT = Aws::String>
47 SetSourceModelArn(std::forward<SourceModelArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTargetModelName() const { return m_targetModelName; }
57 inline bool TargetModelNameHasBeenSet() const { return m_targetModelNameHasBeenSet; }
58 template <typename TargetModelNameT = Aws::String>
59 void SetTargetModelName(TargetModelNameT&& value) {
60 m_targetModelNameHasBeenSet = true;
61 m_targetModelName = std::forward<TargetModelNameT>(value);
62 }
63 template <typename TargetModelNameT = Aws::String>
65 SetTargetModelName(std::forward<TargetModelNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetModelKmsKeyId() const { return m_modelKmsKeyId; }
75 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
76 template <typename ModelKmsKeyIdT = Aws::String>
77 void SetModelKmsKeyId(ModelKmsKeyIdT&& value) {
78 m_modelKmsKeyIdHasBeenSet = true;
79 m_modelKmsKeyId = std::forward<ModelKmsKeyIdT>(value);
80 }
81 template <typename ModelKmsKeyIdT = Aws::String>
83 SetModelKmsKeyId(std::forward<ModelKmsKeyIdT>(value));
84 return *this;
85 }
87
89
96 inline const Aws::Vector<Tag>& GetTargetModelTags() const { return m_targetModelTags; }
97 inline bool TargetModelTagsHasBeenSet() const { return m_targetModelTagsHasBeenSet; }
98 template <typename TargetModelTagsT = Aws::Vector<Tag>>
99 void SetTargetModelTags(TargetModelTagsT&& value) {
100 m_targetModelTagsHasBeenSet = true;
101 m_targetModelTags = std::forward<TargetModelTagsT>(value);
102 }
103 template <typename TargetModelTagsT = Aws::Vector<Tag>>
105 SetTargetModelTags(std::forward<TargetModelTagsT>(value));
106 return *this;
107 }
108 template <typename TargetModelTagsT = Tag>
110 m_targetModelTagsHasBeenSet = true;
111 m_targetModelTags.emplace_back(std::forward<TargetModelTagsT>(value));
112 return *this;
113 }
115
117
124 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
125 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
126 template <typename ClientRequestTokenT = Aws::String>
127 void SetClientRequestToken(ClientRequestTokenT&& value) {
128 m_clientRequestTokenHasBeenSet = true;
129 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
130 }
131 template <typename ClientRequestTokenT = Aws::String>
132 CreateModelCopyJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
133 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_sourceModelArn;
139 bool m_sourceModelArnHasBeenSet = false;
140
141 Aws::String m_targetModelName;
142 bool m_targetModelNameHasBeenSet = false;
143
144 Aws::String m_modelKmsKeyId;
145 bool m_modelKmsKeyIdHasBeenSet = false;
146
147 Aws::Vector<Tag> m_targetModelTags;
148 bool m_targetModelTagsHasBeenSet = false;
149
150 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
151 bool m_clientRequestTokenHasBeenSet = true;
152};
153
154} // namespace Model
155} // namespace Bedrock
156} // namespace Aws
const Aws::Vector< Tag > & GetTargetModelTags() const
CreateModelCopyJobRequest & WithTargetModelTags(TargetModelTagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelCopyJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateModelCopyJobRequest & WithTargetModelName(TargetModelNameT &&value)
AWS_BEDROCK_API CreateModelCopyJobRequest()=default
CreateModelCopyJobRequest & AddTargetModelTags(TargetModelTagsT &&value)
CreateModelCopyJobRequest & WithModelKmsKeyId(ModelKmsKeyIdT &&value)
CreateModelCopyJobRequest & WithSourceModelArn(SourceModelArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector