AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
RollbackConfiguration.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/RollbackTrigger.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFormation {
21namespace Model {
22
37 public:
38 AWS_CLOUDFORMATION_API RollbackConfiguration() = default;
39 AWS_CLOUDFORMATION_API RollbackConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFORMATION_API RollbackConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
63 inline const Aws::Vector<RollbackTrigger>& GetRollbackTriggers() const { return m_rollbackTriggers; }
64 inline bool RollbackTriggersHasBeenSet() const { return m_rollbackTriggersHasBeenSet; }
65 template <typename RollbackTriggersT = Aws::Vector<RollbackTrigger>>
66 void SetRollbackTriggers(RollbackTriggersT&& value) {
67 m_rollbackTriggersHasBeenSet = true;
68 m_rollbackTriggers = std::forward<RollbackTriggersT>(value);
69 }
70 template <typename RollbackTriggersT = Aws::Vector<RollbackTrigger>>
71 RollbackConfiguration& WithRollbackTriggers(RollbackTriggersT&& value) {
72 SetRollbackTriggers(std::forward<RollbackTriggersT>(value));
73 return *this;
74 }
75 template <typename RollbackTriggersT = RollbackTrigger>
76 RollbackConfiguration& AddRollbackTriggers(RollbackTriggersT&& value) {
77 m_rollbackTriggersHasBeenSet = true;
78 m_rollbackTriggers.emplace_back(std::forward<RollbackTriggersT>(value));
79 return *this;
80 }
82
84
99 inline int GetMonitoringTimeInMinutes() const { return m_monitoringTimeInMinutes; }
100 inline bool MonitoringTimeInMinutesHasBeenSet() const { return m_monitoringTimeInMinutesHasBeenSet; }
101 inline void SetMonitoringTimeInMinutes(int value) {
102 m_monitoringTimeInMinutesHasBeenSet = true;
103 m_monitoringTimeInMinutes = value;
104 }
107 return *this;
108 }
110 private:
111 Aws::Vector<RollbackTrigger> m_rollbackTriggers;
112
113 int m_monitoringTimeInMinutes{0};
114 bool m_rollbackTriggersHasBeenSet = false;
115 bool m_monitoringTimeInMinutesHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace CloudFormation
120} // namespace Aws
const Aws::Vector< RollbackTrigger > & GetRollbackTriggers() const
RollbackConfiguration & AddRollbackTriggers(RollbackTriggersT &&value)
RollbackConfiguration & WithRollbackTriggers(RollbackTriggersT &&value)
RollbackConfiguration & WithMonitoringTimeInMinutes(int value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API RollbackConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API RollbackConfiguration()=default
AWS_CLOUDFORMATION_API RollbackConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector