AWS SDK for C++  1.9.161
AWS SDK for C++
PutConfigurationSetSuppressionOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SESV2
17 {
18 namespace 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::String SerializePayload() const override;
39 
40 
45  inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
46 
51  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
52 
57  inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
58 
63  inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
64 
69  inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
70 
75  inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
76 
81  inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
82 
87  inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
88 
89 
99  inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const{ return m_suppressedReasons; }
100 
110  inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
111 
121  inline void SetSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; }
122 
132  inline void SetSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); }
133 
143  inline PutConfigurationSetSuppressionOptionsRequest& WithSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { SetSuppressedReasons(value); return *this;}
144 
154  inline PutConfigurationSetSuppressionOptionsRequest& WithSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { SetSuppressedReasons(std::move(value)); return *this;}
155 
165  inline PutConfigurationSetSuppressionOptionsRequest& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; }
166 
176  inline PutConfigurationSetSuppressionOptionsRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; }
177 
178  private:
179 
180  Aws::String m_configurationSetName;
181  bool m_configurationSetNameHasBeenSet;
182 
183  Aws::Vector<SuppressionListReason> m_suppressedReasons;
184  bool m_suppressedReasonsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace SESV2
189 } // namespace Aws
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::PutConfigurationSetSuppressionOptionsRequest
PutConfigurationSetSuppressionOptionsRequest()
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::AddSuppressedReasons
PutConfigurationSetSuppressionOptionsRequest & AddSuppressedReasons(const SuppressionListReason &value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:165
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::GetConfigurationSetName
const Aws::String & GetConfigurationSetName() const
Definition: PutConfigurationSetSuppressionOptionsRequest.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::ConfigurationSetNameHasBeenSet
bool ConfigurationSetNameHasBeenSet() const
Definition: PutConfigurationSetSuppressionOptionsRequest.h:51
AWSVector.h
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SetSuppressedReasons
void SetSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:132
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::WithSuppressedReasons
PutConfigurationSetSuppressionOptionsRequest & WithSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:154
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SetConfigurationSetName
void SetConfigurationSetName(const char *value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:69
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutConfigurationSetSuppressionOptionsRequest.h:36
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::AddSuppressedReasons
PutConfigurationSetSuppressionOptionsRequest & AddSuppressedReasons(SuppressionListReason &&value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:176
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::GetSuppressedReasons
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
Definition: PutConfigurationSetSuppressionOptionsRequest.h:99
SuppressionListReason.h
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::WithSuppressedReasons
PutConfigurationSetSuppressionOptionsRequest & WithSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:143
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::WithConfigurationSetName
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(const char *value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:87
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
SESV2_EXPORTS.h
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SetConfigurationSetName
void SetConfigurationSetName(const Aws::String &value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:57
Aws::SESV2::Model::SuppressionListReason
SuppressionListReason
Definition: SuppressionListReason.h:17
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::WithConfigurationSetName
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(Aws::String &&value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SetSuppressedReasons
void SetSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:121
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest
Definition: PutConfigurationSetSuppressionOptionsRequest.h:28
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::WithConfigurationSetName
PutConfigurationSetSuppressionOptionsRequest & WithConfigurationSetName(const Aws::String &value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SetConfigurationSetName
void SetConfigurationSetName(Aws::String &&value)
Definition: PutConfigurationSetSuppressionOptionsRequest.h:63
SESV2Request.h
Aws::SESV2::Model::PutConfigurationSetSuppressionOptionsRequest::SuppressedReasonsHasBeenSet
bool SuppressedReasonsHasBeenSet() const
Definition: PutConfigurationSetSuppressionOptionsRequest.h:110