AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateCustomModelDeploymentRequest.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 CreateCustomModelDeploymentRequest() = default;
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 "CreateCustomModelDeployment"; }
34
35 AWS_BEDROCK_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetModelDeploymentName() const { return m_modelDeploymentName; }
44 inline bool ModelDeploymentNameHasBeenSet() const { return m_modelDeploymentNameHasBeenSet; }
45 template<typename ModelDeploymentNameT = Aws::String>
46 void SetModelDeploymentName(ModelDeploymentNameT&& value) { m_modelDeploymentNameHasBeenSet = true; m_modelDeploymentName = std::forward<ModelDeploymentNameT>(value); }
47 template<typename ModelDeploymentNameT = Aws::String>
48 CreateCustomModelDeploymentRequest& WithModelDeploymentName(ModelDeploymentNameT&& value) { SetModelDeploymentName(std::forward<ModelDeploymentNameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetModelArn() const { return m_modelArn; }
57 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
58 template<typename ModelArnT = Aws::String>
59 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
60 template<typename ModelArnT = Aws::String>
61 CreateCustomModelDeploymentRequest& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
63
65
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateCustomModelDeploymentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
83 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Vector<Tag>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Vector<Tag>>
88 CreateCustomModelDeploymentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsT = Tag>
90 CreateCustomModelDeploymentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
92
94
101 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
102 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
103 template<typename ClientRequestTokenT = Aws::String>
104 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
105 template<typename ClientRequestTokenT = Aws::String>
106 CreateCustomModelDeploymentRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
108 private:
109
110 Aws::String m_modelDeploymentName;
111 bool m_modelDeploymentNameHasBeenSet = false;
112
113 Aws::String m_modelArn;
114 bool m_modelArnHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_tagsHasBeenSet = false;
121
122 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
123 bool m_clientRequestTokenHasBeenSet = true;
124 };
125
126} // namespace Model
127} // namespace Bedrock
128} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector