AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInferenceProfileName(const Aws::String& value) { m_inferenceProfileNameHasBeenSet = true; m_inferenceProfileName = value; }
46 inline void SetInferenceProfileName(Aws::String&& value) { m_inferenceProfileNameHasBeenSet = true; m_inferenceProfileName = std::move(value); }
47 inline void SetInferenceProfileName(const char* value) { m_inferenceProfileNameHasBeenSet = true; m_inferenceProfileName.assign(value); }
50 inline CreateInferenceProfileRequest& WithInferenceProfileName(const char* value) { SetInferenceProfileName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateInferenceProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateInferenceProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateInferenceProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
75 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
76 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
77 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
78 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
79 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
82 inline CreateInferenceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
84
86
90 inline const InferenceProfileModelSource& GetModelSource() const{ return m_modelSource; }
91 inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; }
92 inline void SetModelSource(const InferenceProfileModelSource& value) { m_modelSourceHasBeenSet = true; m_modelSource = value; }
93 inline void SetModelSource(InferenceProfileModelSource&& value) { m_modelSourceHasBeenSet = true; m_modelSource = std::move(value); }
97
99
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline CreateInferenceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline CreateInferenceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline CreateInferenceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline CreateInferenceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_inferenceProfileName;
119 bool m_inferenceProfileNameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_clientRequestToken;
125 bool m_clientRequestTokenHasBeenSet = false;
126
127 InferenceProfileModelSource m_modelSource;
128 bool m_modelSourceHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Bedrock
136} // namespace Aws
void SetModelSource(const InferenceProfileModelSource &value)
CreateInferenceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInferenceProfileRequest & WithDescription(const Aws::String &value)
CreateInferenceProfileRequest & WithInferenceProfileName(const char *value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateInferenceProfileRequest & WithModelSource(const InferenceProfileModelSource &value)
CreateInferenceProfileRequest & WithDescription(const char *value)
CreateInferenceProfileRequest & WithModelSource(InferenceProfileModelSource &&value)
CreateInferenceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInferenceProfileRequest & WithDescription(Aws::String &&value)
const InferenceProfileModelSource & GetModelSource() const
CreateInferenceProfileRequest & WithInferenceProfileName(Aws::String &&value)
void SetModelSource(InferenceProfileModelSource &&value)
CreateInferenceProfileRequest & AddTags(Tag &&value)
CreateInferenceProfileRequest & WithClientRequestToken(const char *value)
CreateInferenceProfileRequest & WithClientRequestToken(Aws::String &&value)
CreateInferenceProfileRequest & WithClientRequestToken(const Aws::String &value)
CreateInferenceProfileRequest & WithInferenceProfileName(const Aws::String &value)
CreateInferenceProfileRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector