AWS SDK for C++  0.12.9
AWS SDK for C++
EventInfoMap.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Redshift
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  EventInfoMap();
42  EventInfoMap(const Aws::Utils::Xml::XmlNode& xmlNode);
43  EventInfoMap& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetEventId() const{ return m_eventId; }
52 
56  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
57 
61  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
62 
66  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
67 
71  inline EventInfoMap& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
72 
76  inline EventInfoMap& WithEventId(Aws::String&& value) { SetEventId(value); return *this;}
77 
81  inline EventInfoMap& WithEventId(const char* value) { SetEventId(value); return *this;}
82 
86  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
87 
91  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
92 
96  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
97 
101  inline EventInfoMap& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
102 
106  inline EventInfoMap& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(value); return *this;}
107 
111  inline EventInfoMap& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
112 
116  inline EventInfoMap& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
117 
121  inline EventInfoMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
122 
126  inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
127 
131  inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
132 
136  inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
137 
141  inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
142 
146  inline EventInfoMap& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
147 
151  inline EventInfoMap& WithEventDescription(Aws::String&& value) { SetEventDescription(value); return *this;}
152 
156  inline EventInfoMap& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
157 
161  inline const Aws::String& GetSeverity() const{ return m_severity; }
162 
166  inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
167 
171  inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = value; }
172 
176  inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
177 
181  inline EventInfoMap& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
182 
186  inline EventInfoMap& WithSeverity(Aws::String&& value) { SetSeverity(value); return *this;}
187 
191  inline EventInfoMap& WithSeverity(const char* value) { SetSeverity(value); return *this;}
192 
193  private:
194  Aws::String m_eventId;
195  bool m_eventIdHasBeenSet;
196  Aws::Vector<Aws::String> m_eventCategories;
197  bool m_eventCategoriesHasBeenSet;
198  Aws::String m_eventDescription;
199  bool m_eventDescriptionHasBeenSet;
200  Aws::String m_severity;
201  bool m_severityHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace Redshift
206 } // namespace Aws
const Aws::String & GetEventDescription() const
Definition: EventInfoMap.h:126
EventInfoMap & WithEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:151
void SetEventDescription(Aws::String &&value)
Definition: EventInfoMap.h:136
EventInfoMap & WithEventId(Aws::String &&value)
Definition: EventInfoMap.h:76
void SetEventId(const Aws::String &value)
Definition: EventInfoMap.h:56
EventInfoMap & WithEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:146
EventInfoMap & WithSeverity(const char *value)
Definition: EventInfoMap.h:191
EventInfoMap & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:101
void SetEventId(Aws::String &&value)
Definition: EventInfoMap.h:61
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
EventInfoMap & AddEventCategories(Aws::String &&value)
Definition: EventInfoMap.h:116
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:96
EventInfoMap & WithEventId(const char *value)
Definition: EventInfoMap.h:81
void SetSeverity(Aws::String &&value)
Definition: EventInfoMap.h:171
EventInfoMap & WithSeverity(const Aws::String &value)
Definition: EventInfoMap.h:181
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
EventInfoMap & AddEventCategories(const char *value)
Definition: EventInfoMap.h:121
EventInfoMap & AddEventCategories(const Aws::String &value)
Definition: EventInfoMap.h:111
EventInfoMap & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: EventInfoMap.h:106
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: EventInfoMap.h:91
void SetSeverity(const Aws::String &value)
Definition: EventInfoMap.h:166
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: EventInfoMap.h:86
EventInfoMap & WithEventId(const Aws::String &value)
Definition: EventInfoMap.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EventInfoMap & WithSeverity(Aws::String &&value)
Definition: EventInfoMap.h:186
const Aws::String & GetSeverity() const
Definition: EventInfoMap.h:161
void SetEventId(const char *value)
Definition: EventInfoMap.h:66
const Aws::String & GetEventId() const
Definition: EventInfoMap.h:51
EventInfoMap & WithEventDescription(const char *value)
Definition: EventInfoMap.h:156
void SetEventDescription(const Aws::String &value)
Definition: EventInfoMap.h:131
void SetSeverity(const char *value)
Definition: EventInfoMap.h:176
void SetEventDescription(const char *value)
Definition: EventInfoMap.h:141
JSON (JavaScript Object Notation).