AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DeploymentLifecycleHook.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/DeploymentLifecycleHookStage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS {
23namespace Model {
24
36 public:
37 AWS_ECS_API DeploymentLifecycleHook() = default;
41
43
48 inline const Aws::String& GetHookTargetArn() const { return m_hookTargetArn; }
49 inline bool HookTargetArnHasBeenSet() const { return m_hookTargetArnHasBeenSet; }
50 template <typename HookTargetArnT = Aws::String>
51 void SetHookTargetArn(HookTargetArnT&& value) {
52 m_hookTargetArnHasBeenSet = true;
53 m_hookTargetArn = std::forward<HookTargetArnT>(value);
54 }
55 template <typename HookTargetArnT = Aws::String>
56 DeploymentLifecycleHook& WithHookTargetArn(HookTargetArnT&& value) {
57 SetHookTargetArn(std::forward<HookTargetArnT>(value));
58 return *this;
59 }
61
63
71 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
72 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
73 template <typename RoleArnT = Aws::String>
74 void SetRoleArn(RoleArnT&& value) {
75 m_roleArnHasBeenSet = true;
76 m_roleArn = std::forward<RoleArnT>(value);
77 }
78 template <typename RoleArnT = Aws::String>
80 SetRoleArn(std::forward<RoleArnT>(value));
81 return *this;
82 }
84
86
112 inline const Aws::Vector<DeploymentLifecycleHookStage>& GetLifecycleStages() const { return m_lifecycleStages; }
113 inline bool LifecycleStagesHasBeenSet() const { return m_lifecycleStagesHasBeenSet; }
114 template <typename LifecycleStagesT = Aws::Vector<DeploymentLifecycleHookStage>>
115 void SetLifecycleStages(LifecycleStagesT&& value) {
116 m_lifecycleStagesHasBeenSet = true;
117 m_lifecycleStages = std::forward<LifecycleStagesT>(value);
118 }
119 template <typename LifecycleStagesT = Aws::Vector<DeploymentLifecycleHookStage>>
120 DeploymentLifecycleHook& WithLifecycleStages(LifecycleStagesT&& value) {
121 SetLifecycleStages(std::forward<LifecycleStagesT>(value));
122 return *this;
123 }
125 m_lifecycleStagesHasBeenSet = true;
126 m_lifecycleStages.push_back(value);
127 return *this;
128 }
130
132
136 inline Aws::Utils::DocumentView GetHookDetails() const { return m_hookDetails; }
137 inline bool HookDetailsHasBeenSet() const { return m_hookDetailsHasBeenSet; }
138 template <typename HookDetailsT = Aws::Utils::Document>
139 void SetHookDetails(HookDetailsT&& value) {
140 m_hookDetailsHasBeenSet = true;
141 m_hookDetails = std::forward<HookDetailsT>(value);
142 }
143 template <typename HookDetailsT = Aws::Utils::Document>
145 SetHookDetails(std::forward<HookDetailsT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_hookTargetArn;
151
152 Aws::String m_roleArn;
153
155
156 Aws::Utils::Document m_hookDetails;
157 bool m_hookTargetArnHasBeenSet = false;
158 bool m_roleArnHasBeenSet = false;
159 bool m_lifecycleStagesHasBeenSet = false;
160 bool m_hookDetailsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace ECS
165} // namespace Aws
DeploymentLifecycleHook & WithRoleArn(RoleArnT &&value)
Aws::Utils::DocumentView GetHookDetails() const
DeploymentLifecycleHook & WithLifecycleStages(LifecycleStagesT &&value)
AWS_ECS_API DeploymentLifecycleHook()=default
DeploymentLifecycleHook & WithHookTargetArn(HookTargetArnT &&value)
DeploymentLifecycleHook & AddLifecycleStages(DeploymentLifecycleHookStage value)
DeploymentLifecycleHook & WithHookDetails(HookDetailsT &&value)
AWS_ECS_API DeploymentLifecycleHook & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleStages(LifecycleStagesT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API DeploymentLifecycleHook(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DeploymentLifecycleHookStage > & GetLifecycleStages() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue