AWS SDK for C++  1.9.107
AWS SDK for C++
InstanceStatusDetails.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::Utils::DateTime& GetImpairedSince() const{ return m_impairedSince; }
49 
54  inline bool ImpairedSinceHasBeenSet() const { return m_impairedSinceHasBeenSet; }
55 
60  inline void SetImpairedSince(const Aws::Utils::DateTime& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = value; }
61 
66  inline void SetImpairedSince(Aws::Utils::DateTime&& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = std::move(value); }
67 
72  inline InstanceStatusDetails& WithImpairedSince(const Aws::Utils::DateTime& value) { SetImpairedSince(value); return *this;}
73 
78  inline InstanceStatusDetails& WithImpairedSince(Aws::Utils::DateTime&& value) { SetImpairedSince(std::move(value)); return *this;}
79 
80 
84  inline const StatusName& GetName() const{ return m_name; }
85 
89  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 
94  inline void SetName(const StatusName& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(StatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
104  inline InstanceStatusDetails& WithName(const StatusName& value) { SetName(value); return *this;}
105 
109  inline InstanceStatusDetails& WithName(StatusName&& value) { SetName(std::move(value)); return *this;}
110 
111 
115  inline const StatusType& GetStatus() const{ return m_status; }
116 
120  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 
125  inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
126 
130  inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
131 
135  inline InstanceStatusDetails& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
136 
140  inline InstanceStatusDetails& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
141 
142  private:
143 
144  Aws::Utils::DateTime m_impairedSince;
145  bool m_impairedSinceHasBeenSet;
146 
147  StatusName m_name;
148  bool m_nameHasBeenSet;
149 
150  StatusType m_status;
151  bool m_statusHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace EC2
156 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::InstanceStatusDetails::WithName
InstanceStatusDetails & WithName(const StatusName &value)
Definition: InstanceStatusDetails.h:104
Aws::EC2::Model::InstanceStatusDetails::SetImpairedSince
void SetImpairedSince(const Aws::Utils::DateTime &value)
Definition: InstanceStatusDetails.h:60
Aws::EC2::Model::InstanceStatusDetails::GetStatus
const StatusType & GetStatus() const
Definition: InstanceStatusDetails.h:115
Aws::EC2::Model::StatusName
StatusName
Definition: StatusName.h:17
Aws::EC2::Model::InstanceStatusDetails::SetImpairedSince
void SetImpairedSince(Aws::Utils::DateTime &&value)
Definition: InstanceStatusDetails.h:66
StatusType.h
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceStatusDetails::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: InstanceStatusDetails.h:120
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceStatusDetails::InstanceStatusDetails
InstanceStatusDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceStatusDetails::GetName
const StatusName & GetName() const
Definition: InstanceStatusDetails.h:84
Aws::EC2::Model::InstanceStatusDetails::WithName
InstanceStatusDetails & WithName(StatusName &&value)
Definition: InstanceStatusDetails.h:109
StatusName.h
Aws::EC2::Model::InstanceStatusDetails::SetName
void SetName(StatusName &&value)
Definition: InstanceStatusDetails.h:99
Aws::EC2::Model::InstanceStatusDetails::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceStatusDetails.h:89
Aws::EC2::Model::InstanceStatusDetails::WithImpairedSince
InstanceStatusDetails & WithImpairedSince(const Aws::Utils::DateTime &value)
Definition: InstanceStatusDetails.h:72
Aws::EC2::Model::InstanceStatusDetails::WithStatus
InstanceStatusDetails & WithStatus(StatusType &&value)
Definition: InstanceStatusDetails.h:140
Aws::EC2::Model::InstanceStatusDetails::operator=
InstanceStatusDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceStatusDetails::SetStatus
void SetStatus(const StatusType &value)
Definition: InstanceStatusDetails.h:125
Aws::EC2::Model::InstanceStatusDetails
Definition: InstanceStatusDetails.h:34
Aws::EC2::Model::InstanceStatusDetails::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceStatusDetails::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceStatusDetails::WithStatus
InstanceStatusDetails & WithStatus(const StatusType &value)
Definition: InstanceStatusDetails.h:135
Aws::EC2::Model::InstanceStatusDetails::InstanceStatusDetails
InstanceStatusDetails()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StatusType
StatusType
Definition: StatusType.h:17
Aws::EC2::Model::InstanceStatusDetails::GetImpairedSince
const Aws::Utils::DateTime & GetImpairedSince() const
Definition: InstanceStatusDetails.h:48
Aws::EC2::Model::InstanceStatusDetails::WithImpairedSince
InstanceStatusDetails & WithImpairedSince(Aws::Utils::DateTime &&value)
Definition: InstanceStatusDetails.h:78
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceStatusDetails::SetName
void SetName(const StatusName &value)
Definition: InstanceStatusDetails.h:94
Aws::EC2::Model::InstanceStatusDetails::SetStatus
void SetStatus(StatusType &&value)
Definition: InstanceStatusDetails.h:130
EC2_EXPORTS.h
Aws::EC2::Model::InstanceStatusDetails::ImpairedSinceHasBeenSet
bool ImpairedSinceHasBeenSet() const
Definition: InstanceStatusDetails.h:54