AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/ImportResourceSpecification.h>
11#include <aws/lexv2-models/model/MergeStrategy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LexModelsV2 {
17namespace Model {
18
22 public:
23 AWS_LEXMODELSV2_API StartImportRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartImport"; }
30
31 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetImportId() const { return m_importId; }
41 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
42 template <typename ImportIdT = Aws::String>
43 void SetImportId(ImportIdT&& value) {
44 m_importIdHasBeenSet = true;
45 m_importId = std::forward<ImportIdT>(value);
46 }
47 template <typename ImportIdT = Aws::String>
48 StartImportRequest& WithImportId(ImportIdT&& value) {
49 SetImportId(std::forward<ImportIdT>(value));
50 return *this;
51 }
53
55
58 inline const ImportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
59 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
60 template <typename ResourceSpecificationT = ImportResourceSpecification>
61 void SetResourceSpecification(ResourceSpecificationT&& value) {
62 m_resourceSpecificationHasBeenSet = true;
63 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
64 }
65 template <typename ResourceSpecificationT = ImportResourceSpecification>
66 StartImportRequest& WithResourceSpecification(ResourceSpecificationT&& value) {
67 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
68 return *this;
69 }
71
73
79 inline MergeStrategy GetMergeStrategy() const { return m_mergeStrategy; }
80 inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; }
81 inline void SetMergeStrategy(MergeStrategy value) {
82 m_mergeStrategyHasBeenSet = true;
83 m_mergeStrategy = value;
84 }
86 SetMergeStrategy(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetFilePassword() const { return m_filePassword; }
98 inline bool FilePasswordHasBeenSet() const { return m_filePasswordHasBeenSet; }
99 template <typename FilePasswordT = Aws::String>
100 void SetFilePassword(FilePasswordT&& value) {
101 m_filePasswordHasBeenSet = true;
102 m_filePassword = std::forward<FilePasswordT>(value);
103 }
104 template <typename FilePasswordT = Aws::String>
105 StartImportRequest& WithFilePassword(FilePasswordT&& value) {
106 SetFilePassword(std::forward<FilePasswordT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_importId;
112
113 ImportResourceSpecification m_resourceSpecification;
114
115 MergeStrategy m_mergeStrategy{MergeStrategy::NOT_SET};
116
117 Aws::String m_filePassword;
118 bool m_importIdHasBeenSet = false;
119 bool m_resourceSpecificationHasBeenSet = false;
120 bool m_mergeStrategyHasBeenSet = false;
121 bool m_filePasswordHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace LexModelsV2
126} // namespace Aws
StartImportRequest & WithResourceSpecification(ResourceSpecificationT &&value)
StartImportRequest & WithFilePassword(FilePasswordT &&value)
AWS_LEXMODELSV2_API StartImportRequest()=default
StartImportRequest & WithImportId(ImportIdT &&value)
void SetResourceSpecification(ResourceSpecificationT &&value)
const ImportResourceSpecification & GetResourceSpecification() const
virtual const char * GetServiceRequestName() const override
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
StartImportRequest & WithMergeStrategy(MergeStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String