AWS SDK for C++  0.12.9
AWS SDK for C++
StopAction.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace SES
31 {
32 namespace Model
33 {
34 
44  {
45  public:
46  StopAction();
47  StopAction(const Aws::Utils::Xml::XmlNode& xmlNode);
48  StopAction& 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 
57  inline const StopScope& GetScope() const{ return m_scope; }
58 
63  inline void SetScope(const StopScope& value) { m_scopeHasBeenSet = true; m_scope = value; }
64 
69  inline void SetScope(StopScope&& value) { m_scopeHasBeenSet = true; m_scope = value; }
70 
75  inline StopAction& WithScope(const StopScope& value) { SetScope(value); return *this;}
76 
81  inline StopAction& WithScope(StopScope&& value) { SetScope(value); return *this;}
82 
91  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
92 
101  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
102 
111  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
112 
121  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
122 
131  inline StopAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
132 
141  inline StopAction& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
142 
151  inline StopAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
152 
153  private:
154  StopScope m_scope;
155  bool m_scopeHasBeenSet;
156  Aws::String m_topicArn;
157  bool m_topicArnHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SES
162 } // namespace Aws
StopAction & WithScope(StopScope &&value)
Definition: StopAction.h:81
void SetScope(const StopScope &value)
Definition: StopAction.h:63
const Aws::String & GetTopicArn() const
Definition: StopAction.h:91
StopAction & WithTopicArn(Aws::String &&value)
Definition: StopAction.h:141
StopAction & WithTopicArn(const Aws::String &value)
Definition: StopAction.h:131
void SetTopicArn(const char *value)
Definition: StopAction.h:121
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
StopAction & WithScope(const StopScope &value)
Definition: StopAction.h:75
StopAction & WithTopicArn(const char *value)
Definition: StopAction.h:151
void SetScope(StopScope &&value)
Definition: StopAction.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
void SetTopicArn(Aws::String &&value)
Definition: StopAction.h:111
const StopScope & GetScope() const
Definition: StopAction.h:57
void SetTopicArn(const Aws::String &value)
Definition: StopAction.h:101
JSON (JavaScript Object Notation).