AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartArchiveExportRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManagerRequest.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/ArchiveFilters.h>
12#include <aws/mailmanager/model/ExportDestinationConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MailManager {
18namespace Model {
19
27 public:
28 AWS_MAILMANAGER_API StartArchiveExportRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartArchiveExport"; }
35
36 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
45 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
46 template <typename ArchiveIdT = Aws::String>
47 void SetArchiveId(ArchiveIdT&& value) {
48 m_archiveIdHasBeenSet = true;
49 m_archiveId = std::forward<ArchiveIdT>(value);
50 }
51 template <typename ArchiveIdT = Aws::String>
53 SetArchiveId(std::forward<ArchiveIdT>(value));
54 return *this;
55 }
57
59
62 inline const ArchiveFilters& GetFilters() const { return m_filters; }
63 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
64 template <typename FiltersT = ArchiveFilters>
65 void SetFilters(FiltersT&& value) {
66 m_filtersHasBeenSet = true;
67 m_filters = std::forward<FiltersT>(value);
68 }
69 template <typename FiltersT = ArchiveFilters>
71 SetFilters(std::forward<FiltersT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
81 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
82 template <typename FromTimestampT = Aws::Utils::DateTime>
83 void SetFromTimestamp(FromTimestampT&& value) {
84 m_fromTimestampHasBeenSet = true;
85 m_fromTimestamp = std::forward<FromTimestampT>(value);
86 }
87 template <typename FromTimestampT = Aws::Utils::DateTime>
89 SetFromTimestamp(std::forward<FromTimestampT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
99 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
100 template <typename ToTimestampT = Aws::Utils::DateTime>
101 void SetToTimestamp(ToTimestampT&& value) {
102 m_toTimestampHasBeenSet = true;
103 m_toTimestamp = std::forward<ToTimestampT>(value);
104 }
105 template <typename ToTimestampT = Aws::Utils::DateTime>
107 SetToTimestamp(std::forward<ToTimestampT>(value));
108 return *this;
109 }
111
113
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
123 SetMaxResults(value);
124 return *this;
125 }
127
129
132 inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const { return m_exportDestinationConfiguration; }
133 inline bool ExportDestinationConfigurationHasBeenSet() const { return m_exportDestinationConfigurationHasBeenSet; }
134 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
135 void SetExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
136 m_exportDestinationConfigurationHasBeenSet = true;
137 m_exportDestinationConfiguration = std::forward<ExportDestinationConfigurationT>(value);
138 }
139 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
140 StartArchiveExportRequest& WithExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
141 SetExportDestinationConfiguration(std::forward<ExportDestinationConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline bool GetIncludeMetadata() const { return m_includeMetadata; }
151 inline bool IncludeMetadataHasBeenSet() const { return m_includeMetadataHasBeenSet; }
152 inline void SetIncludeMetadata(bool value) {
153 m_includeMetadataHasBeenSet = true;
154 m_includeMetadata = value;
155 }
157 SetIncludeMetadata(value);
158 return *this;
159 }
161 private:
162 Aws::String m_archiveId;
163
164 ArchiveFilters m_filters;
165
166 Aws::Utils::DateTime m_fromTimestamp{};
167
168 Aws::Utils::DateTime m_toTimestamp{};
169
170 int m_maxResults{0};
171
172 ExportDestinationConfiguration m_exportDestinationConfiguration;
173
174 bool m_includeMetadata{false};
175 bool m_archiveIdHasBeenSet = false;
176 bool m_filtersHasBeenSet = false;
177 bool m_fromTimestampHasBeenSet = false;
178 bool m_toTimestampHasBeenSet = false;
179 bool m_maxResultsHasBeenSet = false;
180 bool m_exportDestinationConfigurationHasBeenSet = false;
181 bool m_includeMetadataHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace MailManager
186} // namespace Aws
StartArchiveExportRequest & WithFilters(FiltersT &&value)
StartArchiveExportRequest & WithIncludeMetadata(bool value)
AWS_MAILMANAGER_API StartArchiveExportRequest()=default
StartArchiveExportRequest & WithToTimestamp(ToTimestampT &&value)
void SetExportDestinationConfiguration(ExportDestinationConfigurationT &&value)
StartArchiveExportRequest & WithExportDestinationConfiguration(ExportDestinationConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const ExportDestinationConfiguration & GetExportDestinationConfiguration() const
StartArchiveExportRequest & WithArchiveId(ArchiveIdT &&value)
StartArchiveExportRequest & WithFromTimestamp(FromTimestampT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String