AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateExportRequest.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/ExportResourceSpecification.h>
11#include <aws/lexv2-models/model/ImportExportFileFormat.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LexModelsV2 {
17namespace Model {
18
22 public:
23 AWS_LEXMODELSV2_API CreateExportRequest() = 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 "CreateExport"; }
30
31 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
32
34
38 inline const ExportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
39 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
40 template <typename ResourceSpecificationT = ExportResourceSpecification>
41 void SetResourceSpecification(ResourceSpecificationT&& value) {
42 m_resourceSpecificationHasBeenSet = true;
43 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
44 }
45 template <typename ResourceSpecificationT = ExportResourceSpecification>
46 CreateExportRequest& WithResourceSpecification(ResourceSpecificationT&& value) {
47 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
48 return *this;
49 }
51
53
56 inline ImportExportFileFormat GetFileFormat() const { return m_fileFormat; }
57 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
59 m_fileFormatHasBeenSet = true;
60 m_fileFormat = value;
61 }
63 SetFileFormat(value);
64 return *this;
65 }
67
69
74 inline const Aws::String& GetFilePassword() const { return m_filePassword; }
75 inline bool FilePasswordHasBeenSet() const { return m_filePasswordHasBeenSet; }
76 template <typename FilePasswordT = Aws::String>
77 void SetFilePassword(FilePasswordT&& value) {
78 m_filePasswordHasBeenSet = true;
79 m_filePassword = std::forward<FilePasswordT>(value);
80 }
81 template <typename FilePasswordT = Aws::String>
82 CreateExportRequest& WithFilePassword(FilePasswordT&& value) {
83 SetFilePassword(std::forward<FilePasswordT>(value));
84 return *this;
85 }
87 private:
88 ExportResourceSpecification m_resourceSpecification;
89
91
92 Aws::String m_filePassword;
93 bool m_resourceSpecificationHasBeenSet = false;
94 bool m_fileFormatHasBeenSet = false;
95 bool m_filePasswordHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace LexModelsV2
100} // namespace Aws
void SetResourceSpecification(ResourceSpecificationT &&value)
CreateExportRequest & WithResourceSpecification(ResourceSpecificationT &&value)
const ExportResourceSpecification & GetResourceSpecification() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetFileFormat(ImportExportFileFormat value)
CreateExportRequest & WithFileFormat(ImportExportFileFormat value)
virtual const char * GetServiceRequestName() const override
AWS_LEXMODELSV2_API CreateExportRequest()=default
CreateExportRequest & WithFilePassword(FilePasswordT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String