Struct aws_sdk_cloudfront::model::test_result::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for TestResult
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn function_summary(self, input: FunctionSummary) -> Self
pub fn function_summary(self, input: FunctionSummary) -> Self
Contains configuration information and metadata about the CloudFront function that was tested.
sourcepub fn set_function_summary(self, input: Option<FunctionSummary>) -> Self
pub fn set_function_summary(self, input: Option<FunctionSummary>) -> Self
Contains configuration information and metadata about the CloudFront function that was tested.
sourcepub fn compute_utilization(self, input: impl Into<String>) -> Self
pub fn compute_utilization(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_compute_utilization(self, input: Option<String>) -> Self
pub fn set_compute_utilization(self, input: Option<String>) -> Self
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.
sourcepub fn function_execution_logs(self, input: impl Into<String>) -> Self
pub fn function_execution_logs(self, input: impl Into<String>) -> Self
Appends an item to function_execution_logs
.
To override the contents of this collection use set_function_execution_logs
.
Contains the log lines that the function wrote (if any) when running the test.
sourcepub fn set_function_execution_logs(self, input: Option<Vec<String>>) -> Self
pub fn set_function_execution_logs(self, input: Option<Vec<String>>) -> Self
Contains the log lines that the function wrote (if any) when running the test.
sourcepub fn function_error_message(self, input: impl Into<String>) -> Self
pub fn function_error_message(self, input: impl Into<String>) -> Self
If the result of testing the function was an error, this field contains the error message.
sourcepub fn set_function_error_message(self, input: Option<String>) -> Self
pub fn set_function_error_message(self, input: Option<String>) -> Self
If the result of testing the function was an error, this field contains the error message.
sourcepub fn function_output(self, input: impl Into<String>) -> Self
pub fn function_output(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_function_output(self, input: Option<String>) -> Self
pub fn set_function_output(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> TestResult
pub fn build(self) -> TestResult
Consumes the builder and constructs a TestResult
.