AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloudFormationTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/TargetStatus.h>
12#include <aws/codedeploy/model/LifecycleEvent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeDeploy
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CODEDEPLOY_API CloudFormationTarget() = default;
41 AWS_CODEDEPLOY_API CloudFormationTarget(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
51 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
52 template<typename DeploymentIdT = Aws::String>
53 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
54 template<typename DeploymentIdT = Aws::String>
55 CloudFormationTarget& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetTargetId() const { return m_targetId; }
64 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
65 template<typename TargetIdT = Aws::String>
66 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
67 template<typename TargetIdT = Aws::String>
68 CloudFormationTarget& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
77 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
78 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
79 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
80 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
81 CloudFormationTarget& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
83
85
89 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
90 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
91 template<typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
92 void SetLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::forward<LifecycleEventsT>(value); }
93 template<typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
94 CloudFormationTarget& WithLifecycleEvents(LifecycleEventsT&& value) { SetLifecycleEvents(std::forward<LifecycleEventsT>(value)); return *this;}
95 template<typename LifecycleEventsT = LifecycleEvent>
96 CloudFormationTarget& AddLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value)); return *this; }
98
100
104 inline TargetStatus GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(TargetStatus value) { m_statusHasBeenSet = true; m_status = value; }
107 inline CloudFormationTarget& WithStatus(TargetStatus value) { SetStatus(value); return *this;}
109
111
114 inline const Aws::String& GetResourceType() const { return m_resourceType; }
115 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
116 template<typename ResourceTypeT = Aws::String>
117 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
118 template<typename ResourceTypeT = Aws::String>
119 CloudFormationTarget& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
121
123
127 inline double GetTargetVersionWeight() const { return m_targetVersionWeight; }
128 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
129 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
130 inline CloudFormationTarget& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
132 private:
133
134 Aws::String m_deploymentId;
135 bool m_deploymentIdHasBeenSet = false;
136
137 Aws::String m_targetId;
138 bool m_targetIdHasBeenSet = false;
139
140 Aws::Utils::DateTime m_lastUpdatedAt{};
141 bool m_lastUpdatedAtHasBeenSet = false;
142
143 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
144 bool m_lifecycleEventsHasBeenSet = false;
145
147 bool m_statusHasBeenSet = false;
148
149 Aws::String m_resourceType;
150 bool m_resourceTypeHasBeenSet = false;
151
152 double m_targetVersionWeight{0.0};
153 bool m_targetVersionWeightHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodeDeploy
158} // namespace Aws
CloudFormationTarget & AddLifecycleEvents(LifecycleEventsT &&value)
CloudFormationTarget & WithTargetId(TargetIdT &&value)
AWS_CODEDEPLOY_API CloudFormationTarget()=default
CloudFormationTarget & WithTargetVersionWeight(double value)
AWS_CODEDEPLOY_API CloudFormationTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
CloudFormationTarget & WithResourceType(ResourceTypeT &&value)
void SetLifecycleEvents(LifecycleEventsT &&value)
AWS_CODEDEPLOY_API CloudFormationTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
CloudFormationTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
CloudFormationTarget & WithStatus(TargetStatus value)
CloudFormationTarget & WithLifecycleEvents(LifecycleEventsT &&value)
CloudFormationTarget & WithDeploymentId(DeploymentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue