#[non_exhaustive]pub struct PutPartnerEventsRequestEntryBuilder { /* private fields */ }Expand description
A builder for PutPartnerEventsRequestEntry.
Implementations§
source§impl PutPartnerEventsRequestEntryBuilder
impl PutPartnerEventsRequestEntryBuilder
sourcepub fn source(self, input: impl Into<String>) -> Self
pub fn source(self, input: impl Into<String>) -> Self
The event source that is generating the entry.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn set_source(self, input: Option<String>) -> Self
pub fn set_source(self, input: Option<String>) -> Self
The event source that is generating the entry.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn get_source(&self) -> &Option<String>
pub fn get_source(&self) -> &Option<String>
The event source that is generating the entry.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn resources(self, input: impl Into<String>) -> Self
pub fn resources(self, input: impl Into<String>) -> Self
Appends an item to resources.
To override the contents of this collection use set_resources.
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
sourcepub fn set_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_resources(self, input: Option<Vec<String>>) -> Self
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
sourcepub fn get_resources(&self) -> &Option<Vec<String>>
pub fn get_resources(&self) -> &Option<Vec<String>>
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
sourcepub fn detail_type(self, input: impl Into<String>) -> Self
pub fn detail_type(self, input: impl Into<String>) -> Self
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn set_detail_type(self, input: Option<String>) -> Self
pub fn set_detail_type(self, input: Option<String>) -> Self
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn get_detail_type(&self) -> &Option<String>
pub fn get_detail_type(&self) -> &Option<String>
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn detail(self, input: impl Into<String>) -> Self
pub fn detail(self, input: impl Into<String>) -> Self
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested sub-objects.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn set_detail(self, input: Option<String>) -> Self
pub fn set_detail(self, input: Option<String>) -> Self
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested sub-objects.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn get_detail(&self) -> &Option<String>
pub fn get_detail(&self) -> &Option<String>
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested sub-objects.
Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that do not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.
sourcepub fn build(self) -> PutPartnerEventsRequestEntry
pub fn build(self) -> PutPartnerEventsRequestEntry
Consumes the builder and constructs a PutPartnerEventsRequestEntry.
Trait Implementations§
source§impl Clone for PutPartnerEventsRequestEntryBuilder
impl Clone for PutPartnerEventsRequestEntryBuilder
source§fn clone(&self) -> PutPartnerEventsRequestEntryBuilder
fn clone(&self) -> PutPartnerEventsRequestEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutPartnerEventsRequestEntryBuilder
impl Default for PutPartnerEventsRequestEntryBuilder
source§fn default() -> PutPartnerEventsRequestEntryBuilder
fn default() -> PutPartnerEventsRequestEntryBuilder
source§impl PartialEq for PutPartnerEventsRequestEntryBuilder
impl PartialEq for PutPartnerEventsRequestEntryBuilder
source§fn eq(&self, other: &PutPartnerEventsRequestEntryBuilder) -> bool
fn eq(&self, other: &PutPartnerEventsRequestEntryBuilder) -> bool
self and other values to be equal, and is used
by ==.