/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the result of testing a CloudFront function with
* TestFunction
.See Also:
AWS
* API Reference
Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline const FunctionSummary& GetFunctionSummary() const{ return m_functionSummary; } /** *Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline bool FunctionSummaryHasBeenSet() const { return m_functionSummaryHasBeenSet; } /** *Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline void SetFunctionSummary(const FunctionSummary& value) { m_functionSummaryHasBeenSet = true; m_functionSummary = value; } /** *Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline void SetFunctionSummary(FunctionSummary&& value) { m_functionSummaryHasBeenSet = true; m_functionSummary = std::move(value); } /** *Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline TestResult& WithFunctionSummary(const FunctionSummary& value) { SetFunctionSummary(value); return *this;} /** *Contains configuration information and metadata about the CloudFront function * that was tested.
*/ inline TestResult& WithFunctionSummary(FunctionSummary&& value) { SetFunctionSummary(std::move(value)); return *this;} /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline const Aws::String& GetComputeUtilization() const{ return m_computeUtilization; } /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline bool ComputeUtilizationHasBeenSet() const { return m_computeUtilizationHasBeenSet; } /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline void SetComputeUtilization(const Aws::String& value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization = value; } /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline void SetComputeUtilization(Aws::String&& value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization = std::move(value); } /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline void SetComputeUtilization(const char* value) { m_computeUtilizationHasBeenSet = true; m_computeUtilization.assign(value); } /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline TestResult& WithComputeUtilization(const Aws::String& value) { SetComputeUtilization(value); return *this;} /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline TestResult& WithComputeUtilization(Aws::String&& value) { SetComputeUtilization(std::move(value)); return *this;} /** *The amount of time that the function took to run as a percentage of the * maximum allowed time. For example, a compute utilization of 35 means that the * function completed in 35% of the maximum allowed time.
*/ inline TestResult& WithComputeUtilization(const char* value) { SetComputeUtilization(value); return *this;} /** *Contains the log lines that the function wrote (if any) when running the * test.
*/ inline const Aws::VectorContains the log lines that the function wrote (if any) when running the * test.
*/ inline bool FunctionExecutionLogsHasBeenSet() const { return m_functionExecutionLogsHasBeenSet; } /** *Contains the log lines that the function wrote (if any) when running the * test.
*/ inline void SetFunctionExecutionLogs(const Aws::VectorContains the log lines that the function wrote (if any) when running the * test.
*/ inline void SetFunctionExecutionLogs(Aws::VectorContains the log lines that the function wrote (if any) when running the * test.
*/ inline TestResult& WithFunctionExecutionLogs(const Aws::VectorContains the log lines that the function wrote (if any) when running the * test.
*/ inline TestResult& WithFunctionExecutionLogs(Aws::VectorContains the log lines that the function wrote (if any) when running the * test.
*/ inline TestResult& AddFunctionExecutionLogs(const Aws::String& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(value); return *this; } /** *Contains the log lines that the function wrote (if any) when running the * test.
*/ inline TestResult& AddFunctionExecutionLogs(Aws::String&& value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(std::move(value)); return *this; } /** *Contains the log lines that the function wrote (if any) when running the * test.
*/ inline TestResult& AddFunctionExecutionLogs(const char* value) { m_functionExecutionLogsHasBeenSet = true; m_functionExecutionLogs.push_back(value); return *this; } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline const Aws::String& GetFunctionErrorMessage() const{ return m_functionErrorMessage; } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline bool FunctionErrorMessageHasBeenSet() const { return m_functionErrorMessageHasBeenSet; } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline void SetFunctionErrorMessage(const Aws::String& value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage = value; } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline void SetFunctionErrorMessage(Aws::String&& value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage = std::move(value); } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline void SetFunctionErrorMessage(const char* value) { m_functionErrorMessageHasBeenSet = true; m_functionErrorMessage.assign(value); } /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline TestResult& WithFunctionErrorMessage(const Aws::String& value) { SetFunctionErrorMessage(value); return *this;} /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline TestResult& WithFunctionErrorMessage(Aws::String&& value) { SetFunctionErrorMessage(std::move(value)); return *this;} /** *If the result of testing the function was an error, this field contains the * error message.
*/ inline TestResult& WithFunctionErrorMessage(const char* value) { SetFunctionErrorMessage(value); return *this;} /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline const Aws::String& GetFunctionOutput() const{ return m_functionOutput; } /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline bool FunctionOutputHasBeenSet() const { return m_functionOutputHasBeenSet; } /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline void SetFunctionOutput(const Aws::String& value) { m_functionOutputHasBeenSet = true; m_functionOutput = value; } /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline void SetFunctionOutput(Aws::String&& value) { m_functionOutputHasBeenSet = true; m_functionOutput = std::move(value); } /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline void SetFunctionOutput(const char* value) { m_functionOutputHasBeenSet = true; m_functionOutput.assign(value); } /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline TestResult& WithFunctionOutput(const Aws::String& value) { SetFunctionOutput(value); return *this;} /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline TestResult& WithFunctionOutput(Aws::String&& value) { SetFunctionOutput(std::move(value)); return *this;} /** *The event object returned by the function. For more information about the * structure of the event object, see Event * object structure in the Amazon CloudFront Developer Guide.
*/ inline TestResult& WithFunctionOutput(const char* value) { SetFunctionOutput(value); return *this;} private: FunctionSummary m_functionSummary; bool m_functionSummaryHasBeenSet = false; Aws::String m_computeUtilization; bool m_computeUtilizationHasBeenSet = false; Aws::Vector