AWS SDK for C++  0.14.3
AWS SDK for C++
VolumeStatusEvent.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/ec2/EC2_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 EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  VolumeStatusEvent& 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& GetEventType() const{ return m_eventType; }
52 
56  inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
57 
61  inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
62 
66  inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
67 
71  inline VolumeStatusEvent& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
72 
76  inline VolumeStatusEvent& WithEventType(Aws::String&& value) { SetEventType(value); return *this;}
77 
81  inline VolumeStatusEvent& WithEventType(const char* value) { SetEventType(value); return *this;}
82 
86  inline const Aws::String& GetDescription() const{ return m_description; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline VolumeStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline VolumeStatusEvent& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
112 
116  inline VolumeStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
121  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
122 
126  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
127 
131  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
132 
136  inline VolumeStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
137 
141  inline VolumeStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(value); return *this;}
142 
146  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
147 
151  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
152 
156  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
157 
161  inline VolumeStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
162 
166  inline VolumeStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(value); return *this;}
167 
171  inline const Aws::String& GetEventId() const{ return m_eventId; }
172 
176  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
177 
181  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
182 
186  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
187 
191  inline VolumeStatusEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
192 
196  inline VolumeStatusEvent& WithEventId(Aws::String&& value) { SetEventId(value); return *this;}
197 
201  inline VolumeStatusEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
202 
203  private:
204  Aws::String m_eventType;
205  bool m_eventTypeHasBeenSet;
206  Aws::String m_description;
207  bool m_descriptionHasBeenSet;
208  Aws::Utils::DateTime m_notBefore;
209  bool m_notBeforeHasBeenSet;
210  Aws::Utils::DateTime m_notAfter;
211  bool m_notAfterHasBeenSet;
212  Aws::String m_eventId;
213  bool m_eventIdHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace EC2
218 } // namespace Aws
void SetNotBefore(Aws::Utils::DateTime &&value)
void SetEventId(const Aws::String &value)
VolumeStatusEvent & WithEventType(const Aws::String &value)
VolumeStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNotBefore() const
VolumeStatusEvent & WithEventId(const Aws::String &value)
VolumeStatusEvent & WithEventId(Aws::String &&value)
VolumeStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
const Aws::String & GetEventId() const
void SetNotAfter(const Aws::Utils::DateTime &value)
void SetNotBefore(const Aws::Utils::DateTime &value)
VolumeStatusEvent & WithDescription(const char *value)
VolumeStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNotAfter() const
void SetEventId(const char *value)
VolumeStatusEvent & WithDescription(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetEventId(Aws::String &&value)
void SetNotAfter(Aws::Utils::DateTime &&value)
const Aws::String & GetEventType() const
VolumeStatusEvent & WithEventType(Aws::String &&value)
void SetDescription(const char *value)
void SetEventType(const char *value)
void SetDescription(Aws::String &&value)
VolumeStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
void SetDescription(const Aws::String &value)
void SetEventType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VolumeStatusEvent & WithEventId(const char *value)
VolumeStatusEvent & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetEventType(const Aws::String &value)
VolumeStatusEvent & WithEventType(const char *value)
JSON (JavaScript Object Notation).