AWS SDK for C++  0.12.9
AWS SDK for C++
IdentityNotificationAttributes.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SES
30 {
31 namespace Model
32 {
33 
41  {
42  public:
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
54  inline const Aws::String& GetBounceTopic() const{ return m_bounceTopic; }
55 
60  inline void SetBounceTopic(const Aws::String& value) { m_bounceTopicHasBeenSet = true; m_bounceTopic = value; }
61 
66  inline void SetBounceTopic(Aws::String&& value) { m_bounceTopicHasBeenSet = true; m_bounceTopic = value; }
67 
72  inline void SetBounceTopic(const char* value) { m_bounceTopicHasBeenSet = true; m_bounceTopic.assign(value); }
73 
78  inline IdentityNotificationAttributes& WithBounceTopic(const Aws::String& value) { SetBounceTopic(value); return *this;}
79 
84  inline IdentityNotificationAttributes& WithBounceTopic(Aws::String&& value) { SetBounceTopic(value); return *this;}
85 
90  inline IdentityNotificationAttributes& WithBounceTopic(const char* value) { SetBounceTopic(value); return *this;}
91 
96  inline const Aws::String& GetComplaintTopic() const{ return m_complaintTopic; }
97 
102  inline void SetComplaintTopic(const Aws::String& value) { m_complaintTopicHasBeenSet = true; m_complaintTopic = value; }
103 
108  inline void SetComplaintTopic(Aws::String&& value) { m_complaintTopicHasBeenSet = true; m_complaintTopic = value; }
109 
114  inline void SetComplaintTopic(const char* value) { m_complaintTopicHasBeenSet = true; m_complaintTopic.assign(value); }
115 
120  inline IdentityNotificationAttributes& WithComplaintTopic(const Aws::String& value) { SetComplaintTopic(value); return *this;}
121 
126  inline IdentityNotificationAttributes& WithComplaintTopic(Aws::String&& value) { SetComplaintTopic(value); return *this;}
127 
132  inline IdentityNotificationAttributes& WithComplaintTopic(const char* value) { SetComplaintTopic(value); return *this;}
133 
138  inline const Aws::String& GetDeliveryTopic() const{ return m_deliveryTopic; }
139 
144  inline void SetDeliveryTopic(const Aws::String& value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic = value; }
145 
150  inline void SetDeliveryTopic(Aws::String&& value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic = value; }
151 
156  inline void SetDeliveryTopic(const char* value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic.assign(value); }
157 
162  inline IdentityNotificationAttributes& WithDeliveryTopic(const Aws::String& value) { SetDeliveryTopic(value); return *this;}
163 
168  inline IdentityNotificationAttributes& WithDeliveryTopic(Aws::String&& value) { SetDeliveryTopic(value); return *this;}
169 
174  inline IdentityNotificationAttributes& WithDeliveryTopic(const char* value) { SetDeliveryTopic(value); return *this;}
175 
183  inline bool GetForwardingEnabled() const{ return m_forwardingEnabled; }
184 
192  inline void SetForwardingEnabled(bool value) { m_forwardingEnabledHasBeenSet = true; m_forwardingEnabled = value; }
193 
201  inline IdentityNotificationAttributes& WithForwardingEnabled(bool value) { SetForwardingEnabled(value); return *this;}
202 
203  private:
204  Aws::String m_bounceTopic;
205  bool m_bounceTopicHasBeenSet;
206  Aws::String m_complaintTopic;
207  bool m_complaintTopicHasBeenSet;
208  Aws::String m_deliveryTopic;
209  bool m_deliveryTopicHasBeenSet;
210  bool m_forwardingEnabled;
211  bool m_forwardingEnabledHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace SES
216 } // namespace Aws
IdentityNotificationAttributes & WithDeliveryTopic(const Aws::String &value)
IdentityNotificationAttributes & WithComplaintTopic(const char *value)
IdentityNotificationAttributes & WithBounceTopic(Aws::String &&value)
IdentityNotificationAttributes & WithDeliveryTopic(Aws::String &&value)
IdentityNotificationAttributes & WithDeliveryTopic(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
IdentityNotificationAttributes & WithBounceTopic(const char *value)
IdentityNotificationAttributes & WithForwardingEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IdentityNotificationAttributes & WithBounceTopic(const Aws::String &value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
IdentityNotificationAttributes & WithComplaintTopic(Aws::String &&value)
IdentityNotificationAttributes & WithComplaintTopic(const Aws::String &value)
JSON (JavaScript Object Notation).