AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSummary.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/InstanceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codedeploy/model/InstanceType.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
37 {
38 public:
39 AWS_CODEDEPLOY_API InstanceSummary();
40 AWS_CODEDEPLOY_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
50 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
51 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
52 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
53 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
54 inline InstanceSummary& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
55 inline InstanceSummary& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
56 inline InstanceSummary& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
58
60
63 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
64 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
65 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
66 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
67 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
68 inline InstanceSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
69 inline InstanceSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
70 inline InstanceSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
72
74
85 inline const InstanceStatus& GetStatus() const{ return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
88 inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
89 inline InstanceSummary& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
90 inline InstanceSummary& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
99 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
100 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
101 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
102 inline InstanceSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
103 inline InstanceSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
105
107
110 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
111 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
112 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
113 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
115 inline InstanceSummary& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
116 inline InstanceSummary& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
117 inline InstanceSummary& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
119
121
127 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
128 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
129 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
130 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
131 inline InstanceSummary& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
132 inline InstanceSummary& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
134 private:
135
136 Aws::String m_deploymentId;
137 bool m_deploymentIdHasBeenSet = false;
138
139 Aws::String m_instanceId;
140 bool m_instanceIdHasBeenSet = false;
141
142 InstanceStatus m_status;
143 bool m_statusHasBeenSet = false;
144
145 Aws::Utils::DateTime m_lastUpdatedAt;
146 bool m_lastUpdatedAtHasBeenSet = false;
147
148 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
149 bool m_lifecycleEventsHasBeenSet = false;
150
151 InstanceType m_instanceType;
152 bool m_instanceTypeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace CodeDeploy
157} // namespace Aws
const Aws::String & GetInstanceId() const
void SetInstanceId(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceSummary & WithStatus(const InstanceStatus &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetDeploymentId(Aws::String &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetInstanceType(const InstanceType &value)
void SetStatus(const InstanceStatus &value)
InstanceSummary & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
InstanceSummary & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
void SetStatus(InstanceStatus &&value)
const Aws::String & GetDeploymentId() const
InstanceSummary & WithInstanceId(const char *value)
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
InstanceSummary & WithDeploymentId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
InstanceSummary & WithStatus(InstanceStatus &&value)
InstanceSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
const InstanceStatus & GetStatus() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
InstanceSummary & WithDeploymentId(const char *value)
InstanceSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
InstanceSummary & WithInstanceType(InstanceType &&value)
InstanceSummary & WithInstanceId(const Aws::String &value)
InstanceSummary & WithInstanceType(const InstanceType &value)
InstanceSummary & AddLifecycleEvents(LifecycleEvent &&value)
const InstanceType & GetInstanceType() const
AWS_CODEDEPLOY_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(InstanceType &&value)
InstanceSummary & WithInstanceId(Aws::String &&value)
void SetDeploymentId(const Aws::String &value)
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
InstanceSummary & WithDeploymentId(const Aws::String &value)
AWS_CODEDEPLOY_API InstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSummary & AddLifecycleEvents(const LifecycleEvent &value)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() 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