AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSuppressedDestinationRequest.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/AWSString.h>
10#include <aws/sesv2/model/SuppressionListReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SESV2
16{
17namespace 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_SESV2_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
46 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
47 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
48 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
49 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
50 inline PutSuppressedDestinationRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
51 inline PutSuppressedDestinationRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
52 inline PutSuppressedDestinationRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
54
56
60 inline const SuppressionListReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const SuppressionListReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(SuppressionListReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
64 inline PutSuppressedDestinationRequest& WithReason(const SuppressionListReason& value) { SetReason(value); return *this;}
65 inline PutSuppressedDestinationRequest& WithReason(SuppressionListReason&& value) { SetReason(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_emailAddress;
70 bool m_emailAddressHasBeenSet = false;
71
72 SuppressionListReason m_reason;
73 bool m_reasonHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SESV2
78} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
PutSuppressedDestinationRequest & WithEmailAddress(const Aws::String &value)
PutSuppressedDestinationRequest & WithEmailAddress(Aws::String &&value)
PutSuppressedDestinationRequest & WithReason(SuppressionListReason &&value)
PutSuppressedDestinationRequest & WithReason(const SuppressionListReason &value)
PutSuppressedDestinationRequest & WithEmailAddress(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String