AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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