AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutConfigurationSetSuppressionOptionsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/SuppressionListReason.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SESV2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutConfigurationSetSuppressionOptions"; }
37
38 AWS_SESV2_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
47 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
48 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
49 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
50 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
55
57
66 inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const{ return m_suppressedReasons; }
67 inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
68 inline void SetSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; }
69 inline void SetSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); }
72 inline PutConfigurationSetSuppressionOptionsRequest& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; }
73 inline PutConfigurationSetSuppressionOptionsRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; }
75 private:
76
77 Aws::String m_configurationSetName;
78 bool m_configurationSetNameHasBeenSet = false;
79
80 Aws::Vector<SuppressionListReason> m_suppressedReasons;
81 bool m_suppressedReasonsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace SESV2
86} // namespace Aws
PutConfigurationSetSuppressionOptionsRequest & WithSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(const Aws::String &value)
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(Aws::String &&value)
PutConfigurationSetSuppressionOptionsRequest & AddSuppressedReasons(const SuppressionListReason &value)
PutConfigurationSetSuppressionOptionsRequest & AddSuppressedReasons(SuppressionListReason &&value)
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(const char *value)
AWS_SESV2_API Aws::String SerializePayload() const override
PutConfigurationSetSuppressionOptionsRequest & WithSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector