AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
104 inline DeploymentLifecycleHookStatus GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115
117
121 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
122 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
123 template <typename ExpiresAtT = Aws::Utils::DateTime>
124 void SetExpiresAt(ExpiresAtT&& value) {
125 m_expiresAtHasBeenSet = true;
126 m_expiresAt = std::forward<ExpiresAtT>(value);
127 }
128 template <typename ExpiresAtT = Aws::Utils::DateTime>
130 SetExpiresAt(std::forward<ExpiresAtT>(value));
131 return *this;
132 }
134
136
140 inline DeploymentLifecycleHookAction GetTimeoutAction() const { return m_timeoutAction; }
141 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
143 m_timeoutActionHasBeenSet = true;
144 m_timeoutAction = value;
145 }
147 SetTimeoutAction(value);
148 return *this;
149 }
151 private:
152 Aws::String m_hookId;
153
155
156 Aws::String m_targetArn;
157
159
160 Aws::Utils::DateTime m_expiresAt{};
161
163 bool m_hookIdHasBeenSet = false;
164 bool m_targetTypeHasBeenSet = false;
165 bool m_targetArnHasBeenSet = false;
166 bool m_statusHasBeenSet = false;
167 bool m_expiresAtHasBeenSet = false;
168 bool m_timeoutActionHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace ECS
173} // 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