AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/greengrassv2/model/DeploymentStatus.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 GreengrassV2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GREENGRASSV2_API Deployment();
37 AWS_GREENGRASSV2_API Deployment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
50 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
51 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
52 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
53 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
54 inline Deployment& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
55 inline Deployment& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
56 inline Deployment& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
58
60
63 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
64 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
65 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
66 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
67 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
68 inline Deployment& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
69 inline Deployment& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
70 inline Deployment& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
72
74
77 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
78 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
79 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
80 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
81 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
82 inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
83 inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
84 inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
86
88
91 inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; }
92 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
93 inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; }
94 inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); }
95 inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); }
96 inline Deployment& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;}
97 inline Deployment& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;}
98 inline Deployment& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;}
100
102
106 inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
107 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
108 inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
109 inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
110 inline Deployment& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;}
111 inline Deployment& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;}
113
115
118 inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; }
119 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
120 inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
121 inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); }
122 inline Deployment& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;}
123 inline Deployment& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;}
125
127
130 inline bool GetIsLatestForTarget() const{ return m_isLatestForTarget; }
131 inline bool IsLatestForTargetHasBeenSet() const { return m_isLatestForTargetHasBeenSet; }
132 inline void SetIsLatestForTarget(bool value) { m_isLatestForTargetHasBeenSet = true; m_isLatestForTarget = value; }
133 inline Deployment& WithIsLatestForTarget(bool value) { SetIsLatestForTarget(value); return *this;}
135
137
142 inline const Aws::String& GetParentTargetArn() const{ return m_parentTargetArn; }
143 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
144 inline void SetParentTargetArn(const Aws::String& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = value; }
145 inline void SetParentTargetArn(Aws::String&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::move(value); }
146 inline void SetParentTargetArn(const char* value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn.assign(value); }
147 inline Deployment& WithParentTargetArn(const Aws::String& value) { SetParentTargetArn(value); return *this;}
148 inline Deployment& WithParentTargetArn(Aws::String&& value) { SetParentTargetArn(std::move(value)); return *this;}
149 inline Deployment& WithParentTargetArn(const char* value) { SetParentTargetArn(value); return *this;}
151 private:
152
153 Aws::String m_targetArn;
154 bool m_targetArnHasBeenSet = false;
155
156 Aws::String m_revisionId;
157 bool m_revisionIdHasBeenSet = false;
158
159 Aws::String m_deploymentId;
160 bool m_deploymentIdHasBeenSet = false;
161
162 Aws::String m_deploymentName;
163 bool m_deploymentNameHasBeenSet = false;
164
165 Aws::Utils::DateTime m_creationTimestamp;
166 bool m_creationTimestampHasBeenSet = false;
167
168 DeploymentStatus m_deploymentStatus;
169 bool m_deploymentStatusHasBeenSet = false;
170
171 bool m_isLatestForTarget;
172 bool m_isLatestForTargetHasBeenSet = false;
173
174 Aws::String m_parentTargetArn;
175 bool m_parentTargetArnHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace GreengrassV2
180} // namespace Aws
void SetParentTargetArn(const Aws::String &value)
Definition Deployment.h:144
void SetCreationTimestamp(const Aws::Utils::DateTime &value)
Definition Deployment.h:108
void SetDeploymentName(Aws::String &&value)
Definition Deployment.h:94
Deployment & WithTargetArn(const Aws::String &value)
Definition Deployment.h:54
void SetTargetArn(Aws::String &&value)
Definition Deployment.h:52
void SetDeploymentId(Aws::String &&value)
Definition Deployment.h:80
Deployment & WithDeploymentStatus(const DeploymentStatus &value)
Definition Deployment.h:122
const Aws::String & GetDeploymentId() const
Definition Deployment.h:77
Deployment & WithDeploymentId(const char *value)
Definition Deployment.h:84
Deployment & WithDeploymentId(const Aws::String &value)
Definition Deployment.h:82
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API Deployment()
void SetRevisionId(Aws::String &&value)
Definition Deployment.h:66
Deployment & WithIsLatestForTarget(bool value)
Definition Deployment.h:133
Deployment & WithTargetArn(const char *value)
Definition Deployment.h:56
void SetTargetArn(const char *value)
Definition Deployment.h:53
void SetRevisionId(const char *value)
Definition Deployment.h:67
Deployment & WithTargetArn(Aws::String &&value)
Definition Deployment.h:55
void SetDeploymentStatus(DeploymentStatus &&value)
Definition Deployment.h:121
const Aws::String & GetTargetArn() const
Definition Deployment.h:49
const Aws::String & GetParentTargetArn() const
Definition Deployment.h:142
Deployment & WithParentTargetArn(const char *value)
Definition Deployment.h:149
Deployment & WithDeploymentStatus(DeploymentStatus &&value)
Definition Deployment.h:123
void SetDeploymentName(const char *value)
Definition Deployment.h:95
Deployment & WithParentTargetArn(const Aws::String &value)
Definition Deployment.h:147
void SetDeploymentId(const Aws::String &value)
Definition Deployment.h:79
Deployment & WithRevisionId(const char *value)
Definition Deployment.h:70
void SetDeploymentName(const Aws::String &value)
Definition Deployment.h:93
void SetParentTargetArn(const char *value)
Definition Deployment.h:146
Deployment & WithDeploymentName(const Aws::String &value)
Definition Deployment.h:96
void SetParentTargetArn(Aws::String &&value)
Definition Deployment.h:145
AWS_GREENGRASSV2_API Deployment(Aws::Utils::Json::JsonView jsonValue)
Deployment & WithCreationTimestamp(const Aws::Utils::DateTime &value)
Definition Deployment.h:110
Deployment & WithRevisionId(const Aws::String &value)
Definition Deployment.h:68
void SetDeploymentId(const char *value)
Definition Deployment.h:81
Deployment & WithDeploymentName(const char *value)
Definition Deployment.h:98
void SetDeploymentStatus(const DeploymentStatus &value)
Definition Deployment.h:120
const Aws::String & GetDeploymentName() const
Definition Deployment.h:91
Deployment & WithDeploymentName(Aws::String &&value)
Definition Deployment.h:97
Deployment & WithParentTargetArn(Aws::String &&value)
Definition Deployment.h:148
void SetRevisionId(const Aws::String &value)
Definition Deployment.h:65
Deployment & WithCreationTimestamp(Aws::Utils::DateTime &&value)
Definition Deployment.h:111
Deployment & WithDeploymentId(Aws::String &&value)
Definition Deployment.h:83
const Aws::Utils::DateTime & GetCreationTimestamp() const
Definition Deployment.h:106
const Aws::String & GetRevisionId() const
Definition Deployment.h:63
Deployment & WithRevisionId(Aws::String &&value)
Definition Deployment.h:69
const DeploymentStatus & GetDeploymentStatus() const
Definition Deployment.h:118
AWS_GREENGRASSV2_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetArn(const Aws::String &value)
Definition Deployment.h:51
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
Definition Deployment.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue