AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStatusDetails.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ec2/model/StatusName.h>
11#include <aws/ec2/model/StatusType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API InstanceStatusDetails();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::Utils::DateTime& GetImpairedSince() const{ return m_impairedSince; }
50 inline bool ImpairedSinceHasBeenSet() const { return m_impairedSinceHasBeenSet; }
51 inline void SetImpairedSince(const Aws::Utils::DateTime& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = value; }
52 inline void SetImpairedSince(Aws::Utils::DateTime&& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = std::move(value); }
54 inline InstanceStatusDetails& WithImpairedSince(Aws::Utils::DateTime&& value) { SetImpairedSince(std::move(value)); return *this;}
56
58
61 inline const StatusName& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const StatusName& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(StatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline InstanceStatusDetails& WithName(const StatusName& value) { SetName(value); return *this;}
66 inline InstanceStatusDetails& WithName(StatusName&& value) { SetName(std::move(value)); return *this;}
68
70
73 inline const StatusType& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline InstanceStatusDetails& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
78 inline InstanceStatusDetails& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
80 private:
81
82 Aws::Utils::DateTime m_impairedSince;
83 bool m_impairedSinceHasBeenSet = false;
84
85 StatusName m_name;
86 bool m_nameHasBeenSet = false;
87
88 StatusType m_status;
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStatusDetails & WithName(const StatusName &value)
void SetImpairedSince(Aws::Utils::DateTime &&value)
InstanceStatusDetails & WithName(StatusName &&value)
void SetImpairedSince(const Aws::Utils::DateTime &value)
AWS_EC2_API InstanceStatusDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(const StatusType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceStatusDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStatusDetails & WithStatus(StatusType &&value)
InstanceStatusDetails & WithStatus(const StatusType &value)
InstanceStatusDetails & WithImpairedSince(Aws::Utils::DateTime &&value)
InstanceStatusDetails & WithImpairedSince(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetImpairedSince() const
std::basic_ostream< char, std::char_traits< char > > OStream