#[non_exhaustive]pub struct TestFunctionInputBuilder { /* private fields */ }
Expand description
A builder for TestFunctionInput
.
Implementations§
source§impl TestFunctionInputBuilder
impl TestFunctionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the function that you are testing.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the function that you are testing.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The current version (ETag
value) of the function that you are testing, which you can get using DescribeFunction
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The current version (ETag
value) of the function that you are testing, which you can get using DescribeFunction
.
sourcepub fn get_if_match(&self) -> &Option<String>
pub fn get_if_match(&self) -> &Option<String>
The current version (ETag
value) of the function that you are testing, which you can get using DescribeFunction
.
sourcepub fn stage(self, input: FunctionStage) -> Self
pub fn stage(self, input: FunctionStage) -> Self
The stage of the function that you are testing, either DEVELOPMENT
or LIVE
.
sourcepub fn set_stage(self, input: Option<FunctionStage>) -> Self
pub fn set_stage(self, input: Option<FunctionStage>) -> Self
The stage of the function that you are testing, either DEVELOPMENT
or LIVE
.
sourcepub fn get_stage(&self) -> &Option<FunctionStage>
pub fn get_stage(&self) -> &Option<FunctionStage>
The stage of the function that you are testing, either DEVELOPMENT
or LIVE
.
sourcepub fn event_object(self, input: Blob) -> Self
pub fn event_object(self, input: Blob) -> Self
The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
This field is required.sourcepub fn set_event_object(self, input: Option<Blob>) -> Self
pub fn set_event_object(self, input: Option<Blob>) -> Self
The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
sourcepub fn get_event_object(&self) -> &Option<Blob>
pub fn get_event_object(&self) -> &Option<Blob>
The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
sourcepub fn build(self) -> Result<TestFunctionInput, BuildError>
pub fn build(self) -> Result<TestFunctionInput, BuildError>
Consumes the builder and constructs a TestFunctionInput
.
source§impl TestFunctionInputBuilder
impl TestFunctionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestFunctionOutput, SdkError<TestFunctionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestFunctionOutput, SdkError<TestFunctionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestFunctionInputBuilder
impl Clone for TestFunctionInputBuilder
source§fn clone(&self) -> TestFunctionInputBuilder
fn clone(&self) -> TestFunctionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestFunctionInputBuilder
impl Debug for TestFunctionInputBuilder
source§impl Default for TestFunctionInputBuilder
impl Default for TestFunctionInputBuilder
source§fn default() -> TestFunctionInputBuilder
fn default() -> TestFunctionInputBuilder
source§impl PartialEq for TestFunctionInputBuilder
impl PartialEq for TestFunctionInputBuilder
source§fn eq(&self, other: &TestFunctionInputBuilder) -> bool
fn eq(&self, other: &TestFunctionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestFunctionInputBuilder
Auto Trait Implementations§
impl Freeze for TestFunctionInputBuilder
impl RefUnwindSafe for TestFunctionInputBuilder
impl Send for TestFunctionInputBuilder
impl Sync for TestFunctionInputBuilder
impl Unpin for TestFunctionInputBuilder
impl UnwindSafe for TestFunctionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more