AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/InstanceStateName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API InstanceState() = default;
30 AWS_EC2_API InstanceState(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API InstanceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
52 inline int GetCode() const { return m_code; }
53 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
54 inline void SetCode(int value) {
55 m_codeHasBeenSet = true;
56 m_code = value;
57 }
58 inline InstanceState& WithCode(int value) {
59 SetCode(value);
60 return *this;
61 }
63
65
68 inline InstanceStateName GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(InstanceStateName value) {
71 m_nameHasBeenSet = true;
72 m_name = value;
73 }
75 SetName(value);
76 return *this;
77 }
79 private:
80 int m_code{0};
81
83 bool m_codeHasBeenSet = false;
84 bool m_nameHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceState()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceState & WithName(InstanceStateName value)
InstanceStateName GetName() const
InstanceState & WithCode(int value)
AWS_EC2_API InstanceState(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(InstanceStateName value)
AWS_EC2_API InstanceState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream