AWS SDK for C++  0.14.3
AWS SDK for C++
WorkmailAction.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 
44  {
45  public:
48  WorkmailAction& 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 
61  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
62 
71  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
72 
81  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
82 
91  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
92 
101  inline WorkmailAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
102 
111  inline WorkmailAction& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
112 
121  inline WorkmailAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
122 
131  inline const Aws::String& GetOrganizationArn() const{ return m_organizationArn; }
132 
141  inline void SetOrganizationArn(const Aws::String& value) { m_organizationArnHasBeenSet = true; m_organizationArn = value; }
142 
151  inline void SetOrganizationArn(Aws::String&& value) { m_organizationArnHasBeenSet = true; m_organizationArn = value; }
152 
161  inline void SetOrganizationArn(const char* value) { m_organizationArnHasBeenSet = true; m_organizationArn.assign(value); }
162 
171  inline WorkmailAction& WithOrganizationArn(const Aws::String& value) { SetOrganizationArn(value); return *this;}
172 
181  inline WorkmailAction& WithOrganizationArn(Aws::String&& value) { SetOrganizationArn(value); return *this;}
182 
191  inline WorkmailAction& WithOrganizationArn(const char* value) { SetOrganizationArn(value); return *this;}
192 
193  private:
194  Aws::String m_topicArn;
195  bool m_topicArnHasBeenSet;
196  Aws::String m_organizationArn;
197  bool m_organizationArnHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace SES
202 } // namespace Aws
WorkmailAction & WithOrganizationArn(Aws::String &&value)
void SetTopicArn(const char *value)
void SetOrganizationArn(const char *value)
WorkmailAction & WithOrganizationArn(const Aws::String &value)
WorkmailAction & WithTopicArn(const Aws::String &value)
void SetOrganizationArn(const Aws::String &value)
void SetOrganizationArn(Aws::String &&value)
void SetTopicArn(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
WorkmailAction & WithTopicArn(Aws::String &&value)
const Aws::String & GetTopicArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
WorkmailAction & WithOrganizationArn(const char *value)
void SetTopicArn(Aws::String &&value)
WorkmailAction & WithTopicArn(const char *value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
const Aws::String & GetOrganizationArn() const
JSON (JavaScript Object Notation).