AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
TestReport.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/TestReportMetrics.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
30 public:
31 AWS_DEVICEFARM_API TestReport() = default;
32 AWS_DEVICEFARM_API TestReport(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API TestReport& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template <typename MessageT = Aws::String>
43 void SetMessage(MessageT&& value) {
44 m_messageHasBeenSet = true;
45 m_message = std::forward<MessageT>(value);
46 }
47 template <typename MessageT = Aws::String>
48 TestReport& WithMessage(MessageT&& value) {
49 SetMessage(std::forward<MessageT>(value));
50 return *this;
51 }
53
55
58 inline const TestReportMetrics& GetMetrics() const { return m_metrics; }
59 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
60 template <typename MetricsT = TestReportMetrics>
61 void SetMetrics(MetricsT&& value) {
62 m_metricsHasBeenSet = true;
63 m_metrics = std::forward<MetricsT>(value);
64 }
65 template <typename MetricsT = TestReportMetrics>
66 TestReport& WithMetrics(MetricsT&& value) {
67 SetMetrics(std::forward<MetricsT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTestDetailsUrl() const { return m_testDetailsUrl; }
77 inline bool TestDetailsUrlHasBeenSet() const { return m_testDetailsUrlHasBeenSet; }
78 template <typename TestDetailsUrlT = Aws::String>
79 void SetTestDetailsUrl(TestDetailsUrlT&& value) {
80 m_testDetailsUrlHasBeenSet = true;
81 m_testDetailsUrl = std::forward<TestDetailsUrlT>(value);
82 }
83 template <typename TestDetailsUrlT = Aws::String>
84 TestReport& WithTestDetailsUrl(TestDetailsUrlT&& value) {
85 SetTestDetailsUrl(std::forward<TestDetailsUrlT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_message;
91
92 TestReportMetrics m_metrics;
93
94 Aws::String m_testDetailsUrl;
95 bool m_messageHasBeenSet = false;
96 bool m_metricsHasBeenSet = false;
97 bool m_testDetailsUrlHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DeviceFarm
102} // namespace Aws
void SetMessage(MessageT &&value)
Definition TestReport.h:43
TestReport & WithTestDetailsUrl(TestDetailsUrlT &&value)
Definition TestReport.h:84
const Aws::String & GetTestDetailsUrl() const
Definition TestReport.h:76
const Aws::String & GetMessage() const
Definition TestReport.h:40
TestReport & WithMetrics(MetricsT &&value)
Definition TestReport.h:66
AWS_DEVICEFARM_API TestReport(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
const TestReportMetrics & GetMetrics() const
Definition TestReport.h:58
AWS_DEVICEFARM_API TestReport & operator=(Aws::Utils::Json::JsonView jsonValue)
TestReport & WithMessage(MessageT &&value)
Definition TestReport.h:48
void SetTestDetailsUrl(TestDetailsUrlT &&value)
Definition TestReport.h:79
void SetMetrics(MetricsT &&value)
Definition TestReport.h:61
AWS_DEVICEFARM_API TestReport()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue