AWS SDK for C++  0.14.3
AWS SDK for C++
BouncedRecipientInfo.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>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace SES
32 {
33 namespace Model
34 {
35 
44  {
45  public:
48  BouncedRecipientInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::String& GetRecipient() const{ return m_recipient; }
57 
61  inline void SetRecipient(const Aws::String& value) { m_recipientHasBeenSet = true; m_recipient = value; }
62 
66  inline void SetRecipient(Aws::String&& value) { m_recipientHasBeenSet = true; m_recipient = value; }
67 
71  inline void SetRecipient(const char* value) { m_recipientHasBeenSet = true; m_recipient.assign(value); }
72 
76  inline BouncedRecipientInfo& WithRecipient(const Aws::String& value) { SetRecipient(value); return *this;}
77 
81  inline BouncedRecipientInfo& WithRecipient(Aws::String&& value) { SetRecipient(value); return *this;}
82 
86  inline BouncedRecipientInfo& WithRecipient(const char* value) { SetRecipient(value); return *this;}
87 
96  inline const Aws::String& GetRecipientArn() const{ return m_recipientArn; }
97 
106  inline void SetRecipientArn(const Aws::String& value) { m_recipientArnHasBeenSet = true; m_recipientArn = value; }
107 
116  inline void SetRecipientArn(Aws::String&& value) { m_recipientArnHasBeenSet = true; m_recipientArn = value; }
117 
126  inline void SetRecipientArn(const char* value) { m_recipientArnHasBeenSet = true; m_recipientArn.assign(value); }
127 
136  inline BouncedRecipientInfo& WithRecipientArn(const Aws::String& value) { SetRecipientArn(value); return *this;}
137 
146  inline BouncedRecipientInfo& WithRecipientArn(Aws::String&& value) { SetRecipientArn(value); return *this;}
147 
156  inline BouncedRecipientInfo& WithRecipientArn(const char* value) { SetRecipientArn(value); return *this;}
157 
162  inline const BounceType& GetBounceType() const{ return m_bounceType; }
163 
168  inline void SetBounceType(const BounceType& value) { m_bounceTypeHasBeenSet = true; m_bounceType = value; }
169 
174  inline void SetBounceType(BounceType&& value) { m_bounceTypeHasBeenSet = true; m_bounceType = value; }
175 
180  inline BouncedRecipientInfo& WithBounceType(const BounceType& value) { SetBounceType(value); return *this;}
181 
186  inline BouncedRecipientInfo& WithBounceType(BounceType&& value) { SetBounceType(value); return *this;}
187 
193  inline const RecipientDsnFields& GetRecipientDsnFields() const{ return m_recipientDsnFields; }
194 
200  inline void SetRecipientDsnFields(const RecipientDsnFields& value) { m_recipientDsnFieldsHasBeenSet = true; m_recipientDsnFields = value; }
201 
207  inline void SetRecipientDsnFields(RecipientDsnFields&& value) { m_recipientDsnFieldsHasBeenSet = true; m_recipientDsnFields = value; }
208 
214  inline BouncedRecipientInfo& WithRecipientDsnFields(const RecipientDsnFields& value) { SetRecipientDsnFields(value); return *this;}
215 
221  inline BouncedRecipientInfo& WithRecipientDsnFields(RecipientDsnFields&& value) { SetRecipientDsnFields(value); return *this;}
222 
223  private:
224  Aws::String m_recipient;
225  bool m_recipientHasBeenSet;
226  Aws::String m_recipientArn;
227  bool m_recipientArnHasBeenSet;
228  BounceType m_bounceType;
229  bool m_bounceTypeHasBeenSet;
230  RecipientDsnFields m_recipientDsnFields;
231  bool m_recipientDsnFieldsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace SES
236 } // namespace Aws
void SetRecipientArn(const Aws::String &value)
BouncedRecipientInfo & WithRecipientArn(const char *value)
void SetRecipientDsnFields(RecipientDsnFields &&value)
const Aws::String & GetRecipient() const
BouncedRecipientInfo & WithRecipientDsnFields(const RecipientDsnFields &value)
const Aws::String & GetRecipientArn() const
void SetBounceType(const BounceType &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetRecipientDsnFields(const RecipientDsnFields &value)
const BounceType & GetBounceType() const
void SetRecipient(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BouncedRecipientInfo & WithRecipientArn(const Aws::String &value)
BouncedRecipientInfo & WithRecipientDsnFields(RecipientDsnFields &&value)
BouncedRecipientInfo & WithBounceType(const BounceType &value)
BouncedRecipientInfo & WithRecipient(Aws::String &&value)
BouncedRecipientInfo & WithRecipient(const char *value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
const RecipientDsnFields & GetRecipientDsnFields() const
BouncedRecipientInfo & WithBounceType(BounceType &&value)
BouncedRecipientInfo & WithRecipientArn(Aws::String &&value)
JSON (JavaScript Object Notation).
BouncedRecipientInfo & WithRecipient(const Aws::String &value)