AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateInferenceProfileRequest.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/InferenceProfileModelSource.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 CreateInferenceProfileRequest() = 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 "CreateInferenceProfile"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetInferenceProfileName() const { return m_inferenceProfileName; }
44 inline bool InferenceProfileNameHasBeenSet() const { return m_inferenceProfileNameHasBeenSet; }
45 template<typename InferenceProfileNameT = Aws::String>
46 void SetInferenceProfileName(InferenceProfileNameT&& value) { m_inferenceProfileNameHasBeenSet = true; m_inferenceProfileName = std::forward<InferenceProfileNameT>(value); }
47 template<typename InferenceProfileNameT = Aws::String>
48 CreateInferenceProfileRequest& WithInferenceProfileName(InferenceProfileNameT&& value) { SetInferenceProfileName(std::forward<InferenceProfileNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateInferenceProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
71 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
72 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
73 template<typename ClientRequestTokenT = Aws::String>
74 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
75 template<typename ClientRequestTokenT = Aws::String>
76 CreateInferenceProfileRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
78
80
84 inline const InferenceProfileModelSource& GetModelSource() const { return m_modelSource; }
85 inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; }
86 template<typename ModelSourceT = InferenceProfileModelSource>
87 void SetModelSource(ModelSourceT&& value) { m_modelSourceHasBeenSet = true; m_modelSource = std::forward<ModelSourceT>(value); }
88 template<typename ModelSourceT = InferenceProfileModelSource>
89 CreateInferenceProfileRequest& WithModelSource(ModelSourceT&& value) { SetModelSource(std::forward<ModelSourceT>(value)); return *this;}
91
93
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Vector<Tag>>
106 CreateInferenceProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsT = Tag>
108 CreateInferenceProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
110 private:
111
112 Aws::String m_inferenceProfileName;
113 bool m_inferenceProfileNameHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
119 bool m_clientRequestTokenHasBeenSet = true;
120
121 InferenceProfileModelSource m_modelSource;
122 bool m_modelSourceHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Bedrock
130} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector