Struct aws_sdk_eventbridge::operation::test_event_pattern::builders::TestEventPatternInputBuilder
source · #[non_exhaustive]pub struct TestEventPatternInputBuilder { /* private fields */ }
Expand description
A builder for TestEventPatternInput
.
Implementations§
source§impl TestEventPatternInputBuilder
impl TestEventPatternInputBuilder
sourcepub fn event_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
This field is required.sourcepub fn set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn get_event_pattern(&self) -> &Option<String>
pub fn get_event_pattern(&self) -> &Option<String>
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn event(self, input: impl Into<String>) -> Self
pub fn event(self, input: impl Into<String>) -> Self
The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:
-
id
-
account
-
source
-
time
-
region
-
resources
-
detail-type
sourcepub fn set_event(self, input: Option<String>) -> Self
pub fn set_event(self, input: Option<String>) -> Self
The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:
-
id
-
account
-
source
-
time
-
region
-
resources
-
detail-type
sourcepub fn get_event(&self) -> &Option<String>
pub fn get_event(&self) -> &Option<String>
The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:
-
id
-
account
-
source
-
time
-
region
-
resources
-
detail-type
sourcepub fn build(self) -> Result<TestEventPatternInput, BuildError>
pub fn build(self) -> Result<TestEventPatternInput, BuildError>
Consumes the builder and constructs a TestEventPatternInput
.
source§impl TestEventPatternInputBuilder
impl TestEventPatternInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestEventPatternOutput, SdkError<TestEventPatternError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestEventPatternOutput, SdkError<TestEventPatternError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestEventPatternInputBuilder
impl Clone for TestEventPatternInputBuilder
source§fn clone(&self) -> TestEventPatternInputBuilder
fn clone(&self) -> TestEventPatternInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestEventPatternInputBuilder
impl Debug for TestEventPatternInputBuilder
source§impl Default for TestEventPatternInputBuilder
impl Default for TestEventPatternInputBuilder
source§fn default() -> TestEventPatternInputBuilder
fn default() -> TestEventPatternInputBuilder
source§impl PartialEq for TestEventPatternInputBuilder
impl PartialEq for TestEventPatternInputBuilder
source§fn eq(&self, other: &TestEventPatternInputBuilder) -> bool
fn eq(&self, other: &TestEventPatternInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestEventPatternInputBuilder
Auto Trait Implementations§
impl Freeze for TestEventPatternInputBuilder
impl RefUnwindSafe for TestEventPatternInputBuilder
impl Send for TestEventPatternInputBuilder
impl Sync for TestEventPatternInputBuilder
impl Unpin for TestEventPatternInputBuilder
impl UnwindSafe for TestEventPatternInputBuilder
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