AWS SDK for C++  0.12.9
AWS SDK for C++
SpotInstanceStatus.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  SpotInstanceStatus& 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 
53  inline const Aws::String& GetCode() const{ return m_code; }
54 
60  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
61 
67  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
68 
74  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
75 
81  inline SpotInstanceStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
82 
88  inline SpotInstanceStatus& WithCode(Aws::String&& value) { SetCode(value); return *this;}
89 
95  inline SpotInstanceStatus& WithCode(const char* value) { SetCode(value); return *this;}
96 
101  inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
102 
107  inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
108 
113  inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
114 
119  inline SpotInstanceStatus& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
120 
125  inline SpotInstanceStatus& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(value); return *this;}
126 
130  inline const Aws::String& GetMessage() const{ return m_message; }
131 
135  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
136 
140  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
141 
145  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
146 
150  inline SpotInstanceStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
151 
155  inline SpotInstanceStatus& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
156 
160  inline SpotInstanceStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
161 
162  private:
163  Aws::String m_code;
164  bool m_codeHasBeenSet;
165  Aws::Utils::DateTime m_updateTime;
166  bool m_updateTimeHasBeenSet;
167  Aws::String m_message;
168  bool m_messageHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace EC2
173 } // namespace Aws
const Aws::String & GetMessage() const
void SetMessage(Aws::String &&value)
void SetUpdateTime(Aws::Utils::DateTime &&value)
void SetCode(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdateTime() const
SpotInstanceStatus & WithMessage(const char *value)
void SetCode(Aws::String &&value)
SpotInstanceStatus & WithMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
SpotInstanceStatus & WithUpdateTime(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SpotInstanceStatus & WithCode(const Aws::String &value)
const Aws::String & GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SpotInstanceStatus & WithMessage(const Aws::String &value)
SpotInstanceStatus & WithCode(Aws::String &&value)
SpotInstanceStatus & WithCode(const char *value)
SpotInstanceStatus & WithUpdateTime(Aws::Utils::DateTime &&value)
void SetUpdateTime(const Aws::Utils::DateTime &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).