AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TestResult.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/FunctionSummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
30 public:
31 AWS_CLOUDFRONT_API TestResult() = default;
32 AWS_CLOUDFRONT_API TestResult(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API TestResult& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
42 inline const FunctionSummary& GetFunctionSummary() const { return m_functionSummary; }
43 inline bool FunctionSummaryHasBeenSet() const { return m_functionSummaryHasBeenSet; }
44 template <typename FunctionSummaryT = FunctionSummary>
45 void SetFunctionSummary(FunctionSummaryT&& value) {
46 m_functionSummaryHasBeenSet = true;
47 m_functionSummary = std::forward<FunctionSummaryT>(value);
48 }
49 template <typename FunctionSummaryT = FunctionSummary>
50 TestResult& WithFunctionSummary(FunctionSummaryT&& value) {
51 SetFunctionSummary(std::forward<FunctionSummaryT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetComputeUtilization() const { return m_computeUtilization; }
63 inline bool ComputeUtilizationHasBeenSet() const { return m_computeUtilizationHasBeenSet; }
64 template <typename ComputeUtilizationT = Aws::String>
65 void SetComputeUtilization(ComputeUtilizationT&& value) {
66 m_computeUtilizationHasBeenSet = true;
67 m_computeUtilization = std::forward<ComputeUtilizationT>(value);
68 }
69 template <typename ComputeUtilizationT = Aws::String>
70 TestResult& WithComputeUtilization(ComputeUtilizationT&& value) {
71 SetComputeUtilization(std::forward<ComputeUtilizationT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<Aws::String>& GetFunctionExecutionLogs() const { return m_functionExecutionLogs; }
82 inline bool FunctionExecutionLogsHasBeenSet() const { return m_functionExecutionLogsHasBeenSet; }
83 template <typename FunctionExecutionLogsT = Aws::Vector<Aws::String>>
84 void SetFunctionExecutionLogs(FunctionExecutionLogsT&& value) {
85 m_functionExecutionLogsHasBeenSet = true;
86 m_functionExecutionLogs = std::forward<FunctionExecutionLogsT>(value);
87 }
88 template <typename FunctionExecutionLogsT = Aws::Vector<Aws::String>>
89 TestResult& WithFunctionExecutionLogs(FunctionExecutionLogsT&& value) {
90 SetFunctionExecutionLogs(std::forward<FunctionExecutionLogsT>(value));
91 return *this;
92 }
93 template <typename FunctionExecutionLogsT = Aws::String>
94 TestResult& AddFunctionExecutionLogs(FunctionExecutionLogsT&& value) {
95 m_functionExecutionLogsHasBeenSet = true;
96 m_functionExecutionLogs.emplace_back(std::forward<FunctionExecutionLogsT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetFunctionErrorMessage() const { return m_functionErrorMessage; }
107 inline bool FunctionErrorMessageHasBeenSet() const { return m_functionErrorMessageHasBeenSet; }
108 template <typename FunctionErrorMessageT = Aws::String>
109 void SetFunctionErrorMessage(FunctionErrorMessageT&& value) {
110 m_functionErrorMessageHasBeenSet = true;
111 m_functionErrorMessage = std::forward<FunctionErrorMessageT>(value);
112 }
113 template <typename FunctionErrorMessageT = Aws::String>
114 TestResult& WithFunctionErrorMessage(FunctionErrorMessageT&& value) {
115 SetFunctionErrorMessage(std::forward<FunctionErrorMessageT>(value));
116 return *this;
117 }
119
121
127 inline const Aws::String& GetFunctionOutput() const { return m_functionOutput; }
128 inline bool FunctionOutputHasBeenSet() const { return m_functionOutputHasBeenSet; }
129 template <typename FunctionOutputT = Aws::String>
130 void SetFunctionOutput(FunctionOutputT&& value) {
131 m_functionOutputHasBeenSet = true;
132 m_functionOutput = std::forward<FunctionOutputT>(value);
133 }
134 template <typename FunctionOutputT = Aws::String>
135 TestResult& WithFunctionOutput(FunctionOutputT&& value) {
136 SetFunctionOutput(std::forward<FunctionOutputT>(value));
137 return *this;
138 }
140 private:
141 FunctionSummary m_functionSummary;
142
143 Aws::String m_computeUtilization;
144
145 Aws::Vector<Aws::String> m_functionExecutionLogs;
146
147 Aws::String m_functionErrorMessage;
148
149 Aws::String m_functionOutput;
150 bool m_functionSummaryHasBeenSet = false;
151 bool m_computeUtilizationHasBeenSet = false;
152 bool m_functionExecutionLogsHasBeenSet = false;
153 bool m_functionErrorMessageHasBeenSet = false;
154 bool m_functionOutputHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace CloudFront
159} // namespace Aws
const FunctionSummary & GetFunctionSummary() const
Definition TestResult.h:42
void SetFunctionSummary(FunctionSummaryT &&value)
Definition TestResult.h:45
const Aws::String & GetFunctionErrorMessage() const
Definition TestResult.h:106
TestResult & AddFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:94
void SetComputeUtilization(ComputeUtilizationT &&value)
Definition TestResult.h:65
TestResult & WithFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:89
AWS_CLOUDFRONT_API TestResult(const Aws::Utils::Xml::XmlNode &xmlNode)
TestResult & WithComputeUtilization(ComputeUtilizationT &&value)
Definition TestResult.h:70
AWS_CLOUDFRONT_API TestResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool FunctionExecutionLogsHasBeenSet() const
Definition TestResult.h:82
TestResult & WithFunctionErrorMessage(FunctionErrorMessageT &&value)
Definition TestResult.h:114
void SetFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:84
void SetFunctionOutput(FunctionOutputT &&value)
Definition TestResult.h:130
const Aws::Vector< Aws::String > & GetFunctionExecutionLogs() const
Definition TestResult.h:81
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetComputeUtilization() const
Definition TestResult.h:62
TestResult & WithFunctionSummary(FunctionSummaryT &&value)
Definition TestResult.h:50
TestResult & WithFunctionOutput(FunctionOutputT &&value)
Definition TestResult.h:135
AWS_CLOUDFRONT_API TestResult()=default
const Aws::String & GetFunctionOutput() const
Definition TestResult.h:127
void SetFunctionErrorMessage(FunctionErrorMessageT &&value)
Definition TestResult.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector