AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSuppressedDestinationsRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/sesv2/model/SuppressionListReason.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace SESV2
22{
23namespace Model
24{
25
33 {
34 public:
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "ListSuppressedDestinations"; }
42
43 AWS_SESV2_API Aws::String SerializePayload() const override;
44
45 AWS_SESV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
52 inline const Aws::Vector<SuppressionListReason>& GetReasons() const{ return m_reasons; }
53 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
54 inline void SetReasons(const Aws::Vector<SuppressionListReason>& value) { m_reasonsHasBeenSet = true; m_reasons = value; }
55 inline void SetReasons(Aws::Vector<SuppressionListReason>&& value) { m_reasonsHasBeenSet = true; m_reasons = std::move(value); }
58 inline ListSuppressedDestinationsRequest& AddReasons(const SuppressionListReason& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(value); return *this; }
59 inline ListSuppressedDestinationsRequest& AddReasons(SuppressionListReason&& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
68 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
69 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
70 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
72 inline ListSuppressedDestinationsRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
74
76
80 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
81 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
82 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
83 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
85 inline ListSuppressedDestinationsRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
87
89
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline ListSuppressedDestinationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline ListSuppressedDestinationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline ListSuppressedDestinationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103
105
112 inline int GetPageSize() const{ return m_pageSize; }
113 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
114 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
115 inline ListSuppressedDestinationsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
117 private:
118
120 bool m_reasonsHasBeenSet = false;
121
122 Aws::Utils::DateTime m_startDate;
123 bool m_startDateHasBeenSet = false;
124
125 Aws::Utils::DateTime m_endDate;
126 bool m_endDateHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 int m_pageSize;
132 bool m_pageSizeHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SESV2
137} // namespace Aws
AWS_SESV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetReasons(const Aws::Vector< SuppressionListReason > &value)
ListSuppressedDestinationsRequest & WithNextToken(const Aws::String &value)
void SetReasons(Aws::Vector< SuppressionListReason > &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
ListSuppressedDestinationsRequest & WithStartDate(Aws::Utils::DateTime &&value)
ListSuppressedDestinationsRequest & AddReasons(const SuppressionListReason &value)
ListSuppressedDestinationsRequest & WithStartDate(const Aws::Utils::DateTime &value)
ListSuppressedDestinationsRequest & WithReasons(Aws::Vector< SuppressionListReason > &&value)
ListSuppressedDestinationsRequest & WithPageSize(int value)
ListSuppressedDestinationsRequest & WithEndDate(const Aws::Utils::DateTime &value)
ListSuppressedDestinationsRequest & WithReasons(const Aws::Vector< SuppressionListReason > &value)
ListSuppressedDestinationsRequest & AddReasons(SuppressionListReason &&value)
const Aws::Vector< SuppressionListReason > & GetReasons() const
ListSuppressedDestinationsRequest & WithNextToken(Aws::String &&value)
ListSuppressedDestinationsRequest & WithEndDate(Aws::Utils::DateTime &&value)
ListSuppressedDestinationsRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector