AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
50 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
51 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
56
58
74 inline int GetModelUnits() const{ return m_modelUnits; }
75 inline bool ModelUnitsHasBeenSet() const { return m_modelUnitsHasBeenSet; }
76 inline void SetModelUnits(int value) { m_modelUnitsHasBeenSet = true; m_modelUnits = value; }
77 inline CreateProvisionedModelThroughputRequest& WithModelUnits(int value) { SetModelUnits(value); return *this;}
79
81
84 inline const Aws::String& GetProvisionedModelName() const{ return m_provisionedModelName; }
85 inline bool ProvisionedModelNameHasBeenSet() const { return m_provisionedModelNameHasBeenSet; }
86 inline void SetProvisionedModelName(const Aws::String& value) { m_provisionedModelNameHasBeenSet = true; m_provisionedModelName = value; }
87 inline void SetProvisionedModelName(Aws::String&& value) { m_provisionedModelNameHasBeenSet = true; m_provisionedModelName = std::move(value); }
88 inline void SetProvisionedModelName(const char* value) { m_provisionedModelNameHasBeenSet = true; m_provisionedModelName.assign(value); }
93
95
104 inline const Aws::String& GetModelId() const{ return m_modelId; }
105 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
106 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
107 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
108 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
109 inline CreateProvisionedModelThroughputRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
110 inline CreateProvisionedModelThroughputRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
111 inline CreateProvisionedModelThroughputRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
113
115
125 inline const CommitmentDuration& GetCommitmentDuration() const{ return m_commitmentDuration; }
126 inline bool CommitmentDurationHasBeenSet() const { return m_commitmentDurationHasBeenSet; }
127 inline void SetCommitmentDuration(const CommitmentDuration& value) { m_commitmentDurationHasBeenSet = true; m_commitmentDuration = value; }
128 inline void SetCommitmentDuration(CommitmentDuration&& value) { m_commitmentDurationHasBeenSet = true; m_commitmentDuration = std::move(value); }
132
134
137 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
140 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
141 inline CreateProvisionedModelThroughputRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
142 inline CreateProvisionedModelThroughputRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
143 inline CreateProvisionedModelThroughputRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
144 inline CreateProvisionedModelThroughputRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
146 private:
147
148 Aws::String m_clientRequestToken;
149 bool m_clientRequestTokenHasBeenSet = false;
150
151 int m_modelUnits;
152 bool m_modelUnitsHasBeenSet = false;
153
154 Aws::String m_provisionedModelName;
155 bool m_provisionedModelNameHasBeenSet = false;
156
157 Aws::String m_modelId;
158 bool m_modelIdHasBeenSet = false;
159
160 CommitmentDuration m_commitmentDuration;
161 bool m_commitmentDurationHasBeenSet = false;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Bedrock
169} // namespace Aws
CreateProvisionedModelThroughputRequest & WithModelId(const Aws::String &value)
CreateProvisionedModelThroughputRequest & WithClientRequestToken(Aws::String &&value)
CreateProvisionedModelThroughputRequest & WithProvisionedModelName(const Aws::String &value)
CreateProvisionedModelThroughputRequest & WithModelId(const char *value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateProvisionedModelThroughputRequest & WithProvisionedModelName(Aws::String &&value)
CreateProvisionedModelThroughputRequest & WithProvisionedModelName(const char *value)
CreateProvisionedModelThroughputRequest & WithCommitmentDuration(CommitmentDuration &&value)
CreateProvisionedModelThroughputRequest & WithClientRequestToken(const Aws::String &value)
CreateProvisionedModelThroughputRequest & WithClientRequestToken(const char *value)
CreateProvisionedModelThroughputRequest & WithModelId(Aws::String &&value)
CreateProvisionedModelThroughputRequest & WithCommitmentDuration(const CommitmentDuration &value)
CreateProvisionedModelThroughputRequest & WithTags(const Aws::Vector< Tag > &value)
CreateProvisionedModelThroughputRequest & WithTags(Aws::Vector< Tag > &&value)
CreateProvisionedModelThroughputRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector