AWS SDK for C++  1.9.155
AWS SDK for C++
PutAccountSuppressionAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SESV2
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "PutAccountSuppressionAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
49  inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const{ return m_suppressedReasons; }
50 
60  inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
61 
71  inline void SetSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; }
72 
82  inline void SetSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); }
83 
93  inline PutAccountSuppressionAttributesRequest& WithSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { SetSuppressedReasons(value); return *this;}
94 
104  inline PutAccountSuppressionAttributesRequest& WithSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { SetSuppressedReasons(std::move(value)); return *this;}
105 
115  inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; }
116 
126  inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  Aws::Vector<SuppressionListReason> m_suppressedReasons;
131  bool m_suppressedReasonsHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace SESV2
136 } // namespace Aws
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::AddSuppressedReasons
PutAccountSuppressionAttributesRequest & AddSuppressedReasons(SuppressionListReason &&value)
Definition: PutAccountSuppressionAttributesRequest.h:126
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::WithSuppressedReasons
PutAccountSuppressionAttributesRequest & WithSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: PutAccountSuppressionAttributesRequest.h:104
AWSVector.h
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::SuppressedReasonsHasBeenSet
bool SuppressedReasonsHasBeenSet() const
Definition: PutAccountSuppressionAttributesRequest.h:60
SuppressionListReason.h
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::WithSuppressedReasons
PutAccountSuppressionAttributesRequest & WithSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: PutAccountSuppressionAttributesRequest.h:93
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::PutAccountSuppressionAttributesRequest
PutAccountSuppressionAttributesRequest()
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::SetSuppressedReasons
void SetSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: PutAccountSuppressionAttributesRequest.h:71
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::SetSuppressedReasons
void SetSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: PutAccountSuppressionAttributesRequest.h:82
SESV2_EXPORTS.h
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::GetSuppressedReasons
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
Definition: PutAccountSuppressionAttributesRequest.h:49
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest
Definition: PutAccountSuppressionAttributesRequest.h:27
Aws::SESV2::Model::SuppressionListReason
SuppressionListReason
Definition: SuppressionListReason.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAccountSuppressionAttributesRequest.h:35
SESV2Request.h
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::PutAccountSuppressionAttributesRequest::AddSuppressedReasons
PutAccountSuppressionAttributesRequest & AddSuppressedReasons(const SuppressionListReason &value)
Definition: PutAccountSuppressionAttributesRequest.h:115