AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateProvisionedModelThroughputRequest.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/bedrock/model/CommitmentDuration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Bedrock
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCK_API CreateProvisionedModelThroughputRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProvisionedModelThroughput"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
48 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
49 template<typename ClientRequestTokenT = Aws::String>
50 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
51 template<typename ClientRequestTokenT = Aws::String>
52 CreateProvisionedModelThroughputRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
54
56
72 inline int GetModelUnits() const { return m_modelUnits; }
73 inline bool ModelUnitsHasBeenSet() const { return m_modelUnitsHasBeenSet; }
74 inline void SetModelUnits(int value) { m_modelUnitsHasBeenSet = true; m_modelUnits = value; }
75 inline CreateProvisionedModelThroughputRequest& WithModelUnits(int value) { SetModelUnits(value); return *this;}
77
79
82 inline const Aws::String& GetProvisionedModelName() const { return m_provisionedModelName; }
83 inline bool ProvisionedModelNameHasBeenSet() const { return m_provisionedModelNameHasBeenSet; }
84 template<typename ProvisionedModelNameT = Aws::String>
85 void SetProvisionedModelName(ProvisionedModelNameT&& value) { m_provisionedModelNameHasBeenSet = true; m_provisionedModelName = std::forward<ProvisionedModelNameT>(value); }
86 template<typename ProvisionedModelNameT = Aws::String>
87 CreateProvisionedModelThroughputRequest& WithProvisionedModelName(ProvisionedModelNameT&& value) { SetProvisionedModelName(std::forward<ProvisionedModelNameT>(value)); return *this;}
89
91
100 inline const Aws::String& GetModelId() const { return m_modelId; }
101 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
102 template<typename ModelIdT = Aws::String>
103 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
104 template<typename ModelIdT = Aws::String>
105 CreateProvisionedModelThroughputRequest& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
107
109
119 inline CommitmentDuration GetCommitmentDuration() const { return m_commitmentDuration; }
120 inline bool CommitmentDurationHasBeenSet() const { return m_commitmentDurationHasBeenSet; }
121 inline void SetCommitmentDuration(CommitmentDuration value) { m_commitmentDurationHasBeenSet = true; m_commitmentDuration = value; }
124
126
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 CreateProvisionedModelThroughputRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 CreateProvisionedModelThroughputRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138 private:
139
140 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
141 bool m_clientRequestTokenHasBeenSet = true;
142
143 int m_modelUnits{0};
144 bool m_modelUnitsHasBeenSet = false;
145
146 Aws::String m_provisionedModelName;
147 bool m_provisionedModelNameHasBeenSet = false;
148
149 Aws::String m_modelId;
150 bool m_modelIdHasBeenSet = false;
151
153 bool m_commitmentDurationHasBeenSet = false;
154
155 Aws::Vector<Tag> m_tags;
156 bool m_tagsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Bedrock
161} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector