AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ReportResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9#include <aws/datasync/model/PhaseStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
31 public:
32 AWS_DATASYNC_API ReportResult() = default;
33 AWS_DATASYNC_API ReportResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline PhaseStatus GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 inline void SetStatus(PhaseStatus value) {
45 m_statusHasBeenSet = true;
46 m_status = value;
47 }
49 SetStatus(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
61 template <typename ErrorCodeT = Aws::String>
62 void SetErrorCode(ErrorCodeT&& value) {
63 m_errorCodeHasBeenSet = true;
64 m_errorCode = std::forward<ErrorCodeT>(value);
65 }
66 template <typename ErrorCodeT = Aws::String>
67 ReportResult& WithErrorCode(ErrorCodeT&& value) {
68 SetErrorCode(std::forward<ErrorCodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
78 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
79 template <typename ErrorDetailT = Aws::String>
80 void SetErrorDetail(ErrorDetailT&& value) {
81 m_errorDetailHasBeenSet = true;
82 m_errorDetail = std::forward<ErrorDetailT>(value);
83 }
84 template <typename ErrorDetailT = Aws::String>
85 ReportResult& WithErrorDetail(ErrorDetailT&& value) {
86 SetErrorDetail(std::forward<ErrorDetailT>(value));
87 return *this;
88 }
90 private:
92
93 Aws::String m_errorCode;
94
95 Aws::String m_errorDetail;
96 bool m_statusHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98 bool m_errorDetailHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DataSync
103} // namespace Aws
AWS_DATASYNC_API ReportResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorCode() const
void SetStatus(PhaseStatus value)
ReportResult & WithErrorDetail(ErrorDetailT &&value)
AWS_DATASYNC_API ReportResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorDetail(ErrorDetailT &&value)
ReportResult & WithErrorCode(ErrorCodeT &&value)
AWS_DATASYNC_API ReportResult()=default
const Aws::String & GetErrorDetail() const
ReportResult & WithStatus(PhaseStatus value)
void SetErrorCode(ErrorCodeT &&value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue