AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ExportDestinationConfiguration.h>
11#include <aws/mailmanager/model/ArchiveFilters.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MailManager
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_MAILMANAGER_API StartArchiveExportRequest();
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 inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
51 inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
52 inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
53 inline StartArchiveExportRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
54 inline StartArchiveExportRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
55 inline StartArchiveExportRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
57
59
62 inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const{ return m_exportDestinationConfiguration; }
63 inline bool ExportDestinationConfigurationHasBeenSet() const { return m_exportDestinationConfigurationHasBeenSet; }
64 inline void SetExportDestinationConfiguration(const ExportDestinationConfiguration& value) { m_exportDestinationConfigurationHasBeenSet = true; m_exportDestinationConfiguration = value; }
65 inline void SetExportDestinationConfiguration(ExportDestinationConfiguration&& value) { m_exportDestinationConfigurationHasBeenSet = true; m_exportDestinationConfiguration = std::move(value); }
69
71
74 inline const ArchiveFilters& GetFilters() const{ return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 inline void SetFilters(const ArchiveFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
77 inline void SetFilters(ArchiveFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
78 inline StartArchiveExportRequest& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;}
79 inline StartArchiveExportRequest& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; }
87 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
88 inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = value; }
89 inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::move(value); }
91 inline StartArchiveExportRequest& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;}
93
95
98 inline bool GetIncludeMetadata() const{ return m_includeMetadata; }
99 inline bool IncludeMetadataHasBeenSet() const { return m_includeMetadataHasBeenSet; }
100 inline void SetIncludeMetadata(bool value) { m_includeMetadataHasBeenSet = true; m_includeMetadata = value; }
101 inline StartArchiveExportRequest& WithIncludeMetadata(bool value) { SetIncludeMetadata(value); return *this;}
103
105
108 inline int GetMaxResults() const{ return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
111 inline StartArchiveExportRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; }
119 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
120 inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = value; }
121 inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::move(value); }
123 inline StartArchiveExportRequest& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;}
125 private:
126
127 Aws::String m_archiveId;
128 bool m_archiveIdHasBeenSet = false;
129
130 ExportDestinationConfiguration m_exportDestinationConfiguration;
131 bool m_exportDestinationConfigurationHasBeenSet = false;
132
133 ArchiveFilters m_filters;
134 bool m_filtersHasBeenSet = false;
135
136 Aws::Utils::DateTime m_fromTimestamp;
137 bool m_fromTimestampHasBeenSet = false;
138
139 bool m_includeMetadata;
140 bool m_includeMetadataHasBeenSet = false;
141
142 int m_maxResults;
143 bool m_maxResultsHasBeenSet = false;
144
145 Aws::Utils::DateTime m_toTimestamp;
146 bool m_toTimestampHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace MailManager
151} // namespace Aws
StartArchiveExportRequest & WithArchiveId(Aws::String &&value)
StartArchiveExportRequest & WithIncludeMetadata(bool value)
StartArchiveExportRequest & WithFromTimestamp(const Aws::Utils::DateTime &value)
StartArchiveExportRequest & WithExportDestinationConfiguration(const ExportDestinationConfiguration &value)
StartArchiveExportRequest & WithFromTimestamp(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
const ExportDestinationConfiguration & GetExportDestinationConfiguration() const
void SetToTimestamp(const Aws::Utils::DateTime &value)
StartArchiveExportRequest & WithExportDestinationConfiguration(ExportDestinationConfiguration &&value)
void SetExportDestinationConfiguration(const ExportDestinationConfiguration &value)
StartArchiveExportRequest & WithArchiveId(const Aws::String &value)
StartArchiveExportRequest & WithToTimestamp(const Aws::Utils::DateTime &value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
void SetFromTimestamp(const Aws::Utils::DateTime &value)
StartArchiveExportRequest & WithArchiveId(const char *value)
StartArchiveExportRequest & WithFilters(ArchiveFilters &&value)
void SetExportDestinationConfiguration(ExportDestinationConfiguration &&value)
StartArchiveExportRequest & WithFilters(const ArchiveFilters &value)
StartArchiveExportRequest & WithToTimestamp(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String