AWS SDK for C++  1.9.161
AWS SDK for C++
ListSuppressedDestinationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace SESV2
22 {
23 namespace 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::String SerializePayload() const override;
44 
45  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46 
47 
51  inline const Aws::Vector<SuppressionListReason>& GetReasons() const{ return m_reasons; }
52 
56  inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
57 
61  inline void SetReasons(const Aws::Vector<SuppressionListReason>& value) { m_reasonsHasBeenSet = true; m_reasons = value; }
62 
66  inline void SetReasons(Aws::Vector<SuppressionListReason>&& value) { m_reasonsHasBeenSet = true; m_reasons = std::move(value); }
67 
71  inline ListSuppressedDestinationsRequest& WithReasons(const Aws::Vector<SuppressionListReason>& value) { SetReasons(value); return *this;}
72 
76  inline ListSuppressedDestinationsRequest& WithReasons(Aws::Vector<SuppressionListReason>&& value) { SetReasons(std::move(value)); return *this;}
77 
81  inline ListSuppressedDestinationsRequest& AddReasons(const SuppressionListReason& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(value); return *this; }
82 
86  inline ListSuppressedDestinationsRequest& AddReasons(SuppressionListReason&& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(std::move(value)); return *this; }
87 
88 
94  inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
95 
101  inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
102 
108  inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
109 
115  inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
116 
122  inline ListSuppressedDestinationsRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
123 
129  inline ListSuppressedDestinationsRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
130 
131 
137  inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
138 
144  inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
145 
151  inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
152 
158  inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
159 
165  inline ListSuppressedDestinationsRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
166 
172  inline ListSuppressedDestinationsRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
173 
174 
180  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 
187  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
188 
194  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
195 
201  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
202 
208  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
209 
215  inline ListSuppressedDestinationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
216 
222  inline ListSuppressedDestinationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
223 
229  inline ListSuppressedDestinationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
230 
231 
239  inline int GetPageSize() const{ return m_pageSize; }
240 
248  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
249 
257  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
258 
266  inline ListSuppressedDestinationsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
267 
268  private:
269 
271  bool m_reasonsHasBeenSet;
272 
273  Aws::Utils::DateTime m_startDate;
274  bool m_startDateHasBeenSet;
275 
276  Aws::Utils::DateTime m_endDate;
277  bool m_endDateHasBeenSet;
278 
279  Aws::String m_nextToken;
280  bool m_nextTokenHasBeenSet;
281 
282  int m_pageSize;
283  bool m_pageSizeHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace SESV2
288 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Http::URI
Definition: URI.h:32
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithNextToken
ListSuppressedDestinationsRequest & WithNextToken(const Aws::String &value)
Definition: ListSuppressedDestinationsRequest.h:215
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithNextToken
ListSuppressedDestinationsRequest & WithNextToken(Aws::String &&value)
Definition: ListSuppressedDestinationsRequest.h:222
DateTime.h
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetReasons
void SetReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: ListSuppressedDestinationsRequest.h:66
Aws::SESV2::Model::ListSuppressedDestinationsRequest
Definition: ListSuppressedDestinationsRequest.h:33
Aws::SESV2::Model::ListSuppressedDestinationsRequest::ReasonsHasBeenSet
bool ReasonsHasBeenSet() const
Definition: ListSuppressedDestinationsRequest.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithStartDate
ListSuppressedDestinationsRequest & WithStartDate(Aws::Utils::DateTime &&value)
Definition: ListSuppressedDestinationsRequest.h:129
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetReasons
void SetReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: ListSuppressedDestinationsRequest.h:61
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithEndDate
ListSuppressedDestinationsRequest & WithEndDate(Aws::Utils::DateTime &&value)
Definition: ListSuppressedDestinationsRequest.h:172
Aws::SESV2::Model::ListSuppressedDestinationsRequest::AddReasons
ListSuppressedDestinationsRequest & AddReasons(const SuppressionListReason &value)
Definition: ListSuppressedDestinationsRequest.h:81
AWSVector.h
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetStartDate
void SetStartDate(const Aws::Utils::DateTime &value)
Definition: ListSuppressedDestinationsRequest.h:108
Aws::SESV2::Model::ListSuppressedDestinationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListSuppressedDestinationsRequest.h:187
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListSuppressedDestinationsRequest.h:41
Aws::SESV2::Model::ListSuppressedDestinationsRequest::EndDateHasBeenSet
bool EndDateHasBeenSet() const
Definition: ListSuppressedDestinationsRequest.h:144
SuppressionListReason.h
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithReasons
ListSuppressedDestinationsRequest & WithReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: ListSuppressedDestinationsRequest.h:71
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSuppressedDestinationsRequest.h:180
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSuppressedDestinationsRequest.h:194
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSuppressedDestinationsRequest.h:201
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetEndDate
void SetEndDate(Aws::Utils::DateTime &&value)
Definition: ListSuppressedDestinationsRequest.h:158
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetEndDate
const Aws::Utils::DateTime & GetEndDate() const
Definition: ListSuppressedDestinationsRequest.h:137
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetPageSize
int GetPageSize() const
Definition: ListSuppressedDestinationsRequest.h:239
Aws::SESV2::Model::ListSuppressedDestinationsRequest::StartDateHasBeenSet
bool StartDateHasBeenSet() const
Definition: ListSuppressedDestinationsRequest.h:101
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetStartDate
const Aws::Utils::DateTime & GetStartDate() const
Definition: ListSuppressedDestinationsRequest.h:94
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithNextToken
ListSuppressedDestinationsRequest & WithNextToken(const char *value)
Definition: ListSuppressedDestinationsRequest.h:229
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListSuppressedDestinationsRequest.h:208
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetStartDate
void SetStartDate(Aws::Utils::DateTime &&value)
Definition: ListSuppressedDestinationsRequest.h:115
Aws::SESV2::Model::ListSuppressedDestinationsRequest::ListSuppressedDestinationsRequest
ListSuppressedDestinationsRequest()
Aws::SESV2::Model::SuppressionListReason
SuppressionListReason
Definition: SuppressionListReason.h:17
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetEndDate
void SetEndDate(const Aws::Utils::DateTime &value)
Definition: ListSuppressedDestinationsRequest.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithReasons
ListSuppressedDestinationsRequest & WithReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: ListSuppressedDestinationsRequest.h:76
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithPageSize
ListSuppressedDestinationsRequest & WithPageSize(int value)
Definition: ListSuppressedDestinationsRequest.h:266
Aws::SESV2::Model::ListSuppressedDestinationsRequest::GetReasons
const Aws::Vector< SuppressionListReason > & GetReasons() const
Definition: ListSuppressedDestinationsRequest.h:51
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithStartDate
ListSuppressedDestinationsRequest & WithStartDate(const Aws::Utils::DateTime &value)
Definition: ListSuppressedDestinationsRequest.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::ListSuppressedDestinationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::SESV2::Model::ListSuppressedDestinationsRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListSuppressedDestinationsRequest.h:248
Aws::SESV2::Model::ListSuppressedDestinationsRequest::WithEndDate
ListSuppressedDestinationsRequest & WithEndDate(const Aws::Utils::DateTime &value)
Definition: ListSuppressedDestinationsRequest.h:165
Aws::SESV2::Model::ListSuppressedDestinationsRequest::AddReasons
ListSuppressedDestinationsRequest & AddReasons(SuppressionListReason &&value)
Definition: ListSuppressedDestinationsRequest.h:86
SESV2Request.h
Aws::SESV2::Model::ListSuppressedDestinationsRequest::SetPageSize
void SetPageSize(int value)
Definition: ListSuppressedDestinationsRequest.h:257