AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateInferenceProfileRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/InferenceProfileModelSource.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 CreateInferenceProfileRequest() = 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 "CreateInferenceProfile"; }
32
33 AWS_BEDROCK_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetInferenceProfileName() const { return m_inferenceProfileName; }
40 inline bool InferenceProfileNameHasBeenSet() const { return m_inferenceProfileNameHasBeenSet; }
41 template <typename InferenceProfileNameT = Aws::String>
43 m_inferenceProfileNameHasBeenSet = true;
44 m_inferenceProfileName = std::forward<InferenceProfileNameT>(value);
45 }
46 template <typename InferenceProfileNameT = Aws::String>
48 SetInferenceProfileName(std::forward<InferenceProfileNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
80 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
81 template <typename ClientRequestTokenT = Aws::String>
83 m_clientRequestTokenHasBeenSet = true;
84 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
85 }
86 template <typename ClientRequestTokenT = Aws::String>
88 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
89 return *this;
90 }
92
94
98 inline const InferenceProfileModelSource& GetModelSource() const { return m_modelSource; }
99 inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; }
100 template <typename ModelSourceT = InferenceProfileModelSource>
102 m_modelSourceHasBeenSet = true;
103 m_modelSource = std::forward<ModelSourceT>(value);
104 }
105 template <typename ModelSourceT = InferenceProfileModelSource>
107 SetModelSource(std::forward<ModelSourceT>(value));
108 return *this;
109 }
111
113
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_inferenceProfileName;
142
143 Aws::String m_description;
144
145 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
146
147 InferenceProfileModelSource m_modelSource;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_inferenceProfileNameHasBeenSet = false;
151 bool m_descriptionHasBeenSet = false;
152 bool m_clientRequestTokenHasBeenSet = true;
153 bool m_modelSourceHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace Bedrock
159} // namespace Aws
CreateInferenceProfileRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateInferenceProfileRequest & WithInferenceProfileName(InferenceProfileNameT &&value)
AWS_BEDROCK_API CreateInferenceProfileRequest()=default
const InferenceProfileModelSource & GetModelSource() const
CreateInferenceProfileRequest & AddTags(TagsT &&value)
CreateInferenceProfileRequest & WithTags(TagsT &&value)
CreateInferenceProfileRequest & WithDescription(DescriptionT &&value)
CreateInferenceProfileRequest & WithModelSource(ModelSourceT &&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