AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PhaseStatus& GetStatus() const{ return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(const PhaseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(PhaseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline ReportResult& WithStatus(const PhaseStatus& value) { SetStatus(value); return *this;}
53 inline ReportResult& WithStatus(PhaseStatus&& value) { SetStatus(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
66 inline ReportResult& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
67 inline ReportResult& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
68 inline ReportResult& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
70
72
75 inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
76 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
77 inline void SetErrorDetail(const Aws::String& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
78 inline void SetErrorDetail(Aws::String&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
79 inline void SetErrorDetail(const char* value) { m_errorDetailHasBeenSet = true; m_errorDetail.assign(value); }
80 inline ReportResult& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
81 inline ReportResult& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
82 inline ReportResult& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
84 private:
85
86 PhaseStatus m_status;
87 bool m_statusHasBeenSet = false;
88
89 Aws::String m_errorCode;
90 bool m_errorCodeHasBeenSet = false;
91
92 Aws::String m_errorDetail;
93 bool m_errorDetailHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace DataSync
98} // namespace Aws
ReportResult & WithStatus(const PhaseStatus &value)
ReportResult & WithErrorDetail(const Aws::String &value)
void SetStatus(PhaseStatus &&value)
ReportResult & WithStatus(PhaseStatus &&value)
AWS_DATASYNC_API ReportResult(Aws::Utils::Json::JsonView jsonValue)
ReportResult & WithErrorCode(Aws::String &&value)
const Aws::String & GetErrorCode() const
ReportResult & WithErrorDetail(const char *value)
const PhaseStatus & GetStatus() const
AWS_DATASYNC_API ReportResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(Aws::String &&value)
void SetErrorDetail(const char *value)
void SetErrorCode(const Aws::String &value)
ReportResult & WithErrorDetail(Aws::String &&value)
ReportResult & WithErrorCode(const char *value)
void SetErrorDetail(const Aws::String &value)
const Aws::String & GetErrorDetail() const
void SetErrorDetail(Aws::String &&value)
ReportResult & WithErrorCode(const Aws::String &value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const PhaseStatus &value)
void SetErrorCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue