AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateCustomModelDeploymentRequest.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 CreateCustomModelDeploymentRequest() = 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 "CreateCustomModelDeployment"; }
31
32 AWS_BEDROCK_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetModelDeploymentName() const { return m_modelDeploymentName; }
40 inline bool ModelDeploymentNameHasBeenSet() const { return m_modelDeploymentNameHasBeenSet; }
41 template <typename ModelDeploymentNameT = Aws::String>
43 m_modelDeploymentNameHasBeenSet = true;
44 m_modelDeploymentName = std::forward<ModelDeploymentNameT>(value);
45 }
46 template <typename ModelDeploymentNameT = Aws::String>
48 SetModelDeploymentName(std::forward<ModelDeploymentNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetModelArn() const { return m_modelArn; }
59 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
60 template <typename ModelArnT = Aws::String>
61 void SetModelArn(ModelArnT&& value) {
62 m_modelArnHasBeenSet = true;
63 m_modelArn = std::forward<ModelArnT>(value);
64 }
65 template <typename ModelArnT = Aws::String>
67 SetModelArn(std::forward<ModelArnT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Vector<Tag>>
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsT = Tag>
111 m_tagsHasBeenSet = true;
112 m_tags.emplace_back(std::forward<TagsT>(value));
113 return *this;
114 }
116
118
125 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
126 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
127 template <typename ClientRequestTokenT = Aws::String>
129 m_clientRequestTokenHasBeenSet = true;
130 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
131 }
132 template <typename ClientRequestTokenT = Aws::String>
134 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_modelDeploymentName;
140
141 Aws::String m_modelArn;
142
143 Aws::String m_description;
144
145 Aws::Vector<Tag> m_tags;
146
147 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
148 bool m_modelDeploymentNameHasBeenSet = false;
149 bool m_modelArnHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152 bool m_clientRequestTokenHasBeenSet = true;
153};
154
155} // namespace Model
156} // namespace Bedrock
157} // namespace Aws
CreateCustomModelDeploymentRequest & WithModelDeploymentName(ModelDeploymentNameT &&value)
CreateCustomModelDeploymentRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateCustomModelDeploymentRequest & AddTags(TagsT &&value)
CreateCustomModelDeploymentRequest & WithDescription(DescriptionT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateCustomModelDeploymentRequest & WithModelArn(ModelArnT &&value)
CreateCustomModelDeploymentRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector