AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Progress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/ProcessedObject.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DatabaseMigrationService {
21namespace Model {
22
29class Progress {
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API Progress() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API Progress(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Progress& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline double GetProgressPercent() const { return m_progressPercent; }
42 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
43 inline void SetProgressPercent(double value) {
44 m_progressPercentHasBeenSet = true;
45 m_progressPercent = value;
46 }
47 inline Progress& WithProgressPercent(double value) {
48 SetProgressPercent(value);
49 return *this;
50 }
52
54
57 inline long long GetTotalObjects() const { return m_totalObjects; }
58 inline bool TotalObjectsHasBeenSet() const { return m_totalObjectsHasBeenSet; }
59 inline void SetTotalObjects(long long value) {
60 m_totalObjectsHasBeenSet = true;
61 m_totalObjects = value;
62 }
63 inline Progress& WithTotalObjects(long long value) {
64 SetTotalObjects(value);
65 return *this;
66 }
68
70
82 inline const Aws::String& GetProgressStep() const { return m_progressStep; }
83 inline bool ProgressStepHasBeenSet() const { return m_progressStepHasBeenSet; }
84 template <typename ProgressStepT = Aws::String>
85 void SetProgressStep(ProgressStepT&& value) {
86 m_progressStepHasBeenSet = true;
87 m_progressStep = std::forward<ProgressStepT>(value);
88 }
89 template <typename ProgressStepT = Aws::String>
90 Progress& WithProgressStep(ProgressStepT&& value) {
91 SetProgressStep(std::forward<ProgressStepT>(value));
92 return *this;
93 }
95
97
101 inline const ProcessedObject& GetProcessedObject() const { return m_processedObject; }
102 inline bool ProcessedObjectHasBeenSet() const { return m_processedObjectHasBeenSet; }
103 template <typename ProcessedObjectT = ProcessedObject>
104 void SetProcessedObject(ProcessedObjectT&& value) {
105 m_processedObjectHasBeenSet = true;
106 m_processedObject = std::forward<ProcessedObjectT>(value);
107 }
108 template <typename ProcessedObjectT = ProcessedObject>
109 Progress& WithProcessedObject(ProcessedObjectT&& value) {
110 SetProcessedObject(std::forward<ProcessedObjectT>(value));
111 return *this;
112 }
114 private:
115 double m_progressPercent{0.0};
116
117 long long m_totalObjects{0};
118
119 Aws::String m_progressStep;
120
121 ProcessedObject m_processedObject;
122 bool m_progressPercentHasBeenSet = false;
123 bool m_totalObjectsHasBeenSet = false;
124 bool m_progressStepHasBeenSet = false;
125 bool m_processedObjectHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace DatabaseMigrationService
130} // namespace Aws
const ProcessedObject & GetProcessedObject() const
Definition Progress.h:101
void SetProgressStep(ProgressStepT &&value)
Definition Progress.h:85
void SetProcessedObject(ProcessedObjectT &&value)
Definition Progress.h:104
Progress & WithProcessedObject(ProcessedObjectT &&value)
Definition Progress.h:109
Progress & WithProgressPercent(double value)
Definition Progress.h:47
AWS_DATABASEMIGRATIONSERVICE_API Progress & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetProgressStep() const
Definition Progress.h:82
Progress & WithProgressStep(ProgressStepT &&value)
Definition Progress.h:90
AWS_DATABASEMIGRATIONSERVICE_API Progress()=default
Progress & WithTotalObjects(long long value)
Definition Progress.h:63
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API Progress(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue