AWS SDK for C++  0.12.9
AWS SDK for C++
TopicConfiguration.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>
20 #include <aws/s3/model/Event.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 S3
32 {
33 namespace Model
34 {
35 
41  {
42  public:
45  TopicConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48 
49 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
52 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
55 
56  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
57 
58 
59  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
60 
61 
62  inline TopicConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
63 
64 
65  inline TopicConfiguration& WithId(Aws::String&& value) { SetId(value); return *this;}
66 
67 
68  inline TopicConfiguration& WithId(const char* value) { SetId(value); return *this;}
69 
74  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
75 
80  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
81 
86  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
87 
92  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
93 
98  inline TopicConfiguration& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
99 
104  inline TopicConfiguration& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
105 
110  inline TopicConfiguration& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
111 
112 
113  inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
114 
115 
116  inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
117 
118 
119  inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = value; }
120 
121 
122  inline TopicConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
123 
124 
125  inline TopicConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
126 
127 
128  inline TopicConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
129 
130 
131  inline TopicConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
132 
133 
134  inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
135 
136 
137  inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
138 
139 
140  inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = value; }
141 
142 
143  inline TopicConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;}
144 
145 
146  inline TopicConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(value); return *this;}
147 
148  private:
149  Aws::String m_id;
150  bool m_idHasBeenSet;
151  Aws::String m_topicArn;
152  bool m_topicArnHasBeenSet;
153  Aws::Vector<Event> m_events;
154  bool m_eventsHasBeenSet;
156  bool m_filterHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace S3
161 } // namespace Aws
TopicConfiguration & WithTopicArn(const Aws::String &value)
void SetId(const Aws::String &value)
TopicConfiguration & AddEvents(Event &&value)
TopicConfiguration & AddEvents(const Event &value)
TopicConfiguration & WithId(const char *value)
TopicConfiguration & WithFilter(const NotificationConfigurationFilter &value)
TopicConfiguration & WithEvents(const Aws::Vector< Event > &value)
void SetId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
TopicConfiguration & WithTopicArn(Aws::String &&value)
TopicConfiguration & WithId(const Aws::String &value)
void SetFilter(const NotificationConfigurationFilter &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetFilter(NotificationConfigurationFilter &&value)
TopicConfiguration & WithFilter(NotificationConfigurationFilter &&value)
const Aws::String & GetTopicArn() const
void SetEvents(Aws::Vector< Event > &&value)
const NotificationConfigurationFilter & GetFilter() const
void SetTopicArn(Aws::String &&value)
TopicConfiguration & WithTopicArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetId() const
void SetEvents(const Aws::Vector< Event > &value)
void SetTopicArn(const char *value)
TopicConfiguration & WithId(Aws::String &&value)
const Aws::Vector< Event > & GetEvents() const
void SetTopicArn(const Aws::String &value)
TopicConfiguration & WithEvents(Aws::Vector< Event > &&value)
JSON (JavaScript Object Notation).