AWS SDK for C++  1.8.95
AWS SDK for C++
CreateLanguageModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace TranscribeService
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const CLMLanguageCode& GetLanguageCode() const{ return m_languageCode; }
45 
50  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
51 
56  inline void SetLanguageCode(const CLMLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
57 
62  inline void SetLanguageCode(CLMLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
63 
68  inline CreateLanguageModelRequest& WithLanguageCode(const CLMLanguageCode& value) { SetLanguageCode(value); return *this;}
69 
74  inline CreateLanguageModelRequest& WithLanguageCode(CLMLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
75 
76 
85  inline const BaseModelName& GetBaseModelName() const{ return m_baseModelName; }
86 
95  inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
96 
105  inline void SetBaseModelName(const BaseModelName& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = value; }
106 
115  inline void SetBaseModelName(BaseModelName&& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = std::move(value); }
116 
125  inline CreateLanguageModelRequest& WithBaseModelName(const BaseModelName& value) { SetBaseModelName(value); return *this;}
126 
135  inline CreateLanguageModelRequest& WithBaseModelName(BaseModelName&& value) { SetBaseModelName(std::move(value)); return *this;}
136 
137 
141  inline const Aws::String& GetModelName() const{ return m_modelName; }
142 
146  inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
147 
151  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
152 
156  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
157 
161  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
162 
166  inline CreateLanguageModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
167 
171  inline CreateLanguageModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
172 
176  inline CreateLanguageModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
177 
178 
183  inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
184 
189  inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
190 
195  inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
196 
201  inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
202 
207  inline CreateLanguageModelRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
208 
213  inline CreateLanguageModelRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
214 
215  private:
216 
217  CLMLanguageCode m_languageCode;
218  bool m_languageCodeHasBeenSet;
219 
220  BaseModelName m_baseModelName;
221  bool m_baseModelNameHasBeenSet;
222 
223  Aws::String m_modelName;
224  bool m_modelNameHasBeenSet;
225 
226  InputDataConfig m_inputDataConfig;
227  bool m_inputDataConfigHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace TranscribeService
232 } // namespace Aws
CreateLanguageModelRequest & WithBaseModelName(const BaseModelName &value)
CreateLanguageModelRequest & WithBaseModelName(BaseModelName &&value)
CreateLanguageModelRequest & WithModelName(Aws::String &&value)
#define AWS_TRANSCRIBESERVICE_API
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateLanguageModelRequest & WithInputDataConfig(const InputDataConfig &value)
CreateLanguageModelRequest & WithInputDataConfig(InputDataConfig &&value)
CreateLanguageModelRequest & WithLanguageCode(CLMLanguageCode &&value)
CreateLanguageModelRequest & WithLanguageCode(const CLMLanguageCode &value)
CreateLanguageModelRequest & WithModelName(const char *value)
CreateLanguageModelRequest & WithModelName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97