AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
CreateLanguageModelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribe/TranscribeServiceRequest.h>
10#include <aws/transcribe/TranscribeService_EXPORTS.h>
11#include <aws/transcribe/model/BaseModelName.h>
12#include <aws/transcribe/model/CLMLanguageCode.h>
13#include <aws/transcribe/model/EncryptionConfiguration.h>
14#include <aws/transcribe/model/InputDataConfig.h>
15#include <aws/transcribe/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace TranscribeService {
21namespace Model {
22
26 public:
27 AWS_TRANSCRIBESERVICE_API CreateLanguageModelRequest() = 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 "CreateLanguageModel"; }
34
35 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
54 inline CLMLanguageCode GetLanguageCode() const { return m_languageCode; }
55 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
56 inline void SetLanguageCode(CLMLanguageCode value) {
57 m_languageCodeHasBeenSet = true;
58 m_languageCode = value;
59 }
61 SetLanguageCode(value);
62 return *this;
63 }
65
67
75 inline BaseModelName GetBaseModelName() const { return m_baseModelName; }
76 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
77 inline void SetBaseModelName(BaseModelName value) {
78 m_baseModelNameHasBeenSet = true;
79 m_baseModelName = value;
80 }
82 SetBaseModelName(value);
83 return *this;
84 }
86
88
95 inline const Aws::String& GetModelName() const { return m_modelName; }
96 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
97 template <typename ModelNameT = Aws::String>
98 void SetModelName(ModelNameT&& value) {
99 m_modelNameHasBeenSet = true;
100 m_modelName = std::forward<ModelNameT>(value);
101 }
102 template <typename ModelNameT = Aws::String>
104 SetModelName(std::forward<ModelNameT>(value));
105 return *this;
106 }
108
110
122 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
123 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
124 template <typename InputDataConfigT = InputDataConfig>
125 void SetInputDataConfig(InputDataConfigT&& value) {
126 m_inputDataConfigHasBeenSet = true;
127 m_inputDataConfig = std::forward<InputDataConfigT>(value);
128 }
129 template <typename InputDataConfigT = InputDataConfig>
131 SetInputDataConfig(std::forward<InputDataConfigT>(value));
132 return *this;
133 }
135
137
142 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
143 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
144 template <typename EncryptionConfigurationT = EncryptionConfiguration>
145 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
146 m_encryptionConfigurationHasBeenSet = true;
147 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
148 }
149 template <typename EncryptionConfigurationT = EncryptionConfiguration>
150 CreateLanguageModelRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
151 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
152 return *this;
153 }
155
157
164 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 template <typename TagsT = Aws::Vector<Tag>>
167 void SetTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags = std::forward<TagsT>(value);
170 }
171 template <typename TagsT = Aws::Vector<Tag>>
173 SetTags(std::forward<TagsT>(value));
174 return *this;
175 }
176 template <typename TagsT = Tag>
178 m_tagsHasBeenSet = true;
179 m_tags.emplace_back(std::forward<TagsT>(value));
180 return *this;
181 }
183 private:
185
186 BaseModelName m_baseModelName{BaseModelName::NOT_SET};
187
188 Aws::String m_modelName;
189
190 InputDataConfig m_inputDataConfig;
191
192 EncryptionConfiguration m_encryptionConfiguration;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_languageCodeHasBeenSet = false;
196 bool m_baseModelNameHasBeenSet = false;
197 bool m_modelNameHasBeenSet = false;
198 bool m_inputDataConfigHasBeenSet = false;
199 bool m_encryptionConfigurationHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace TranscribeService
205} // namespace Aws
CreateLanguageModelRequest & WithLanguageCode(CLMLanguageCode value)
CreateLanguageModelRequest & WithInputDataConfig(InputDataConfigT &&value)
CreateLanguageModelRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateLanguageModelRequest & WithModelName(ModelNameT &&value)
CreateLanguageModelRequest & WithBaseModelName(BaseModelName value)
AWS_TRANSCRIBESERVICE_API CreateLanguageModelRequest()=default
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector