AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLanguageModelRequest.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/transcribe/TranscribeServiceRequest.h>
9#include <aws/transcribe/model/CLMLanguageCode.h>
10#include <aws/transcribe/model/BaseModelName.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/transcribe/model/InputDataConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/transcribe/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace TranscribeService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TRANSCRIBESERVICE_API CreateLanguageModelRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateLanguageModel"; }
36
37 AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
57 inline const CLMLanguageCode& GetLanguageCode() const{ return m_languageCode; }
58 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
59 inline void SetLanguageCode(const CLMLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
60 inline void SetLanguageCode(CLMLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
61 inline CreateLanguageModelRequest& WithLanguageCode(const CLMLanguageCode& value) { SetLanguageCode(value); return *this;}
62 inline CreateLanguageModelRequest& WithLanguageCode(CLMLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
64
66
74 inline const BaseModelName& GetBaseModelName() const{ return m_baseModelName; }
75 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
76 inline void SetBaseModelName(const BaseModelName& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = value; }
77 inline void SetBaseModelName(BaseModelName&& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = std::move(value); }
78 inline CreateLanguageModelRequest& WithBaseModelName(const BaseModelName& value) { SetBaseModelName(value); return *this;}
79 inline CreateLanguageModelRequest& WithBaseModelName(BaseModelName&& value) { SetBaseModelName(std::move(value)); return *this;}
81
83
90 inline const Aws::String& GetModelName() const{ return m_modelName; }
91 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
92 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
93 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
94 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
95 inline CreateLanguageModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
96 inline CreateLanguageModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
97 inline CreateLanguageModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
99
101
113 inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
114 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
115 inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
116 inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
118 inline CreateLanguageModelRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
120
122
129 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline CreateLanguageModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
134 inline CreateLanguageModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 inline CreateLanguageModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
136 inline CreateLanguageModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138 private:
139
140 CLMLanguageCode m_languageCode;
141 bool m_languageCodeHasBeenSet = false;
142
143 BaseModelName m_baseModelName;
144 bool m_baseModelNameHasBeenSet = false;
145
146 Aws::String m_modelName;
147 bool m_modelNameHasBeenSet = false;
148
149 InputDataConfig m_inputDataConfig;
150 bool m_inputDataConfigHasBeenSet = false;
151
152 Aws::Vector<Tag> m_tags;
153 bool m_tagsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace TranscribeService
158} // namespace Aws
CreateLanguageModelRequest & WithLanguageCode(const CLMLanguageCode &value)
CreateLanguageModelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLanguageModelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLanguageModelRequest & WithLanguageCode(CLMLanguageCode &&value)
CreateLanguageModelRequest & WithInputDataConfig(InputDataConfig &&value)
CreateLanguageModelRequest & WithModelName(const Aws::String &value)
CreateLanguageModelRequest & WithModelName(const char *value)
CreateLanguageModelRequest & WithBaseModelName(BaseModelName &&value)
AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override
CreateLanguageModelRequest & WithBaseModelName(const BaseModelName &value)
CreateLanguageModelRequest & WithModelName(Aws::String &&value)
CreateLanguageModelRequest & WithInputDataConfig(const InputDataConfig &value)
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