AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/TargetStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codedeploy/model/TargetLabel.h>
13#include <aws/codedeploy/model/LifecycleEvent.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeDeploy
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODEDEPLOY_API InstanceTarget();
41 AWS_CODEDEPLOY_API InstanceTarget(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API InstanceTarget& operator=(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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
53 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
54 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
55 inline InstanceTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
56 inline InstanceTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
57 inline InstanceTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
59
61
65 inline const Aws::String& GetTargetId() const{ return m_targetId; }
66 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
68 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
69 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
70 inline InstanceTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
71 inline InstanceTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
72 inline InstanceTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
74
76
79 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
80 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
81 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
82 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
83 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
84 inline InstanceTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
85 inline InstanceTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
86 inline InstanceTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
88
90
93 inline const TargetStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline InstanceTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
98 inline InstanceTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
106 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
107 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
108 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
109 inline InstanceTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
110 inline InstanceTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
118 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
119 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
120 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
122 inline InstanceTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
123 inline InstanceTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
124 inline InstanceTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
126
128
132 inline const TargetLabel& GetInstanceLabel() const{ return m_instanceLabel; }
133 inline bool InstanceLabelHasBeenSet() const { return m_instanceLabelHasBeenSet; }
134 inline void SetInstanceLabel(const TargetLabel& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = value; }
135 inline void SetInstanceLabel(TargetLabel&& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = std::move(value); }
136 inline InstanceTarget& WithInstanceLabel(const TargetLabel& value) { SetInstanceLabel(value); return *this;}
137 inline InstanceTarget& WithInstanceLabel(TargetLabel&& value) { SetInstanceLabel(std::move(value)); return *this;}
139 private:
140
141 Aws::String m_deploymentId;
142 bool m_deploymentIdHasBeenSet = false;
143
144 Aws::String m_targetId;
145 bool m_targetIdHasBeenSet = false;
146
147 Aws::String m_targetArn;
148 bool m_targetArnHasBeenSet = false;
149
150 TargetStatus m_status;
151 bool m_statusHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastUpdatedAt;
154 bool m_lastUpdatedAtHasBeenSet = false;
155
156 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
157 bool m_lifecycleEventsHasBeenSet = false;
158
159 TargetLabel m_instanceLabel;
160 bool m_instanceLabelHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CodeDeploy
165} // namespace Aws
void SetTargetId(const Aws::String &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
void SetDeploymentId(const Aws::String &value)
void SetDeploymentId(const char *value)
InstanceTarget & WithTargetId(const char *value)
void SetInstanceLabel(TargetLabel &&value)
const TargetStatus & GetStatus() const
AWS_CODEDEPLOY_API InstanceTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(Aws::String &&value)
InstanceTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
InstanceTarget & AddLifecycleEvents(const LifecycleEvent &value)
InstanceTarget & WithTargetArn(const char *value)
const Aws::String & GetTargetId() const
InstanceTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
AWS_CODEDEPLOY_API InstanceTarget(Aws::Utils::Json::JsonView jsonValue)
InstanceTarget & WithDeploymentId(const Aws::String &value)
const TargetLabel & GetInstanceLabel() const
InstanceTarget & WithTargetId(const Aws::String &value)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
InstanceTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
InstanceTarget & WithInstanceLabel(TargetLabel &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
InstanceTarget & WithStatus(TargetStatus &&value)
InstanceTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
InstanceTarget & WithTargetArn(const Aws::String &value)
InstanceTarget & WithTargetArn(Aws::String &&value)
void SetStatus(TargetStatus &&value)
InstanceTarget & WithInstanceLabel(const TargetLabel &value)
InstanceTarget & WithDeploymentId(const char *value)
const Aws::String & GetDeploymentId() const
void SetTargetArn(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceTarget & WithStatus(const TargetStatus &value)
void SetStatus(const TargetStatus &value)
void SetTargetArn(const Aws::String &value)
InstanceTarget & AddLifecycleEvents(LifecycleEvent &&value)
InstanceTarget & WithDeploymentId(Aws::String &&value)
void SetDeploymentId(Aws::String &&value)
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetInstanceLabel(const TargetLabel &value)
const Aws::String & GetTargetArn() const
InstanceTarget & WithTargetId(Aws::String &&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