AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentLifecycleHook.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/DeploymentLifecycleHookStage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_ECS_API DeploymentLifecycleHook() = default;
45
46
48
53 inline const Aws::String& GetHookTargetArn() const { return m_hookTargetArn; }
54 inline bool HookTargetArnHasBeenSet() const { return m_hookTargetArnHasBeenSet; }
55 template<typename HookTargetArnT = Aws::String>
56 void SetHookTargetArn(HookTargetArnT&& value) { m_hookTargetArnHasBeenSet = true; m_hookTargetArn = std::forward<HookTargetArnT>(value); }
57 template<typename HookTargetArnT = Aws::String>
58 DeploymentLifecycleHook& WithHookTargetArn(HookTargetArnT&& value) { SetHookTargetArn(std::forward<HookTargetArnT>(value)); return *this;}
60
62
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 DeploymentLifecycleHook& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
105 inline const Aws::Vector<DeploymentLifecycleHookStage>& GetLifecycleStages() const { return m_lifecycleStages; }
106 inline bool LifecycleStagesHasBeenSet() const { return m_lifecycleStagesHasBeenSet; }
107 template<typename LifecycleStagesT = Aws::Vector<DeploymentLifecycleHookStage>>
108 void SetLifecycleStages(LifecycleStagesT&& value) { m_lifecycleStagesHasBeenSet = true; m_lifecycleStages = std::forward<LifecycleStagesT>(value); }
109 template<typename LifecycleStagesT = Aws::Vector<DeploymentLifecycleHookStage>>
110 DeploymentLifecycleHook& WithLifecycleStages(LifecycleStagesT&& value) { SetLifecycleStages(std::forward<LifecycleStagesT>(value)); return *this;}
111 inline DeploymentLifecycleHook& AddLifecycleStages(DeploymentLifecycleHookStage value) { m_lifecycleStagesHasBeenSet = true; m_lifecycleStages.push_back(value); return *this; }
113 private:
114
115 Aws::String m_hookTargetArn;
116 bool m_hookTargetArnHasBeenSet = false;
117
118 Aws::String m_roleArn;
119 bool m_roleArnHasBeenSet = false;
120
122 bool m_lifecycleStagesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ECS
127} // namespace Aws
DeploymentLifecycleHook & WithRoleArn(RoleArnT &&value)
DeploymentLifecycleHook & WithLifecycleStages(LifecycleStagesT &&value)
AWS_ECS_API DeploymentLifecycleHook()=default
DeploymentLifecycleHook & WithHookTargetArn(HookTargetArnT &&value)
DeploymentLifecycleHook & AddLifecycleStages(DeploymentLifecycleHookStage 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