AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ManagedAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ActionStatus.h>
12#include <aws/elasticbeanstalk/model/ActionType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk {
23namespace Model {
24
32 public:
33 AWS_ELASTICBEANSTALK_API ManagedAction() = default;
34 AWS_ELASTICBEANSTALK_API ManagedAction(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICBEANSTALK_API ManagedAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
38 const char* locationValue) const;
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetActionId() const { return m_actionId; }
46 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
47 template <typename ActionIdT = Aws::String>
48 void SetActionId(ActionIdT&& value) {
49 m_actionIdHasBeenSet = true;
50 m_actionId = std::forward<ActionIdT>(value);
51 }
52 template <typename ActionIdT = Aws::String>
53 ManagedAction& WithActionId(ActionIdT&& value) {
54 SetActionId(std::forward<ActionIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetActionDescription() const { return m_actionDescription; }
64 inline bool ActionDescriptionHasBeenSet() const { return m_actionDescriptionHasBeenSet; }
65 template <typename ActionDescriptionT = Aws::String>
66 void SetActionDescription(ActionDescriptionT&& value) {
67 m_actionDescriptionHasBeenSet = true;
68 m_actionDescription = std::forward<ActionDescriptionT>(value);
69 }
70 template <typename ActionDescriptionT = Aws::String>
71 ManagedAction& WithActionDescription(ActionDescriptionT&& value) {
72 SetActionDescription(std::forward<ActionDescriptionT>(value));
73 return *this;
74 }
76
78
81 inline ActionType GetActionType() const { return m_actionType; }
82 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
83 inline void SetActionType(ActionType value) {
84 m_actionTypeHasBeenSet = true;
85 m_actionType = value;
86 }
88 SetActionType(value);
89 return *this;
90 }
92
94
98 inline ActionStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(ActionStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
115 inline const Aws::Utils::DateTime& GetWindowStartTime() const { return m_windowStartTime; }
116 inline bool WindowStartTimeHasBeenSet() const { return m_windowStartTimeHasBeenSet; }
117 template <typename WindowStartTimeT = Aws::Utils::DateTime>
118 void SetWindowStartTime(WindowStartTimeT&& value) {
119 m_windowStartTimeHasBeenSet = true;
120 m_windowStartTime = std::forward<WindowStartTimeT>(value);
121 }
122 template <typename WindowStartTimeT = Aws::Utils::DateTime>
123 ManagedAction& WithWindowStartTime(WindowStartTimeT&& value) {
124 SetWindowStartTime(std::forward<WindowStartTimeT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_actionId;
130
131 Aws::String m_actionDescription;
132
133 ActionType m_actionType{ActionType::NOT_SET};
134
136
137 Aws::Utils::DateTime m_windowStartTime{};
138 bool m_actionIdHasBeenSet = false;
139 bool m_actionDescriptionHasBeenSet = false;
140 bool m_actionTypeHasBeenSet = false;
141 bool m_statusHasBeenSet = false;
142 bool m_windowStartTimeHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace ElasticBeanstalk
147} // namespace Aws
const Aws::String & GetActionDescription() const
AWS_ELASTICBEANSTALK_API ManagedAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetActionId() const
ManagedAction & WithStatus(ActionStatus value)
ManagedAction & WithActionType(ActionType value)
void SetWindowStartTime(WindowStartTimeT &&value)
ManagedAction & WithActionDescription(ActionDescriptionT &&value)
ManagedAction & WithActionId(ActionIdT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API ManagedAction()=default
ManagedAction & WithWindowStartTime(WindowStartTimeT &&value)
const Aws::Utils::DateTime & GetWindowStartTime() const
void SetActionDescription(ActionDescriptionT &&value)
AWS_ELASTICBEANSTALK_API ManagedAction(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream