AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionSummary(const FunctionSummary& value) { m_functionSummaryHasBeenSet = true; m_functionSummary = value; }
51 inline void SetFunctionSummary(FunctionSummary&& value) { m_functionSummaryHasBeenSet = true; m_functionSummary = std::move(value); }
52 inline TestResult& WithFunctionSummary(const FunctionSummary& value) { SetFunctionSummary(value); return *this;}
53 inline TestResult& WithFunctionSummary(FunctionSummary&& value) { SetFunctionSummary(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetComputeUtilization() const{ return m_computeUtilization; }
63 inline bool ComputeUtilizationHasBeenSet() const { return m_computeUtilizationHasBeenSet; }
64 inline void SetComputeUtilization(const Aws::String& value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization = value; }
65 inline void SetComputeUtilization(Aws::String&& value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization = std::move(value); }
66 inline void SetComputeUtilization(const char* value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization.assign(value); }
67 inline TestResult& WithComputeUtilization(const Aws::String& value) { SetComputeUtilization(value); return *this;}
68 inline TestResult& WithComputeUtilization(Aws::String&& value) { SetComputeUtilization(std::move(value)); return *this;}
69 inline TestResult& WithComputeUtilization(const char* value) { SetComputeUtilization(value); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetFunctionExecutionLogs() const{ return m_functionExecutionLogs; }
78 inline bool FunctionExecutionLogsHasBeenSet() const { return m_functionExecutionLogsHasBeenSet; }
79 inline void SetFunctionExecutionLogs(const Aws::Vector<Aws::String>& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs = value; }
80 inline void SetFunctionExecutionLogs(Aws::Vector<Aws::String>&& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs = std::move(value); }
83 inline TestResult& AddFunctionExecutionLogs(const Aws::String& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(value); return *this; }
84 inline TestResult& AddFunctionExecutionLogs(Aws::String&& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(std::move(value)); return *this; }
85 inline TestResult& AddFunctionExecutionLogs(const char* value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(value); return *this; }
87
89
93 inline const Aws::String& GetFunctionErrorMessage() const{ return m_functionErrorMessage; }
94 inline bool FunctionErrorMessageHasBeenSet() const { return m_functionErrorMessageHasBeenSet; }
95 inline void SetFunctionErrorMessage(const Aws::String& value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage = value; }
96 inline void SetFunctionErrorMessage(Aws::String&& value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage = std::move(value); }
97 inline void SetFunctionErrorMessage(const char* value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage.assign(value); }
98 inline TestResult& WithFunctionErrorMessage(const Aws::String& value) { SetFunctionErrorMessage(value); return *this;}
99 inline TestResult& WithFunctionErrorMessage(Aws::String&& value) { SetFunctionErrorMessage(std::move(value)); return *this;}
100 inline TestResult& WithFunctionErrorMessage(const char* value) { SetFunctionErrorMessage(value); return *this;}
102
104
110 inline const Aws::String& GetFunctionOutput() const{ return m_functionOutput; }
111 inline bool FunctionOutputHasBeenSet() const { return m_functionOutputHasBeenSet; }
112 inline void SetFunctionOutput(const Aws::String& value) { m_functionOutputHasBeenSet = true; m_functionOutput = value; }
113 inline void SetFunctionOutput(Aws::String&& value) { m_functionOutputHasBeenSet = true; m_functionOutput = std::move(value); }
114 inline void SetFunctionOutput(const char* value) { m_functionOutputHasBeenSet = true; m_functionOutput.assign(value); }
115 inline TestResult& WithFunctionOutput(const Aws::String& value) { SetFunctionOutput(value); return *this;}
116 inline TestResult& WithFunctionOutput(Aws::String&& value) { SetFunctionOutput(std::move(value)); return *this;}
117 inline TestResult& WithFunctionOutput(const char* value) { SetFunctionOutput(value); return *this;}
119 private:
120
121 FunctionSummary m_functionSummary;
122 bool m_functionSummaryHasBeenSet = false;
123
124 Aws::String m_computeUtilization;
125 bool m_computeUtilizationHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_functionExecutionLogs;
128 bool m_functionExecutionLogsHasBeenSet = false;
129
130 Aws::String m_functionErrorMessage;
131 bool m_functionErrorMessageHasBeenSet = false;
132
133 Aws::String m_functionOutput;
134 bool m_functionOutputHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CloudFront
139} // namespace Aws
TestResult & WithFunctionSummary(FunctionSummary &&value)
Definition TestResult.h:53
const FunctionSummary & GetFunctionSummary() const
Definition TestResult.h:48
TestResult & WithFunctionErrorMessage(const Aws::String &value)
Definition TestResult.h:98
const Aws::String & GetFunctionErrorMessage() const
Definition TestResult.h:93
TestResult & WithFunctionExecutionLogs(Aws::Vector< Aws::String > &&value)
Definition TestResult.h:82
TestResult & AddFunctionExecutionLogs(const Aws::String &value)
Definition TestResult.h:83
TestResult & AddFunctionExecutionLogs(const char *value)
Definition TestResult.h:85
bool FunctionErrorMessageHasBeenSet() const
Definition TestResult.h:94
void SetFunctionOutput(Aws::String &&value)
Definition TestResult.h:113
AWS_CLOUDFRONT_API TestResult(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFunctionErrorMessage(const char *value)
Definition TestResult.h:97
AWS_CLOUDFRONT_API TestResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TestResult & WithFunctionErrorMessage(const char *value)
Definition TestResult.h:100
bool FunctionExecutionLogsHasBeenSet() const
Definition TestResult.h:78
TestResult & WithFunctionErrorMessage(Aws::String &&value)
Definition TestResult.h:99
AWS_CLOUDFRONT_API TestResult()
TestResult & WithComputeUtilization(const char *value)
Definition TestResult.h:69
TestResult & AddFunctionExecutionLogs(Aws::String &&value)
Definition TestResult.h:84
const Aws::Vector< Aws::String > & GetFunctionExecutionLogs() const
Definition TestResult.h:77
TestResult & WithFunctionExecutionLogs(const Aws::Vector< Aws::String > &value)
Definition TestResult.h:81
void SetFunctionOutput(const char *value)
Definition TestResult.h:114
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TestResult & WithComputeUtilization(const Aws::String &value)
Definition TestResult.h:67
TestResult & WithFunctionOutput(Aws::String &&value)
Definition TestResult.h:116
const Aws::String & GetComputeUtilization() const
Definition TestResult.h:62
void SetFunctionSummary(FunctionSummary &&value)
Definition TestResult.h:51
void SetFunctionOutput(const Aws::String &value)
Definition TestResult.h:112
void SetComputeUtilization(const char *value)
Definition TestResult.h:66
TestResult & WithFunctionSummary(const FunctionSummary &value)
Definition TestResult.h:52
TestResult & WithFunctionOutput(const Aws::String &value)
Definition TestResult.h:115
void SetFunctionExecutionLogs(Aws::Vector< Aws::String > &&value)
Definition TestResult.h:80
void SetFunctionErrorMessage(const Aws::String &value)
Definition TestResult.h:95
void SetFunctionExecutionLogs(const Aws::Vector< Aws::String > &value)
Definition TestResult.h:79
void SetFunctionSummary(const FunctionSummary &value)
Definition TestResult.h:50
void SetFunctionErrorMessage(Aws::String &&value)
Definition TestResult.h:96
TestResult & WithFunctionOutput(const char *value)
Definition TestResult.h:117
void SetComputeUtilization(Aws::String &&value)
Definition TestResult.h:65
TestResult & WithComputeUtilization(Aws::String &&value)
Definition TestResult.h:68
const Aws::String & GetFunctionOutput() const
Definition TestResult.h:110
void SetComputeUtilization(const Aws::String &value)
Definition TestResult.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector