AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
DeploymentLifecycleHookDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/DeploymentLifecycleHookAction.h>
11#include <aws/ecs/model/DeploymentLifecycleHookStatus.h>
12#include <aws/ecs/model/DeploymentLifecycleHookTargetType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS {
24namespace Model {
25
35 public:
36 AWS_ECS_API DeploymentLifecycleHookDetail() = default;
40
42
47 inline const Aws::String& GetHookId() const { return m_hookId; }
48 inline bool HookIdHasBeenSet() const { return m_hookIdHasBeenSet; }
49 template <typename HookIdT = Aws::String>
50 void SetHookId(HookIdT&& value) {
51 m_hookIdHasBeenSet = true;
52 m_hookId = std::forward<HookIdT>(value);
53 }
54 template <typename HookIdT = Aws::String>
56 SetHookId(std::forward<HookIdT>(value));
57 return *this;
58 }
60
62
66 inline DeploymentLifecycleHookTargetType GetTargetType() const { return m_targetType; }
67 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
69 m_targetTypeHasBeenSet = true;
70 m_targetType = value;
71 }
73 SetTargetType(value);
74 return *this;
75 }
77
79
84 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
85 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
86 template <typename TargetArnT = Aws::String>
87 void SetTargetArn(TargetArnT&& value) {
88 m_targetArnHasBeenSet = true;
89 m_targetArn = std::forward<TargetArnT>(value);
90 }
91 template <typename TargetArnT = Aws::String>
93 SetTargetArn(std::forward<TargetArnT>(value));
94 return *this;
95 }
97
99
107 inline DeploymentLifecycleHookStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
124 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
125 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
126 template <typename ExpiresAtT = Aws::Utils::DateTime>
127 void SetExpiresAt(ExpiresAtT&& value) {
128 m_expiresAtHasBeenSet = true;
129 m_expiresAt = std::forward<ExpiresAtT>(value);
130 }
131 template <typename ExpiresAtT = Aws::Utils::DateTime>
133 SetExpiresAt(std::forward<ExpiresAtT>(value));
134 return *this;
135 }
137
139
143 inline DeploymentLifecycleHookAction GetTimeoutAction() const { return m_timeoutAction; }
144 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
146 m_timeoutActionHasBeenSet = true;
147 m_timeoutAction = value;
148 }
150 SetTimeoutAction(value);
151 return *this;
152 }
154 private:
155 Aws::String m_hookId;
156
158
159 Aws::String m_targetArn;
160
162
163 Aws::Utils::DateTime m_expiresAt{};
164
166 bool m_hookIdHasBeenSet = false;
167 bool m_targetTypeHasBeenSet = false;
168 bool m_targetArnHasBeenSet = false;
169 bool m_statusHasBeenSet = false;
170 bool m_expiresAtHasBeenSet = false;
171 bool m_timeoutActionHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace ECS
176} // namespace Aws
DeploymentLifecycleHookDetail & WithTimeoutAction(DeploymentLifecycleHookAction value)
DeploymentLifecycleHookDetail & WithStatus(DeploymentLifecycleHookStatus value)
void SetStatus(DeploymentLifecycleHookStatus value)
AWS_ECS_API DeploymentLifecycleHookDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentLifecycleHookTargetType GetTargetType() const
AWS_ECS_API DeploymentLifecycleHookDetail(Aws::Utils::Json::JsonView jsonValue)
void SetTargetType(DeploymentLifecycleHookTargetType value)
DeploymentLifecycleHookDetail & WithTargetType(DeploymentLifecycleHookTargetType value)
DeploymentLifecycleHookDetail & WithTargetArn(TargetArnT &&value)
void SetTimeoutAction(DeploymentLifecycleHookAction value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentLifecycleHookDetail & WithExpiresAt(ExpiresAtT &&value)
DeploymentLifecycleHookDetail & WithHookId(HookIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue