AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDFRONT_API TestResult() = default;
37 AWS_CLOUDFRONT_API TestResult(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API TestResult& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
48 inline const FunctionSummary& GetFunctionSummary() const { return m_functionSummary; }
49 inline bool FunctionSummaryHasBeenSet() const { return m_functionSummaryHasBeenSet; }
50 template<typename FunctionSummaryT = FunctionSummary>
51 void SetFunctionSummary(FunctionSummaryT&& value) { m_functionSummaryHasBeenSet = true; m_functionSummary = std::forward<FunctionSummaryT>(value); }
52 template<typename FunctionSummaryT = FunctionSummary>
53 TestResult& WithFunctionSummary(FunctionSummaryT&& value) { SetFunctionSummary(std::forward<FunctionSummaryT>(value)); return *this;}
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) { m_computeUtilizationHasBeenSet = true; m_computeUtilization = std::forward<ComputeUtilizationT>(value); }
66 template<typename ComputeUtilizationT = Aws::String>
67 TestResult& WithComputeUtilization(ComputeUtilizationT&& value) { SetComputeUtilization(std::forward<ComputeUtilizationT>(value)); return *this;}
69
71
75 inline const Aws::Vector<Aws::String>& GetFunctionExecutionLogs() const { return m_functionExecutionLogs; }
76 inline bool FunctionExecutionLogsHasBeenSet() const { return m_functionExecutionLogsHasBeenSet; }
77 template<typename FunctionExecutionLogsT = Aws::Vector<Aws::String>>
78 void SetFunctionExecutionLogs(FunctionExecutionLogsT&& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs = std::forward<FunctionExecutionLogsT>(value); }
79 template<typename FunctionExecutionLogsT = Aws::Vector<Aws::String>>
80 TestResult& WithFunctionExecutionLogs(FunctionExecutionLogsT&& value) { SetFunctionExecutionLogs(std::forward<FunctionExecutionLogsT>(value)); return *this;}
81 template<typename FunctionExecutionLogsT = Aws::String>
82 TestResult& AddFunctionExecutionLogs(FunctionExecutionLogsT&& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.emplace_back(std::forward<FunctionExecutionLogsT>(value)); return *this; }
84
86
90 inline const Aws::String& GetFunctionErrorMessage() const { return m_functionErrorMessage; }
91 inline bool FunctionErrorMessageHasBeenSet() const { return m_functionErrorMessageHasBeenSet; }
92 template<typename FunctionErrorMessageT = Aws::String>
93 void SetFunctionErrorMessage(FunctionErrorMessageT&& value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage = std::forward<FunctionErrorMessageT>(value); }
94 template<typename FunctionErrorMessageT = Aws::String>
95 TestResult& WithFunctionErrorMessage(FunctionErrorMessageT&& value) { SetFunctionErrorMessage(std::forward<FunctionErrorMessageT>(value)); return *this;}
97
99
105 inline const Aws::String& GetFunctionOutput() const { return m_functionOutput; }
106 inline bool FunctionOutputHasBeenSet() const { return m_functionOutputHasBeenSet; }
107 template<typename FunctionOutputT = Aws::String>
108 void SetFunctionOutput(FunctionOutputT&& value) { m_functionOutputHasBeenSet = true; m_functionOutput = std::forward<FunctionOutputT>(value); }
109 template<typename FunctionOutputT = Aws::String>
110 TestResult& WithFunctionOutput(FunctionOutputT&& value) { SetFunctionOutput(std::forward<FunctionOutputT>(value)); return *this;}
112 private:
113
114 FunctionSummary m_functionSummary;
115 bool m_functionSummaryHasBeenSet = false;
116
117 Aws::String m_computeUtilization;
118 bool m_computeUtilizationHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_functionExecutionLogs;
121 bool m_functionExecutionLogsHasBeenSet = false;
122
123 Aws::String m_functionErrorMessage;
124 bool m_functionErrorMessageHasBeenSet = false;
125
126 Aws::String m_functionOutput;
127 bool m_functionOutputHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudFront
132} // namespace Aws
const FunctionSummary & GetFunctionSummary() const
Definition TestResult.h:48
void SetFunctionSummary(FunctionSummaryT &&value)
Definition TestResult.h:51
const Aws::String & GetFunctionErrorMessage() const
Definition TestResult.h:90
TestResult & AddFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:82
void SetComputeUtilization(ComputeUtilizationT &&value)
Definition TestResult.h:65
bool FunctionErrorMessageHasBeenSet() const
Definition TestResult.h:91
TestResult & WithFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:80
AWS_CLOUDFRONT_API TestResult(const Aws::Utils::Xml::XmlNode &xmlNode)
TestResult & WithComputeUtilization(ComputeUtilizationT &&value)
Definition TestResult.h:67
AWS_CLOUDFRONT_API TestResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool FunctionExecutionLogsHasBeenSet() const
Definition TestResult.h:76
TestResult & WithFunctionErrorMessage(FunctionErrorMessageT &&value)
Definition TestResult.h:95
void SetFunctionExecutionLogs(FunctionExecutionLogsT &&value)
Definition TestResult.h:78
void SetFunctionOutput(FunctionOutputT &&value)
Definition TestResult.h:108
const Aws::Vector< Aws::String > & GetFunctionExecutionLogs() const
Definition TestResult.h:75
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:53
TestResult & WithFunctionOutput(FunctionOutputT &&value)
Definition TestResult.h:110
AWS_CLOUDFRONT_API TestResult()=default
const Aws::String & GetFunctionOutput() const
Definition TestResult.h:105
void SetFunctionErrorMessage(FunctionErrorMessageT &&value)
Definition TestResult.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector