AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateModelCopyJobRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Bedrock
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCK_API CreateModelCopyJobRequest();
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 "CreateModelCopyJob"; }
34
35 AWS_BEDROCK_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetSourceModelArn() const{ return m_sourceModelArn; }
43 inline bool SourceModelArnHasBeenSet() const { return m_sourceModelArnHasBeenSet; }
44 inline void SetSourceModelArn(const Aws::String& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = value; }
45 inline void SetSourceModelArn(Aws::String&& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = std::move(value); }
46 inline void SetSourceModelArn(const char* value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn.assign(value); }
47 inline CreateModelCopyJobRequest& WithSourceModelArn(const Aws::String& value) { SetSourceModelArn(value); return *this;}
48 inline CreateModelCopyJobRequest& WithSourceModelArn(Aws::String&& value) { SetSourceModelArn(std::move(value)); return *this;}
49 inline CreateModelCopyJobRequest& WithSourceModelArn(const char* value) { SetSourceModelArn(value); return *this;}
51
53
56 inline const Aws::String& GetTargetModelName() const{ return m_targetModelName; }
57 inline bool TargetModelNameHasBeenSet() const { return m_targetModelNameHasBeenSet; }
58 inline void SetTargetModelName(const Aws::String& value) { m_targetModelNameHasBeenSet = true; m_targetModelName = value; }
59 inline void SetTargetModelName(Aws::String&& value) { m_targetModelNameHasBeenSet = true; m_targetModelName = std::move(value); }
60 inline void SetTargetModelName(const char* value) { m_targetModelNameHasBeenSet = true; m_targetModelName.assign(value); }
61 inline CreateModelCopyJobRequest& WithTargetModelName(const Aws::String& value) { SetTargetModelName(value); return *this;}
62 inline CreateModelCopyJobRequest& WithTargetModelName(Aws::String&& value) { SetTargetModelName(std::move(value)); return *this;}
63 inline CreateModelCopyJobRequest& WithTargetModelName(const char* value) { SetTargetModelName(value); return *this;}
65
67
70 inline const Aws::String& GetModelKmsKeyId() const{ return m_modelKmsKeyId; }
71 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
72 inline void SetModelKmsKeyId(const Aws::String& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = value; }
73 inline void SetModelKmsKeyId(Aws::String&& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = std::move(value); }
74 inline void SetModelKmsKeyId(const char* value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId.assign(value); }
75 inline CreateModelCopyJobRequest& WithModelKmsKeyId(const Aws::String& value) { SetModelKmsKeyId(value); return *this;}
76 inline CreateModelCopyJobRequest& WithModelKmsKeyId(Aws::String&& value) { SetModelKmsKeyId(std::move(value)); return *this;}
77 inline CreateModelCopyJobRequest& WithModelKmsKeyId(const char* value) { SetModelKmsKeyId(value); return *this;}
79
81
88 inline const Aws::Vector<Tag>& GetTargetModelTags() const{ return m_targetModelTags; }
89 inline bool TargetModelTagsHasBeenSet() const { return m_targetModelTagsHasBeenSet; }
90 inline void SetTargetModelTags(const Aws::Vector<Tag>& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags = value; }
91 inline void SetTargetModelTags(Aws::Vector<Tag>&& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags = std::move(value); }
93 inline CreateModelCopyJobRequest& WithTargetModelTags(Aws::Vector<Tag>&& value) { SetTargetModelTags(std::move(value)); return *this;}
94 inline CreateModelCopyJobRequest& AddTargetModelTags(const Tag& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags.push_back(value); return *this; }
95 inline CreateModelCopyJobRequest& AddTargetModelTags(Tag&& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags.push_back(std::move(value)); return *this; }
97
99
106 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
107 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
108 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
109 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
110 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
112 inline CreateModelCopyJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
113 inline CreateModelCopyJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
115 private:
116
117 Aws::String m_sourceModelArn;
118 bool m_sourceModelArnHasBeenSet = false;
119
120 Aws::String m_targetModelName;
121 bool m_targetModelNameHasBeenSet = false;
122
123 Aws::String m_modelKmsKeyId;
124 bool m_modelKmsKeyIdHasBeenSet = false;
125
126 Aws::Vector<Tag> m_targetModelTags;
127 bool m_targetModelTagsHasBeenSet = false;
128
129 Aws::String m_clientRequestToken;
130 bool m_clientRequestTokenHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Bedrock
135} // namespace Aws
const Aws::Vector< Tag > & GetTargetModelTags() const
CreateModelCopyJobRequest & WithModelKmsKeyId(const Aws::String &value)
CreateModelCopyJobRequest & WithClientRequestToken(const Aws::String &value)
CreateModelCopyJobRequest & WithSourceModelArn(const char *value)
CreateModelCopyJobRequest & WithTargetModelTags(Aws::Vector< Tag > &&value)
CreateModelCopyJobRequest & WithSourceModelArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelCopyJobRequest & AddTargetModelTags(const Tag &value)
CreateModelCopyJobRequest & WithClientRequestToken(const char *value)
CreateModelCopyJobRequest & WithTargetModelTags(const Aws::Vector< Tag > &value)
CreateModelCopyJobRequest & WithTargetModelName(const char *value)
CreateModelCopyJobRequest & WithTargetModelName(const Aws::String &value)
CreateModelCopyJobRequest & WithModelKmsKeyId(Aws::String &&value)
CreateModelCopyJobRequest & WithModelKmsKeyId(const char *value)
CreateModelCopyJobRequest & WithSourceModelArn(const Aws::String &value)
CreateModelCopyJobRequest & WithTargetModelName(Aws::String &&value)
CreateModelCopyJobRequest & AddTargetModelTags(Tag &&value)
CreateModelCopyJobRequest & WithClientRequestToken(Aws::String &&value)
void SetTargetModelTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector