AWS SDK for C++  0.12.9
AWS SDK for C++
InstanceStatusEvent.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>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  InstanceStatusEvent& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const EventCode& GetCode() const{ return m_code; }
53 
57  inline void SetCode(const EventCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(EventCode&& value) { m_codeHasBeenSet = true; m_code = value; }
63 
67  inline InstanceStatusEvent& WithCode(const EventCode& value) { SetCode(value); return *this;}
68 
72  inline InstanceStatusEvent& WithCode(EventCode&& value) { SetCode(value); return *this;}
73 
79  inline const Aws::String& GetDescription() const{ return m_description; }
80 
86  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 
93  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
100  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 
107  inline InstanceStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
114  inline InstanceStatusEvent& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
115 
121  inline InstanceStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
122 
126  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
127 
131  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
132 
136  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
137 
141  inline InstanceStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
142 
146  inline InstanceStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(value); return *this;}
147 
151  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
152 
156  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
157 
161  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
162 
166  inline InstanceStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
167 
171  inline InstanceStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(value); return *this;}
172 
173  private:
174  EventCode m_code;
175  bool m_codeHasBeenSet;
176  Aws::String m_description;
177  bool m_descriptionHasBeenSet;
178  Aws::Utils::DateTime m_notBefore;
179  bool m_notBeforeHasBeenSet;
180  Aws::Utils::DateTime m_notAfter;
181  bool m_notAfterHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace EC2
186 } // namespace Aws
void SetNotBefore(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
void SetNotAfter(const Aws::Utils::DateTime &value)
const EventCode & GetCode() const
const Aws::Utils::DateTime & GetNotAfter() const
InstanceStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
InstanceStatusEvent & WithCode(const EventCode &value)
InstanceStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
InstanceStatusEvent & WithCode(EventCode &&value)
InstanceStatusEvent & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
InstanceStatusEvent & WithDescription(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetNotBefore(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetCode(const EventCode &value)
InstanceStatusEvent & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNotAfter(Aws::Utils::DateTime &&value)
InstanceStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotBefore() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).
InstanceStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)