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.
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 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 build(self) -> Result<TestEventPatternInput, BuildError>
pub fn build(self) -> Result<TestEventPatternInput, BuildError>
Consumes the builder and constructs a TestEventPatternInput
.
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<TestEventPatternInputBuilder> for TestEventPatternInputBuilder
impl PartialEq<TestEventPatternInputBuilder> 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 ==
.