AWS SDK for C++  1.9.155
AWS SDK for C++
PutSuppressedDestinationRequest.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 "PutSuppressedDestination"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
44  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
45 
50  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
51 
56  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
57 
62  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
63 
68  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
69 
74  inline PutSuppressedDestinationRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
75 
80  inline PutSuppressedDestinationRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
81 
86  inline PutSuppressedDestinationRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
87 
88 
93  inline const SuppressionListReason& GetReason() const{ return m_reason; }
94 
99  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
100 
105  inline void SetReason(const SuppressionListReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
106 
111  inline void SetReason(SuppressionListReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
112 
117  inline PutSuppressedDestinationRequest& WithReason(const SuppressionListReason& value) { SetReason(value); return *this;}
118 
123  inline PutSuppressedDestinationRequest& WithReason(SuppressionListReason&& value) { SetReason(std::move(value)); return *this;}
124 
125  private:
126 
127  Aws::String m_emailAddress;
128  bool m_emailAddressHasBeenSet;
129 
130  SuppressionListReason m_reason;
131  bool m_reasonHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace SESV2
136 } // namespace Aws
Aws::SESV2::Model::PutSuppressedDestinationRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: PutSuppressedDestinationRequest.h:99
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::PutSuppressedDestinationRequest::WithEmailAddress
PutSuppressedDestinationRequest & WithEmailAddress(Aws::String &&value)
Definition: PutSuppressedDestinationRequest.h:80
Aws::SESV2::Model::PutSuppressedDestinationRequest
Definition: PutSuppressedDestinationRequest.h:27
Aws::SESV2::Model::PutSuppressedDestinationRequest::WithReason
PutSuppressedDestinationRequest & WithReason(SuppressionListReason &&value)
Definition: PutSuppressedDestinationRequest.h:123
Aws::SESV2::Model::PutSuppressedDestinationRequest::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: PutSuppressedDestinationRequest.h:56
Aws::SESV2::Model::PutSuppressedDestinationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::PutSuppressedDestinationRequest::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: PutSuppressedDestinationRequest.h:44
Aws::SESV2::Model::PutSuppressedDestinationRequest::WithEmailAddress
PutSuppressedDestinationRequest & WithEmailAddress(const char *value)
Definition: PutSuppressedDestinationRequest.h:86
SuppressionListReason.h
Aws::SESV2::Model::PutSuppressedDestinationRequest::SetReason
void SetReason(SuppressionListReason &&value)
Definition: PutSuppressedDestinationRequest.h:111
Aws::SESV2::Model::PutSuppressedDestinationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutSuppressedDestinationRequest.h:35
Aws::SESV2::Model::PutSuppressedDestinationRequest::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: PutSuppressedDestinationRequest.h:50
Aws::SESV2::Model::PutSuppressedDestinationRequest::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: PutSuppressedDestinationRequest.h:68
Aws::SESV2::Model::PutSuppressedDestinationRequest::GetReason
const SuppressionListReason & GetReason() const
Definition: PutSuppressedDestinationRequest.h:93
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::PutSuppressedDestinationRequest::PutSuppressedDestinationRequest
PutSuppressedDestinationRequest()
Aws::SESV2::Model::SuppressionListReason
SuppressionListReason
Definition: SuppressionListReason.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::PutSuppressedDestinationRequest::WithReason
PutSuppressedDestinationRequest & WithReason(const SuppressionListReason &value)
Definition: PutSuppressedDestinationRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SESV2Request.h
Aws::SESV2::Model::PutSuppressedDestinationRequest::SetReason
void SetReason(const SuppressionListReason &value)
Definition: PutSuppressedDestinationRequest.h:105
Aws::SESV2::Model::PutSuppressedDestinationRequest::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: PutSuppressedDestinationRequest.h:62
Aws::SESV2::Model::PutSuppressedDestinationRequest::WithEmailAddress
PutSuppressedDestinationRequest & WithEmailAddress(const Aws::String &value)
Definition: PutSuppressedDestinationRequest.h:74