AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedAction.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/ActionType.h>
11#include <aws/elasticbeanstalk/model/ActionStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticBeanstalk
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICBEANSTALK_API ManagedAction() = default;
39 AWS_ELASTICBEANSTALK_API ManagedAction(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICBEANSTALK_API ManagedAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetActionId() const { return m_actionId; }
51 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
52 template<typename ActionIdT = Aws::String>
53 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
54 template<typename ActionIdT = Aws::String>
55 ManagedAction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetActionDescription() const { return m_actionDescription; }
63 inline bool ActionDescriptionHasBeenSet() const { return m_actionDescriptionHasBeenSet; }
64 template<typename ActionDescriptionT = Aws::String>
65 void SetActionDescription(ActionDescriptionT&& value) { m_actionDescriptionHasBeenSet = true; m_actionDescription = std::forward<ActionDescriptionT>(value); }
66 template<typename ActionDescriptionT = Aws::String>
67 ManagedAction& WithActionDescription(ActionDescriptionT&& value) { SetActionDescription(std::forward<ActionDescriptionT>(value)); return *this;}
69
71
74 inline ActionType GetActionType() const { return m_actionType; }
75 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
76 inline void SetActionType(ActionType value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
77 inline ManagedAction& WithActionType(ActionType value) { SetActionType(value); return *this;}
79
81
85 inline ActionStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(ActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline ManagedAction& WithStatus(ActionStatus value) { SetStatus(value); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetWindowStartTime() const { return m_windowStartTime; }
97 inline bool WindowStartTimeHasBeenSet() const { return m_windowStartTimeHasBeenSet; }
98 template<typename WindowStartTimeT = Aws::Utils::DateTime>
99 void SetWindowStartTime(WindowStartTimeT&& value) { m_windowStartTimeHasBeenSet = true; m_windowStartTime = std::forward<WindowStartTimeT>(value); }
100 template<typename WindowStartTimeT = Aws::Utils::DateTime>
101 ManagedAction& WithWindowStartTime(WindowStartTimeT&& value) { SetWindowStartTime(std::forward<WindowStartTimeT>(value)); return *this;}
103 private:
104
105 Aws::String m_actionId;
106 bool m_actionIdHasBeenSet = false;
107
108 Aws::String m_actionDescription;
109 bool m_actionDescriptionHasBeenSet = false;
110
111 ActionType m_actionType{ActionType::NOT_SET};
112 bool m_actionTypeHasBeenSet = false;
113
115 bool m_statusHasBeenSet = false;
116
117 Aws::Utils::DateTime m_windowStartTime{};
118 bool m_windowStartTimeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ElasticBeanstalk
123} // 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