AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStateChange.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/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API InstanceStateChange();
36 AWS_EC2_API InstanceStateChange(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline InstanceStateChange& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline InstanceStateChange& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline InstanceStateChange& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const InstanceState& GetCurrentState() const{ return m_currentState; }
62 inline bool CurrentStateHasBeenSet() const { return m_currentStateHasBeenSet; }
63 inline void SetCurrentState(const InstanceState& value) { m_currentStateHasBeenSet = true; m_currentState = value; }
64 inline void SetCurrentState(InstanceState&& value) { m_currentStateHasBeenSet = true; m_currentState = std::move(value); }
65 inline InstanceStateChange& WithCurrentState(const InstanceState& value) { SetCurrentState(value); return *this;}
66 inline InstanceStateChange& WithCurrentState(InstanceState&& value) { SetCurrentState(std::move(value)); return *this;}
68
70
73 inline const InstanceState& GetPreviousState() const{ return m_previousState; }
74 inline bool PreviousStateHasBeenSet() const { return m_previousStateHasBeenSet; }
75 inline void SetPreviousState(const InstanceState& value) { m_previousStateHasBeenSet = true; m_previousState = value; }
76 inline void SetPreviousState(InstanceState&& value) { m_previousStateHasBeenSet = true; m_previousState = std::move(value); }
77 inline InstanceStateChange& WithPreviousState(const InstanceState& value) { SetPreviousState(value); return *this;}
78 inline InstanceStateChange& WithPreviousState(InstanceState&& value) { SetPreviousState(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_instanceId;
83 bool m_instanceIdHasBeenSet = false;
84
85 InstanceState m_currentState;
86 bool m_currentStateHasBeenSet = false;
87
88 InstanceState m_previousState;
89 bool m_previousStateHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
void SetInstanceId(const Aws::String &value)
InstanceStateChange & WithPreviousState(const InstanceState &value)
void SetPreviousState(InstanceState &&value)
void SetInstanceId(Aws::String &&value)
AWS_EC2_API InstanceStateChange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceStateChange & WithInstanceId(const char *value)
InstanceStateChange & WithCurrentState(InstanceState &&value)
AWS_EC2_API InstanceStateChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const InstanceState & GetPreviousState() const
void SetCurrentState(InstanceState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStateChange & WithInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
const InstanceState & GetCurrentState() const
void SetPreviousState(const InstanceState &value)
InstanceStateChange & WithPreviousState(InstanceState &&value)
void SetCurrentState(const InstanceState &value)
InstanceStateChange & WithCurrentState(const InstanceState &value)
InstanceStateChange & WithInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream