AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/InputDataConfig.h>
14#include <aws/transcribe/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace TranscribeService {
20namespace Model {
21
25 public:
26 AWS_TRANSCRIBESERVICE_API CreateLanguageModelRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLanguageModel"; }
33
34 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
53 inline CLMLanguageCode GetLanguageCode() const { return m_languageCode; }
54 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
55 inline void SetLanguageCode(CLMLanguageCode value) {
56 m_languageCodeHasBeenSet = true;
57 m_languageCode = value;
58 }
60 SetLanguageCode(value);
61 return *this;
62 }
64
66
74 inline BaseModelName GetBaseModelName() const { return m_baseModelName; }
75 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
76 inline void SetBaseModelName(BaseModelName value) {
77 m_baseModelNameHasBeenSet = true;
78 m_baseModelName = value;
79 }
81 SetBaseModelName(value);
82 return *this;
83 }
85
87
94 inline const Aws::String& GetModelName() const { return m_modelName; }
95 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
96 template <typename ModelNameT = Aws::String>
97 void SetModelName(ModelNameT&& value) {
98 m_modelNameHasBeenSet = true;
99 m_modelName = std::forward<ModelNameT>(value);
100 }
101 template <typename ModelNameT = Aws::String>
103 SetModelName(std::forward<ModelNameT>(value));
104 return *this;
105 }
107
109
121 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
122 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
123 template <typename InputDataConfigT = InputDataConfig>
124 void SetInputDataConfig(InputDataConfigT&& value) {
125 m_inputDataConfigHasBeenSet = true;
126 m_inputDataConfig = std::forward<InputDataConfigT>(value);
127 }
128 template <typename InputDataConfigT = InputDataConfig>
130 SetInputDataConfig(std::forward<InputDataConfigT>(value));
131 return *this;
132 }
134
136
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template <typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags = std::forward<TagsT>(value);
149 }
150 template <typename TagsT = Aws::Vector<Tag>>
152 SetTags(std::forward<TagsT>(value));
153 return *this;
154 }
155 template <typename TagsT = Tag>
157 m_tagsHasBeenSet = true;
158 m_tags.emplace_back(std::forward<TagsT>(value));
159 return *this;
160 }
162 private:
164
165 BaseModelName m_baseModelName{BaseModelName::NOT_SET};
166
167 Aws::String m_modelName;
168
169 InputDataConfig m_inputDataConfig;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_languageCodeHasBeenSet = false;
173 bool m_baseModelNameHasBeenSet = false;
174 bool m_modelNameHasBeenSet = false;
175 bool m_inputDataConfigHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace TranscribeService
181} // namespace Aws
CreateLanguageModelRequest & WithLanguageCode(CLMLanguageCode value)
CreateLanguageModelRequest & WithInputDataConfig(InputDataConfigT &&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