AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutAccountSuppressionAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/SuppressionListReason.h>
11#include <aws/sesv2/model/SuppressionValidationAttributes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SESV2 {
17namespace Model {
18
26 public:
27 AWS_SESV2_API PutAccountSuppressionAttributesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutAccountSuppressionAttributes"; }
34
35 AWS_SESV2_API Aws::String SerializePayload() const override;
36
38
47 inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const { return m_suppressedReasons; }
48 inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
49 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
50 void SetSuppressedReasons(SuppressedReasonsT&& value) {
51 m_suppressedReasonsHasBeenSet = true;
52 m_suppressedReasons = std::forward<SuppressedReasonsT>(value);
53 }
54 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
56 SetSuppressedReasons(std::forward<SuppressedReasonsT>(value));
57 return *this;
58 }
60 m_suppressedReasonsHasBeenSet = true;
61 m_suppressedReasons.push_back(value);
62 return *this;
63 }
65
67
71 inline const SuppressionValidationAttributes& GetValidationAttributes() const { return m_validationAttributes; }
72 inline bool ValidationAttributesHasBeenSet() const { return m_validationAttributesHasBeenSet; }
73 template <typename ValidationAttributesT = SuppressionValidationAttributes>
74 void SetValidationAttributes(ValidationAttributesT&& value) {
75 m_validationAttributesHasBeenSet = true;
76 m_validationAttributes = std::forward<ValidationAttributesT>(value);
77 }
78 template <typename ValidationAttributesT = SuppressionValidationAttributes>
80 SetValidationAttributes(std::forward<ValidationAttributesT>(value));
81 return *this;
82 }
84 private:
85 Aws::Vector<SuppressionListReason> m_suppressedReasons;
86
87 SuppressionValidationAttributes m_validationAttributes;
88 bool m_suppressedReasonsHasBeenSet = false;
89 bool m_validationAttributesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace SESV2
94} // namespace Aws
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
PutAccountSuppressionAttributesRequest & AddSuppressedReasons(SuppressionListReason value)
PutAccountSuppressionAttributesRequest & WithSuppressedReasons(SuppressedReasonsT &&value)
PutAccountSuppressionAttributesRequest & WithValidationAttributes(ValidationAttributesT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector