AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TargetArnT = Aws::String>
52 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
53 template<typename TargetArnT = Aws::String>
54 Deployment& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
56
58
61 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
62 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
63 template<typename RevisionIdT = Aws::String>
64 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
65 template<typename RevisionIdT = Aws::String>
66 Deployment& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
74 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
75 template<typename DeploymentIdT = Aws::String>
76 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
77 template<typename DeploymentIdT = Aws::String>
78 Deployment& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
86 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
87 template<typename DeploymentNameT = Aws::String>
88 void SetDeploymentName(DeploymentNameT&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::forward<DeploymentNameT>(value); }
89 template<typename DeploymentNameT = Aws::String>
90 Deployment& WithDeploymentName(DeploymentNameT&& value) { SetDeploymentName(std::forward<DeploymentNameT>(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
99 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
100 template<typename CreationTimestampT = Aws::Utils::DateTime>
101 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
102 template<typename CreationTimestampT = Aws::Utils::DateTime>
103 Deployment& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
105
107
110 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
111 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
112 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
115
117
120 inline bool GetIsLatestForTarget() const { return m_isLatestForTarget; }
121 inline bool IsLatestForTargetHasBeenSet() const { return m_isLatestForTargetHasBeenSet; }
122 inline void SetIsLatestForTarget(bool value) { m_isLatestForTargetHasBeenSet = true; m_isLatestForTarget = value; }
123 inline Deployment& WithIsLatestForTarget(bool value) { SetIsLatestForTarget(value); return *this;}
125
127
132 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
133 inline bool ParentTargetArnHasBeenSet() const { return m_parentTargetArnHasBeenSet; }
134 template<typename ParentTargetArnT = Aws::String>
135 void SetParentTargetArn(ParentTargetArnT&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::forward<ParentTargetArnT>(value); }
136 template<typename ParentTargetArnT = Aws::String>
137 Deployment& WithParentTargetArn(ParentTargetArnT&& value) { SetParentTargetArn(std::forward<ParentTargetArnT>(value)); return *this;}
139 private:
140
141 Aws::String m_targetArn;
142 bool m_targetArnHasBeenSet = false;
143
144 Aws::String m_revisionId;
145 bool m_revisionIdHasBeenSet = false;
146
147 Aws::String m_deploymentId;
148 bool m_deploymentIdHasBeenSet = false;
149
150 Aws::String m_deploymentName;
151 bool m_deploymentNameHasBeenSet = false;
152
153 Aws::Utils::DateTime m_creationTimestamp{};
154 bool m_creationTimestampHasBeenSet = false;
155
157 bool m_deploymentStatusHasBeenSet = false;
158
159 bool m_isLatestForTarget{false};
160 bool m_isLatestForTargetHasBeenSet = false;
161
162 Aws::String m_parentTargetArn;
163 bool m_parentTargetArnHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace GreengrassV2
168} // namespace Aws
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:113
const Aws::String & GetDeploymentId() const
Definition Deployment.h:73
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Deployment & WithIsLatestForTarget(bool value)
Definition Deployment.h:123
Deployment & WithParentTargetArn(ParentTargetArnT &&value)
Definition Deployment.h:137
const Aws::String & GetTargetArn() const
Definition Deployment.h:49
const Aws::String & GetParentTargetArn() const
Definition Deployment.h:132
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:112
AWS_GREENGRASSV2_API Deployment()=default
void SetCreationTimestamp(CreationTimestampT &&value)
Definition Deployment.h:101
void SetDeploymentName(DeploymentNameT &&value)
Definition Deployment.h:88
Deployment & WithDeploymentName(DeploymentNameT &&value)
Definition Deployment.h:90
Deployment & WithRevisionId(RevisionIdT &&value)
Definition Deployment.h:66
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:78
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:110
void SetRevisionId(RevisionIdT &&value)
Definition Deployment.h:64
AWS_GREENGRASSV2_API Deployment(Aws::Utils::Json::JsonView jsonValue)
Deployment & WithCreationTimestamp(CreationTimestampT &&value)
Definition Deployment.h:103
void SetTargetArn(TargetArnT &&value)
Definition Deployment.h:52
Deployment & WithTargetArn(TargetArnT &&value)
Definition Deployment.h:54
const Aws::String & GetDeploymentName() const
Definition Deployment.h:85
const Aws::Utils::DateTime & GetCreationTimestamp() const
Definition Deployment.h:98
const Aws::String & GetRevisionId() const
Definition Deployment.h:61
void SetParentTargetArn(ParentTargetArnT &&value)
Definition Deployment.h:135
AWS_GREENGRASSV2_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue