AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetArchiveSearchResult.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/model/ArchiveFilters.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/mailmanager/model/SearchStatus.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MailManager
27{
28namespace Model
29{
37 {
38 public:
39 AWS_MAILMANAGER_API GetArchiveSearchResult() = default;
42
43
45
48 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
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 GetArchiveSearchResult& WithArchiveId(ArchiveIdT&& value) { SetArchiveId(std::forward<ArchiveIdT>(value)); return *this;}
54
56
59 inline const ArchiveFilters& GetFilters() const { return m_filters; }
60 template<typename FiltersT = ArchiveFilters>
61 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
62 template<typename FiltersT = ArchiveFilters>
63 GetArchiveSearchResult& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
71 template<typename FromTimestampT = Aws::Utils::DateTime>
72 void SetFromTimestamp(FromTimestampT&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::forward<FromTimestampT>(value); }
73 template<typename FromTimestampT = Aws::Utils::DateTime>
74 GetArchiveSearchResult& WithFromTimestamp(FromTimestampT&& value) { SetFromTimestamp(std::forward<FromTimestampT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
82 template<typename ToTimestampT = Aws::Utils::DateTime>
83 void SetToTimestamp(ToTimestampT&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::forward<ToTimestampT>(value); }
84 template<typename ToTimestampT = Aws::Utils::DateTime>
85 GetArchiveSearchResult& WithToTimestamp(ToTimestampT&& value) { SetToTimestamp(std::forward<ToTimestampT>(value)); return *this;}
87
89
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline GetArchiveSearchResult& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96
98
101 inline const SearchStatus& GetStatus() const { return m_status; }
102 template<typename StatusT = SearchStatus>
103 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
104 template<typename StatusT = SearchStatus>
105 GetArchiveSearchResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template<typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
113 template<typename RequestIdT = Aws::String>
114 GetArchiveSearchResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
116 private:
117
118 Aws::String m_archiveId;
119 bool m_archiveIdHasBeenSet = false;
120
121 ArchiveFilters m_filters;
122 bool m_filtersHasBeenSet = false;
123
124 Aws::Utils::DateTime m_fromTimestamp{};
125 bool m_fromTimestampHasBeenSet = false;
126
127 Aws::Utils::DateTime m_toTimestamp{};
128 bool m_toTimestampHasBeenSet = false;
129
130 int m_maxResults{0};
131 bool m_maxResultsHasBeenSet = false;
132
133 SearchStatus m_status;
134 bool m_statusHasBeenSet = false;
135
136 Aws::String m_requestId;
137 bool m_requestIdHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace MailManager
142} // namespace Aws
GetArchiveSearchResult & WithFromTimestamp(FromTimestampT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetFromTimestamp() const
GetArchiveSearchResult & WithMaxResults(int value)
GetArchiveSearchResult & WithToTimestamp(ToTimestampT &&value)
GetArchiveSearchResult & WithRequestId(RequestIdT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveSearchResult & WithStatus(StatusT &&value)
GetArchiveSearchResult & WithFilters(FiltersT &&value)
const Aws::Utils::DateTime & GetToTimestamp() const
GetArchiveSearchResult & WithArchiveId(ArchiveIdT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue