AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportTerminologyRequest.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/TranslateRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/translate/model/MergeStrategy.h>
11#include <aws/translate/model/TerminologyData.h>
12#include <aws/translate/model/EncryptionKey.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/translate/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Translate
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TRANSLATE_API ImportTerminologyRequest();
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 "ImportTerminology"; }
36
37 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline ImportTerminologyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline ImportTerminologyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline ImportTerminologyRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
62 inline const MergeStrategy& GetMergeStrategy() const{ return m_mergeStrategy; }
63 inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; }
64 inline void SetMergeStrategy(const MergeStrategy& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = value; }
65 inline void SetMergeStrategy(MergeStrategy&& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = std::move(value); }
66 inline ImportTerminologyRequest& WithMergeStrategy(const MergeStrategy& value) { SetMergeStrategy(value); return *this;}
67 inline ImportTerminologyRequest& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline ImportTerminologyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline ImportTerminologyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline ImportTerminologyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
88 inline const TerminologyData& GetTerminologyData() const{ return m_terminologyData; }
89 inline bool TerminologyDataHasBeenSet() const { return m_terminologyDataHasBeenSet; }
90 inline void SetTerminologyData(const TerminologyData& value) { m_terminologyDataHasBeenSet = true; m_terminologyData = value; }
91 inline void SetTerminologyData(TerminologyData&& value) { m_terminologyDataHasBeenSet = true; m_terminologyData = std::move(value); }
93 inline ImportTerminologyRequest& WithTerminologyData(TerminologyData&& value) { SetTerminologyData(std::move(value)); return *this;}
95
97
100 inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; }
101 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
102 inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
103 inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
104 inline ImportTerminologyRequest& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;}
105 inline ImportTerminologyRequest& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;}
107
109
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline ImportTerminologyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline ImportTerminologyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline ImportTerminologyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline ImportTerminologyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 MergeStrategy m_mergeStrategy;
131 bool m_mergeStrategyHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 TerminologyData m_terminologyData;
137 bool m_terminologyDataHasBeenSet = false;
138
139 EncryptionKey m_encryptionKey;
140 bool m_encryptionKeyHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Translate
148} // namespace Aws
ImportTerminologyRequest & WithMergeStrategy(const MergeStrategy &value)
ImportTerminologyRequest & WithName(const Aws::String &value)
ImportTerminologyRequest & WithEncryptionKey(EncryptionKey &&value)
ImportTerminologyRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTerminologyData(const TerminologyData &value)
ImportTerminologyRequest & WithDescription(Aws::String &&value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportTerminologyRequest & AddTags(const Tag &value)
AWS_TRANSLATE_API Aws::String SerializePayload() const override
ImportTerminologyRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
ImportTerminologyRequest & WithTerminologyData(const TerminologyData &value)
ImportTerminologyRequest & WithMergeStrategy(MergeStrategy &&value)
ImportTerminologyRequest & WithEncryptionKey(const EncryptionKey &value)
ImportTerminologyRequest & WithName(const char *value)
ImportTerminologyRequest & WithTerminologyData(TerminologyData &&value)
ImportTerminologyRequest & WithDescription(const Aws::String &value)
ImportTerminologyRequest & WithName(Aws::String &&value)
ImportTerminologyRequest & WithTags(Aws::Vector< Tag > &&value)
ImportTerminologyRequest & AddTags(Tag &&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