AWS SDK for C++  0.12.9
AWS SDK for C++
TopicConfigurationDeprecated.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/s3/S3_EXPORTS.h>
19 #include <aws/s3/model/Event.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 S3
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  TopicConfigurationDeprecated& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
47 
48  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 
50 
51  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
52 
53 
54  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 
56 
57  inline TopicConfigurationDeprecated& WithId(const Aws::String& value) { SetId(value); return *this;}
58 
59 
60  inline TopicConfigurationDeprecated& WithId(Aws::String&& value) { SetId(value); return *this;}
61 
62 
63  inline TopicConfigurationDeprecated& WithId(const char* value) { SetId(value); return *this;}
64 
65 
66  inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
67 
68 
69  inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
70 
71 
72  inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = value; }
73 
74 
75  inline TopicConfigurationDeprecated& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
76 
77 
78  inline TopicConfigurationDeprecated& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
79 
80 
81  inline TopicConfigurationDeprecated& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
82 
83 
84  inline TopicConfigurationDeprecated& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
85 
90  inline const Aws::String& GetTopic() const{ return m_topic; }
91 
96  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
97 
102  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = value; }
103 
108  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
109 
114  inline TopicConfigurationDeprecated& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
115 
120  inline TopicConfigurationDeprecated& WithTopic(Aws::String&& value) { SetTopic(value); return *this;}
121 
126  inline TopicConfigurationDeprecated& WithTopic(const char* value) { SetTopic(value); return *this;}
127 
128  private:
129  Aws::String m_id;
130  bool m_idHasBeenSet;
131  Aws::Vector<Event> m_events;
132  bool m_eventsHasBeenSet;
133  Aws::String m_topic;
134  bool m_topicHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace S3
139 } // namespace Aws
TopicConfigurationDeprecated & AddEvents(Event &&value)
void SetEvents(const Aws::Vector< Event > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
TopicConfigurationDeprecated & WithId(const char *value)
TopicConfigurationDeprecated & WithTopic(Aws::String &&value)
TopicConfigurationDeprecated & WithEvents(Aws::Vector< Event > &&value)
TopicConfigurationDeprecated & AddEvents(const Event &value)
TopicConfigurationDeprecated & WithEvents(const Aws::Vector< Event > &value)
TopicConfigurationDeprecated & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Event > & GetEvents() const
TopicConfigurationDeprecated & WithTopic(const char *value)
JSON (JavaScript Object Notation).
TopicConfigurationDeprecated & WithTopic(const Aws::String &value)
TopicConfigurationDeprecated & WithId(Aws::String &&value)