AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
50 inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
51 inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
52 inline StartArchiveSearchRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
53 inline StartArchiveSearchRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
54 inline StartArchiveSearchRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
56
58
61 inline const ArchiveFilters& GetFilters() const{ return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 inline void SetFilters(const ArchiveFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
64 inline void SetFilters(ArchiveFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
65 inline StartArchiveSearchRequest& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;}
66 inline StartArchiveSearchRequest& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; }
74 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
75 inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = value; }
76 inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::move(value); }
78 inline StartArchiveSearchRequest& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;}
80
82
85 inline int GetMaxResults() const{ return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline StartArchiveSearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; }
96 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
97 inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = value; }
98 inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::move(value); }
100 inline StartArchiveSearchRequest& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_archiveId;
105 bool m_archiveIdHasBeenSet = false;
106
107 ArchiveFilters m_filters;
108 bool m_filtersHasBeenSet = false;
109
110 Aws::Utils::DateTime m_fromTimestamp;
111 bool m_fromTimestampHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::Utils::DateTime m_toTimestamp;
117 bool m_toTimestampHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace MailManager
122} // namespace Aws
void SetToTimestamp(const Aws::Utils::DateTime &value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFromTimestamp(const Aws::Utils::DateTime &value)
StartArchiveSearchRequest & WithFilters(ArchiveFilters &&value)
StartArchiveSearchRequest & WithFromTimestamp(const Aws::Utils::DateTime &value)
StartArchiveSearchRequest & WithToTimestamp(Aws::Utils::DateTime &&value)
StartArchiveSearchRequest & WithFilters(const ArchiveFilters &value)
virtual const char * GetServiceRequestName() const override
StartArchiveSearchRequest & WithArchiveId(const Aws::String &value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
StartArchiveSearchRequest & WithMaxResults(int value)
StartArchiveSearchRequest & WithFromTimestamp(Aws::Utils::DateTime &&value)
StartArchiveSearchRequest & WithArchiveId(const char *value)
StartArchiveSearchRequest & WithToTimestamp(const Aws::Utils::DateTime &value)
StartArchiveSearchRequest & WithArchiveId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String