AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReportResult.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/model/PhaseStatus.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 DataSync
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DATASYNC_API ReportResult() = default;
38 AWS_DATASYNC_API ReportResult(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline PhaseStatus GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(PhaseStatus value) { m_statusHasBeenSet = true; m_status = value; }
51 inline ReportResult& WithStatus(PhaseStatus value) { SetStatus(value); return *this;}
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) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
63 template<typename ErrorCodeT = Aws::String>
64 ReportResult& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
72 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
73 template<typename ErrorDetailT = Aws::String>
74 void SetErrorDetail(ErrorDetailT&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::forward<ErrorDetailT>(value); }
75 template<typename ErrorDetailT = Aws::String>
76 ReportResult& WithErrorDetail(ErrorDetailT&& value) { SetErrorDetail(std::forward<ErrorDetailT>(value)); return *this;}
78 private:
79
81 bool m_statusHasBeenSet = false;
82
83 Aws::String m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorDetail;
87 bool m_errorDetailHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DataSync
92} // 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