AWS SDK for C++  0.14.3
AWS SDK for C++
QueueConfigurationDeprecated.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  QueueConfigurationDeprecated& 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 QueueConfigurationDeprecated& WithId(const Aws::String& value) { SetId(value); return *this;}
58 
59 
60  inline QueueConfigurationDeprecated& WithId(Aws::String&& value) { SetId(value); return *this;}
61 
62 
63  inline QueueConfigurationDeprecated& 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 QueueConfigurationDeprecated& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
76 
77 
78  inline QueueConfigurationDeprecated& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
79 
80 
81  inline QueueConfigurationDeprecated& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
82 
83 
84  inline QueueConfigurationDeprecated& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
85 
86 
87  inline const Aws::String& GetQueue() const{ return m_queue; }
88 
89 
90  inline void SetQueue(const Aws::String& value) { m_queueHasBeenSet = true; m_queue = value; }
91 
92 
93  inline void SetQueue(Aws::String&& value) { m_queueHasBeenSet = true; m_queue = value; }
94 
95 
96  inline void SetQueue(const char* value) { m_queueHasBeenSet = true; m_queue.assign(value); }
97 
98 
99  inline QueueConfigurationDeprecated& WithQueue(const Aws::String& value) { SetQueue(value); return *this;}
100 
101 
102  inline QueueConfigurationDeprecated& WithQueue(Aws::String&& value) { SetQueue(value); return *this;}
103 
104 
105  inline QueueConfigurationDeprecated& WithQueue(const char* value) { SetQueue(value); return *this;}
106 
107  private:
108  Aws::String m_id;
109  bool m_idHasBeenSet;
110  Aws::Vector<Event> m_events;
111  bool m_eventsHasBeenSet;
112  Aws::String m_queue;
113  bool m_queueHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace S3
118 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
QueueConfigurationDeprecated & WithId(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
QueueConfigurationDeprecated & AddEvents(const Event &value)
QueueConfigurationDeprecated & AddEvents(Event &&value)
QueueConfigurationDeprecated & WithId(Aws::String &&value)
QueueConfigurationDeprecated & WithEvents(Aws::Vector< Event > &&value)
void SetEvents(const Aws::Vector< Event > &value)
QueueConfigurationDeprecated & WithEvents(const Aws::Vector< Event > &value)
QueueConfigurationDeprecated & WithQueue(const char *value)
QueueConfigurationDeprecated & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
QueueConfigurationDeprecated & WithQueue(const Aws::String &value)
const Aws::Vector< Event > & GetEvents() const
QueueConfigurationDeprecated & WithQueue(Aws::String &&value)
JSON (JavaScript Object Notation).