AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProgressDetail.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/model/RobotDeploymentStep.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RoboMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ROBOMAKER_API ProgressDetail() = default;
37 AWS_ROBOMAKER_API ProgressDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline RobotDeploymentStep GetCurrentProgress() const { return m_currentProgress; }
53 inline bool CurrentProgressHasBeenSet() const { return m_currentProgressHasBeenSet; }
54 inline void SetCurrentProgress(RobotDeploymentStep value) { m_currentProgressHasBeenSet = true; m_currentProgress = value; }
57
59
64 inline double GetPercentDone() const { return m_percentDone; }
65 inline bool PercentDoneHasBeenSet() const { return m_percentDoneHasBeenSet; }
66 inline void SetPercentDone(double value) { m_percentDoneHasBeenSet = true; m_percentDone = value; }
67 inline ProgressDetail& WithPercentDone(double value) { SetPercentDone(value); return *this;}
69
71
76 inline int GetEstimatedTimeRemainingSeconds() const { return m_estimatedTimeRemainingSeconds; }
77 inline bool EstimatedTimeRemainingSecondsHasBeenSet() const { return m_estimatedTimeRemainingSecondsHasBeenSet; }
78 inline void SetEstimatedTimeRemainingSeconds(int value) { m_estimatedTimeRemainingSecondsHasBeenSet = true; m_estimatedTimeRemainingSeconds = value; }
81
83
86 inline const Aws::String& GetTargetResource() const { return m_targetResource; }
87 inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; }
88 template<typename TargetResourceT = Aws::String>
89 void SetTargetResource(TargetResourceT&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::forward<TargetResourceT>(value); }
90 template<typename TargetResourceT = Aws::String>
91 ProgressDetail& WithTargetResource(TargetResourceT&& value) { SetTargetResource(std::forward<TargetResourceT>(value)); return *this;}
93 private:
94
96 bool m_currentProgressHasBeenSet = false;
97
98 double m_percentDone{0.0};
99 bool m_percentDoneHasBeenSet = false;
100
101 int m_estimatedTimeRemainingSeconds{0};
102 bool m_estimatedTimeRemainingSecondsHasBeenSet = false;
103
104 Aws::String m_targetResource;
105 bool m_targetResourceHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace RoboMaker
110} // namespace Aws
ProgressDetail & WithEstimatedTimeRemainingSeconds(int value)
ProgressDetail & WithPercentDone(double value)
void SetTargetResource(TargetResourceT &&value)
void SetCurrentProgress(RobotDeploymentStep value)
ProgressDetail & WithTargetResource(TargetResourceT &&value)
AWS_ROBOMAKER_API ProgressDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API ProgressDetail()=default
RobotDeploymentStep GetCurrentProgress() const
ProgressDetail & WithCurrentProgress(RobotDeploymentStep value)
const Aws::String & GetTargetResource() const
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROBOMAKER_API ProgressDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue