AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RollbackConfiguration.h
1
6#pragma once
7#include <aws/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/serverlessrepo/model/RollbackTrigger.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServerlessApplicationRepository
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration();
39 AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline int GetMonitoringTimeInMinutes() const{ return m_monitoringTimeInMinutes; }
53 inline bool MonitoringTimeInMinutesHasBeenSet() const { return m_monitoringTimeInMinutesHasBeenSet; }
54 inline void SetMonitoringTimeInMinutes(int value) { m_monitoringTimeInMinutesHasBeenSet = true; m_monitoringTimeInMinutes = value; }
57
59
66 inline const Aws::Vector<RollbackTrigger>& GetRollbackTriggers() const{ return m_rollbackTriggers; }
67 inline bool RollbackTriggersHasBeenSet() const { return m_rollbackTriggersHasBeenSet; }
68 inline void SetRollbackTriggers(const Aws::Vector<RollbackTrigger>& value) { m_rollbackTriggersHasBeenSet = true; m_rollbackTriggers = value; }
69 inline void SetRollbackTriggers(Aws::Vector<RollbackTrigger>&& value) { m_rollbackTriggersHasBeenSet = true; m_rollbackTriggers = std::move(value); }
72 inline RollbackConfiguration& AddRollbackTriggers(const RollbackTrigger& value) { m_rollbackTriggersHasBeenSet = true; m_rollbackTriggers.push_back(value); return *this; }
73 inline RollbackConfiguration& AddRollbackTriggers(RollbackTrigger&& value) { m_rollbackTriggersHasBeenSet = true; m_rollbackTriggers.push_back(std::move(value)); return *this; }
75 private:
76
77 int m_monitoringTimeInMinutes;
78 bool m_monitoringTimeInMinutesHasBeenSet = false;
79
80 Aws::Vector<RollbackTrigger> m_rollbackTriggers;
81 bool m_rollbackTriggersHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ServerlessApplicationRepository
86} // namespace Aws
RollbackConfiguration & WithRollbackTriggers(Aws::Vector< RollbackTrigger > &&value)
RollbackConfiguration & AddRollbackTriggers(RollbackTrigger &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration(Aws::Utils::Json::JsonView jsonValue)
RollbackConfiguration & AddRollbackTriggers(const RollbackTrigger &value)
void SetRollbackTriggers(const Aws::Vector< RollbackTrigger > &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RollbackTrigger > & GetRollbackTriggers() const
RollbackConfiguration & WithRollbackTriggers(const Aws::Vector< RollbackTrigger > &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API RollbackConfiguration()
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue