AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceEventWindowStateChange.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/InstanceEventWindowState.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 InstanceEventWindowStateChange() = default;
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& GetInstanceEventWindowId() const { return m_instanceEventWindowId; }
48 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
49 template<typename InstanceEventWindowIdT = Aws::String>
50 void SetInstanceEventWindowId(InstanceEventWindowIdT&& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value); }
51 template<typename InstanceEventWindowIdT = Aws::String>
52 InstanceEventWindowStateChange& WithInstanceEventWindowId(InstanceEventWindowIdT&& value) { SetInstanceEventWindowId(std::forward<InstanceEventWindowIdT>(value)); return *this;}
54
56
59 inline InstanceEventWindowState GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 inline void SetState(InstanceEventWindowState value) { m_stateHasBeenSet = true; m_state = value; }
64 private:
65
66 Aws::String m_instanceEventWindowId;
67 bool m_instanceEventWindowIdHasBeenSet = false;
68
70 bool m_stateHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EC2
75} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceEventWindowStateChange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceEventWindowStateChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowStateChange & WithState(InstanceEventWindowState value)
void SetInstanceEventWindowId(InstanceEventWindowIdT &&value)
InstanceEventWindowStateChange & WithInstanceEventWindowId(InstanceEventWindowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream