AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/ImportResourceSpecification.h>
11#include <aws/lexv2-models/model/MergeStrategy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexModelsV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXMODELSV2_API StartImportRequest() = 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 "StartImport"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetImportId() const { return m_importId; }
45 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
46 template<typename ImportIdT = Aws::String>
47 void SetImportId(ImportIdT&& value) { m_importIdHasBeenSet = true; m_importId = std::forward<ImportIdT>(value); }
48 template<typename ImportIdT = Aws::String>
49 StartImportRequest& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
51
53
56 inline const ImportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
57 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
58 template<typename ResourceSpecificationT = ImportResourceSpecification>
59 void SetResourceSpecification(ResourceSpecificationT&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::forward<ResourceSpecificationT>(value); }
60 template<typename ResourceSpecificationT = ImportResourceSpecification>
61 StartImportRequest& WithResourceSpecification(ResourceSpecificationT&& value) { SetResourceSpecification(std::forward<ResourceSpecificationT>(value)); return *this;}
63
65
71 inline MergeStrategy GetMergeStrategy() const { return m_mergeStrategy; }
72 inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; }
73 inline void SetMergeStrategy(MergeStrategy value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = value; }
76
78
83 inline const Aws::String& GetFilePassword() const { return m_filePassword; }
84 inline bool FilePasswordHasBeenSet() const { return m_filePasswordHasBeenSet; }
85 template<typename FilePasswordT = Aws::String>
86 void SetFilePassword(FilePasswordT&& value) { m_filePasswordHasBeenSet = true; m_filePassword = std::forward<FilePasswordT>(value); }
87 template<typename FilePasswordT = Aws::String>
88 StartImportRequest& WithFilePassword(FilePasswordT&& value) { SetFilePassword(std::forward<FilePasswordT>(value)); return *this;}
90 private:
91
92 Aws::String m_importId;
93 bool m_importIdHasBeenSet = false;
94
95 ImportResourceSpecification m_resourceSpecification;
96 bool m_resourceSpecificationHasBeenSet = false;
97
99 bool m_mergeStrategyHasBeenSet = false;
100
101 Aws::String m_filePassword;
102 bool m_filePasswordHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace LexModelsV2
107} // 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