AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RobotDeployment.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/robomaker/model/RobotStatus.h>
11#include <aws/robomaker/model/ProgressDetail.h>
12#include <aws/robomaker/model/DeploymentJobErrorCode.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 RoboMaker
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ROBOMAKER_API RobotDeployment();
39 AWS_ROBOMAKER_API RobotDeployment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline RobotDeployment& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline RobotDeployment& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline RobotDeployment& WithArn(const char* value) { SetArn(value); return *this;}
57
59
63 inline const Aws::Utils::DateTime& GetDeploymentStartTime() const{ return m_deploymentStartTime; }
64 inline bool DeploymentStartTimeHasBeenSet() const { return m_deploymentStartTimeHasBeenSet; }
65 inline void SetDeploymentStartTime(const Aws::Utils::DateTime& value) { m_deploymentStartTimeHasBeenSet = true; m_deploymentStartTime = value; }
66 inline void SetDeploymentStartTime(Aws::Utils::DateTime&& value) { m_deploymentStartTimeHasBeenSet = true; m_deploymentStartTime = std::move(value); }
68 inline RobotDeployment& WithDeploymentStartTime(Aws::Utils::DateTime&& value) { SetDeploymentStartTime(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetDeploymentFinishTime() const{ return m_deploymentFinishTime; }
76 inline bool DeploymentFinishTimeHasBeenSet() const { return m_deploymentFinishTimeHasBeenSet; }
77 inline void SetDeploymentFinishTime(const Aws::Utils::DateTime& value) { m_deploymentFinishTimeHasBeenSet = true; m_deploymentFinishTime = value; }
78 inline void SetDeploymentFinishTime(Aws::Utils::DateTime&& value) { m_deploymentFinishTimeHasBeenSet = true; m_deploymentFinishTime = std::move(value); }
80 inline RobotDeployment& WithDeploymentFinishTime(Aws::Utils::DateTime&& value) { SetDeploymentFinishTime(std::move(value)); return *this;}
82
84
87 inline const RobotStatus& GetStatus() const{ return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(const RobotStatus& value) { m_statusHasBeenSet = true; m_status = value; }
90 inline void SetStatus(RobotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
91 inline RobotDeployment& WithStatus(const RobotStatus& value) { SetStatus(value); return *this;}
92 inline RobotDeployment& WithStatus(RobotStatus&& value) { SetStatus(std::move(value)); return *this;}
94
96
99 inline const ProgressDetail& GetProgressDetail() const{ return m_progressDetail; }
100 inline bool ProgressDetailHasBeenSet() const { return m_progressDetailHasBeenSet; }
101 inline void SetProgressDetail(const ProgressDetail& value) { m_progressDetailHasBeenSet = true; m_progressDetail = value; }
102 inline void SetProgressDetail(ProgressDetail&& value) { m_progressDetailHasBeenSet = true; m_progressDetail = std::move(value); }
103 inline RobotDeployment& WithProgressDetail(const ProgressDetail& value) { SetProgressDetail(value); return *this;}
104 inline RobotDeployment& WithProgressDetail(ProgressDetail&& value) { SetProgressDetail(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
112 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
113 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
114 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
115 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
116 inline RobotDeployment& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
117 inline RobotDeployment& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
118 inline RobotDeployment& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
120
122
125 inline const DeploymentJobErrorCode& GetFailureCode() const{ return m_failureCode; }
126 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
127 inline void SetFailureCode(const DeploymentJobErrorCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
128 inline void SetFailureCode(DeploymentJobErrorCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
129 inline RobotDeployment& WithFailureCode(const DeploymentJobErrorCode& value) { SetFailureCode(value); return *this;}
130 inline RobotDeployment& WithFailureCode(DeploymentJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;}
132 private:
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 Aws::Utils::DateTime m_deploymentStartTime;
138 bool m_deploymentStartTimeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_deploymentFinishTime;
141 bool m_deploymentFinishTimeHasBeenSet = false;
142
143 RobotStatus m_status;
144 bool m_statusHasBeenSet = false;
145
146 ProgressDetail m_progressDetail;
147 bool m_progressDetailHasBeenSet = false;
148
149 Aws::String m_failureReason;
150 bool m_failureReasonHasBeenSet = false;
151
152 DeploymentJobErrorCode m_failureCode;
153 bool m_failureCodeHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace RoboMaker
158} // namespace Aws
void SetFailureCode(DeploymentJobErrorCode &&value)
const Aws::String & GetArn() const
RobotDeployment & WithStatus(const RobotStatus &value)
AWS_ROBOMAKER_API RobotDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
RobotDeployment & WithStatus(RobotStatus &&value)
RobotDeployment & WithFailureReason(const char *value)
RobotDeployment & WithProgressDetail(ProgressDetail &&value)
RobotDeployment & WithProgressDetail(const ProgressDetail &value)
const Aws::Utils::DateTime & GetDeploymentStartTime() const
RobotDeployment & WithArn(Aws::String &&value)
void SetProgressDetail(const ProgressDetail &value)
RobotDeployment & WithDeploymentStartTime(Aws::Utils::DateTime &&value)
void SetFailureReason(Aws::String &&value)
void SetFailureReason(const Aws::String &value)
void SetDeploymentStartTime(Aws::Utils::DateTime &&value)
RobotDeployment & WithArn(const char *value)
RobotDeployment & WithFailureReason(Aws::String &&value)
void SetDeploymentStartTime(const Aws::Utils::DateTime &value)
RobotDeployment & WithFailureCode(const DeploymentJobErrorCode &value)
const DeploymentJobErrorCode & GetFailureCode() const
RobotDeployment & WithArn(const Aws::String &value)
RobotDeployment & WithDeploymentFinishTime(Aws::Utils::DateTime &&value)
void SetArn(const Aws::String &value)
const Aws::String & GetFailureReason() const
void SetStatus(RobotStatus &&value)
RobotDeployment & WithDeploymentFinishTime(const Aws::Utils::DateTime &value)
RobotDeployment & WithDeploymentStartTime(const Aws::Utils::DateTime &value)
AWS_ROBOMAKER_API RobotDeployment(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDeploymentFinishTime() const
void SetProgressDetail(ProgressDetail &&value)
const ProgressDetail & GetProgressDetail() const
const RobotStatus & GetStatus() const
void SetFailureCode(const DeploymentJobErrorCode &value)
RobotDeployment & WithFailureReason(const Aws::String &value)
void SetDeploymentFinishTime(Aws::Utils::DateTime &&value)
void SetStatus(const RobotStatus &value)
void SetDeploymentFinishTime(const Aws::Utils::DateTime &value)
RobotDeployment & WithFailureCode(DeploymentJobErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue