AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateExportRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/lexv2-models/model/ExportResourceSpecification.h>
10#include <aws/lexv2-models/model/ImportExportFileFormat.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexModelsV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXMODELSV2_API CreateExportRequest() = 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 "CreateExport"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
36
38
42 inline const ExportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
43 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
44 template<typename ResourceSpecificationT = ExportResourceSpecification>
45 void SetResourceSpecification(ResourceSpecificationT&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::forward<ResourceSpecificationT>(value); }
46 template<typename ResourceSpecificationT = ExportResourceSpecification>
47 CreateExportRequest& WithResourceSpecification(ResourceSpecificationT&& value) { SetResourceSpecification(std::forward<ResourceSpecificationT>(value)); return *this;}
49
51
54 inline ImportExportFileFormat GetFileFormat() const { return m_fileFormat; }
55 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
56 inline void SetFileFormat(ImportExportFileFormat value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
59
61
66 inline const Aws::String& GetFilePassword() const { return m_filePassword; }
67 inline bool FilePasswordHasBeenSet() const { return m_filePasswordHasBeenSet; }
68 template<typename FilePasswordT = Aws::String>
69 void SetFilePassword(FilePasswordT&& value) { m_filePasswordHasBeenSet = true; m_filePassword = std::forward<FilePasswordT>(value); }
70 template<typename FilePasswordT = Aws::String>
71 CreateExportRequest& WithFilePassword(FilePasswordT&& value) { SetFilePassword(std::forward<FilePasswordT>(value)); return *this;}
73 private:
74
75 ExportResourceSpecification m_resourceSpecification;
76 bool m_resourceSpecificationHasBeenSet = false;
77
79 bool m_fileFormatHasBeenSet = false;
80
81 Aws::String m_filePassword;
82 bool m_filePasswordHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace LexModelsV2
87} // 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