AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartArchiveExportRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/model/ArchiveFilters.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/mailmanager/model/ExportDestinationConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MailManager
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_MAILMANAGER_API StartArchiveExportRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartArchiveExport"; }
38
39 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
40
41 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
49 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
50 template<typename ArchiveIdT = Aws::String>
51 void SetArchiveId(ArchiveIdT&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::forward<ArchiveIdT>(value); }
52 template<typename ArchiveIdT = Aws::String>
53 StartArchiveExportRequest& WithArchiveId(ArchiveIdT&& value) { SetArchiveId(std::forward<ArchiveIdT>(value)); return *this;}
55
57
60 inline const ArchiveFilters& GetFilters() const { return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 template<typename FiltersT = ArchiveFilters>
63 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
64 template<typename FiltersT = ArchiveFilters>
65 StartArchiveExportRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
73 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
74 template<typename FromTimestampT = Aws::Utils::DateTime>
75 void SetFromTimestamp(FromTimestampT&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::forward<FromTimestampT>(value); }
76 template<typename FromTimestampT = Aws::Utils::DateTime>
77 StartArchiveExportRequest& WithFromTimestamp(FromTimestampT&& value) { SetFromTimestamp(std::forward<FromTimestampT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
85 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
86 template<typename ToTimestampT = Aws::Utils::DateTime>
87 void SetToTimestamp(ToTimestampT&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::forward<ToTimestampT>(value); }
88 template<typename ToTimestampT = Aws::Utils::DateTime>
89 StartArchiveExportRequest& WithToTimestamp(ToTimestampT&& value) { SetToTimestamp(std::forward<ToTimestampT>(value)); return *this;}
91
93
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
99 inline StartArchiveExportRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101
103
106 inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const { return m_exportDestinationConfiguration; }
107 inline bool ExportDestinationConfigurationHasBeenSet() const { return m_exportDestinationConfigurationHasBeenSet; }
108 template<typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
109 void SetExportDestinationConfiguration(ExportDestinationConfigurationT&& value) { m_exportDestinationConfigurationHasBeenSet = true; m_exportDestinationConfiguration = std::forward<ExportDestinationConfigurationT>(value); }
110 template<typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
111 StartArchiveExportRequest& WithExportDestinationConfiguration(ExportDestinationConfigurationT&& value) { SetExportDestinationConfiguration(std::forward<ExportDestinationConfigurationT>(value)); return *this;}
113
115
118 inline bool GetIncludeMetadata() const { return m_includeMetadata; }
119 inline bool IncludeMetadataHasBeenSet() const { return m_includeMetadataHasBeenSet; }
120 inline void SetIncludeMetadata(bool value) { m_includeMetadataHasBeenSet = true; m_includeMetadata = value; }
121 inline StartArchiveExportRequest& WithIncludeMetadata(bool value) { SetIncludeMetadata(value); return *this;}
123 private:
124
125 Aws::String m_archiveId;
126 bool m_archiveIdHasBeenSet = false;
127
128 ArchiveFilters m_filters;
129 bool m_filtersHasBeenSet = false;
130
131 Aws::Utils::DateTime m_fromTimestamp{};
132 bool m_fromTimestampHasBeenSet = false;
133
134 Aws::Utils::DateTime m_toTimestamp{};
135 bool m_toTimestampHasBeenSet = false;
136
137 int m_maxResults{0};
138 bool m_maxResultsHasBeenSet = false;
139
140 ExportDestinationConfiguration m_exportDestinationConfiguration;
141 bool m_exportDestinationConfigurationHasBeenSet = false;
142
143 bool m_includeMetadata{false};
144 bool m_includeMetadataHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace MailManager
149} // namespace Aws
StartArchiveExportRequest & WithFilters(FiltersT &&value)
StartArchiveExportRequest & WithIncludeMetadata(bool value)
AWS_MAILMANAGER_API StartArchiveExportRequest()=default
StartArchiveExportRequest & WithToTimestamp(ToTimestampT &&value)
StartArchiveExportRequest & WithMaxResults(int 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