AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateProvisionedModelThroughputRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/CommitmentDuration.h>
10#include <aws/bedrock/model/Tag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Bedrock {
19namespace Model {
20
24 public:
25 AWS_BEDROCK_API CreateProvisionedModelThroughputRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateProvisionedModelThroughput"; }
32
33 AWS_BEDROCK_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
44 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
45 template <typename ClientRequestTokenT = Aws::String>
47 m_clientRequestTokenHasBeenSet = true;
48 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
49 }
50 template <typename ClientRequestTokenT = Aws::String>
52 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
53 return *this;
54 }
56
58
74 inline int GetModelUnits() const { return m_modelUnits; }
75 inline bool ModelUnitsHasBeenSet() const { return m_modelUnitsHasBeenSet; }
76 inline void SetModelUnits(int value) {
77 m_modelUnitsHasBeenSet = true;
78 m_modelUnits = value;
79 }
81 SetModelUnits(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetProvisionedModelName() const { return m_provisionedModelName; }
91 inline bool ProvisionedModelNameHasBeenSet() const { return m_provisionedModelNameHasBeenSet; }
92 template <typename ProvisionedModelNameT = Aws::String>
94 m_provisionedModelNameHasBeenSet = true;
95 m_provisionedModelName = std::forward<ProvisionedModelNameT>(value);
96 }
97 template <typename ProvisionedModelNameT = Aws::String>
99 SetProvisionedModelName(std::forward<ProvisionedModelNameT>(value));
100 return *this;
101 }
103
105
114 inline const Aws::String& GetModelId() const { return m_modelId; }
115 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
116 template <typename ModelIdT = Aws::String>
117 void SetModelId(ModelIdT&& value) {
118 m_modelIdHasBeenSet = true;
119 m_modelId = std::forward<ModelIdT>(value);
120 }
121 template <typename ModelIdT = Aws::String>
123 SetModelId(std::forward<ModelIdT>(value));
124 return *this;
125 }
127
129
139 inline CommitmentDuration GetCommitmentDuration() const { return m_commitmentDuration; }
140 inline bool CommitmentDurationHasBeenSet() const { return m_commitmentDurationHasBeenSet; }
142 m_commitmentDurationHasBeenSet = true;
143 m_commitmentDuration = value;
144 }
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsT = Tag>
169 m_tagsHasBeenSet = true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
176
177 int m_modelUnits{0};
178
179 Aws::String m_provisionedModelName;
180
181 Aws::String m_modelId;
182
184
185 Aws::Vector<Tag> m_tags;
186 bool m_clientRequestTokenHasBeenSet = true;
187 bool m_modelUnitsHasBeenSet = false;
188 bool m_provisionedModelNameHasBeenSet = false;
189 bool m_modelIdHasBeenSet = false;
190 bool m_commitmentDurationHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace Bedrock
196} // namespace Aws
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateProvisionedModelThroughputRequest & WithProvisionedModelName(ProvisionedModelNameT &&value)
CreateProvisionedModelThroughputRequest & WithCommitmentDuration(CommitmentDuration value)
CreateProvisionedModelThroughputRequest & WithModelId(ModelIdT &&value)
CreateProvisionedModelThroughputRequest & WithClientRequestToken(ClientRequestTokenT &&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