AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SuppressionOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/SuppressionListReason.h>
10#include <aws/sesv2/model/SuppressionListScope.h>
11#include <aws/sesv2/model/SuppressionValidationOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2 {
23namespace Model {
24
32 public:
33 AWS_SESV2_API SuppressionOptions() = default;
36 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
49 inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const { return m_suppressedReasons; }
50 inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
51 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
52 void SetSuppressedReasons(SuppressedReasonsT&& value) {
53 m_suppressedReasonsHasBeenSet = true;
54 m_suppressedReasons = std::forward<SuppressedReasonsT>(value);
55 }
56 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
57 SuppressionOptions& WithSuppressedReasons(SuppressedReasonsT&& value) {
58 SetSuppressedReasons(std::forward<SuppressedReasonsT>(value));
59 return *this;
60 }
62 m_suppressedReasonsHasBeenSet = true;
63 m_suppressedReasons.push_back(value);
64 return *this;
65 }
67
69
76 inline SuppressionListScope GetSuppressionScope() const { return m_suppressionScope; }
77 inline bool SuppressionScopeHasBeenSet() const { return m_suppressionScopeHasBeenSet; }
79 m_suppressionScopeHasBeenSet = true;
80 m_suppressionScope = value;
81 }
84 return *this;
85 }
87
89
90 inline const SuppressionValidationOptions& GetValidationOptions() const { return m_validationOptions; }
91 inline bool ValidationOptionsHasBeenSet() const { return m_validationOptionsHasBeenSet; }
92 template <typename ValidationOptionsT = SuppressionValidationOptions>
93 void SetValidationOptions(ValidationOptionsT&& value) {
94 m_validationOptionsHasBeenSet = true;
95 m_validationOptions = std::forward<ValidationOptionsT>(value);
96 }
97 template <typename ValidationOptionsT = SuppressionValidationOptions>
98 SuppressionOptions& WithValidationOptions(ValidationOptionsT&& value) {
99 SetValidationOptions(std::forward<ValidationOptionsT>(value));
100 return *this;
101 }
103 private:
104 Aws::Vector<SuppressionListReason> m_suppressedReasons;
105
107
108 SuppressionValidationOptions m_validationOptions;
109 bool m_suppressedReasonsHasBeenSet = false;
110 bool m_suppressionScopeHasBeenSet = false;
111 bool m_validationOptionsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace SESV2
116} // namespace Aws
SuppressionOptions & WithValidationOptions(ValidationOptionsT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
void SetSuppressionScope(SuppressionListScope value)
AWS_SESV2_API SuppressionOptions()=default
AWS_SESV2_API SuppressionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
SuppressionOptions & WithSuppressionScope(SuppressionListScope value)
AWS_SESV2_API SuppressionOptions(Aws::Utils::Json::JsonView jsonValue)
const SuppressionValidationOptions & GetValidationOptions() const
void SetSuppressedReasons(SuppressedReasonsT &&value)
SuppressionListScope GetSuppressionScope() const
void SetValidationOptions(ValidationOptionsT &&value)
SuppressionOptions & AddSuppressedReasons(SuppressionListReason value)
SuppressionOptions & WithSuppressedReasons(SuppressedReasonsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue