AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartArchiveSearchRequest.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 <utility>
13
14namespace Aws
15{
16namespace MailManager
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_MAILMANAGER_API StartArchiveSearchRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartArchiveSearch"; }
37
38 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
39
40 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
48 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
49 template<typename ArchiveIdT = Aws::String>
50 void SetArchiveId(ArchiveIdT&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::forward<ArchiveIdT>(value); }
51 template<typename ArchiveIdT = Aws::String>
52 StartArchiveSearchRequest& WithArchiveId(ArchiveIdT&& value) { SetArchiveId(std::forward<ArchiveIdT>(value)); return *this;}
54
56
59 inline const ArchiveFilters& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template<typename FiltersT = ArchiveFilters>
62 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
63 template<typename FiltersT = ArchiveFilters>
64 StartArchiveSearchRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
72 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
73 template<typename FromTimestampT = Aws::Utils::DateTime>
74 void SetFromTimestamp(FromTimestampT&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::forward<FromTimestampT>(value); }
75 template<typename FromTimestampT = Aws::Utils::DateTime>
76 StartArchiveSearchRequest& WithFromTimestamp(FromTimestampT&& value) { SetFromTimestamp(std::forward<FromTimestampT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
84 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
85 template<typename ToTimestampT = Aws::Utils::DateTime>
86 void SetToTimestamp(ToTimestampT&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::forward<ToTimestampT>(value); }
87 template<typename ToTimestampT = Aws::Utils::DateTime>
88 StartArchiveSearchRequest& WithToTimestamp(ToTimestampT&& value) { SetToTimestamp(std::forward<ToTimestampT>(value)); return *this;}
90
92
95 inline int GetMaxResults() const { return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline StartArchiveSearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 private:
101
102 Aws::String m_archiveId;
103 bool m_archiveIdHasBeenSet = false;
104
105 ArchiveFilters m_filters;
106 bool m_filtersHasBeenSet = false;
107
108 Aws::Utils::DateTime m_fromTimestamp{};
109 bool m_fromTimestampHasBeenSet = false;
110
111 Aws::Utils::DateTime m_toTimestamp{};
112 bool m_toTimestampHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace MailManager
120} // namespace Aws
StartArchiveSearchRequest & WithToTimestamp(ToTimestampT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API StartArchiveSearchRequest()=default
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
StartArchiveSearchRequest & WithMaxResults(int value)
StartArchiveSearchRequest & WithFilters(FiltersT &&value)
StartArchiveSearchRequest & WithArchiveId(ArchiveIdT &&value)
StartArchiveSearchRequest & WithFromTimestamp(FromTimestampT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String