Struct aws_sdk_eventbridge::operation::create_partner_event_source::builders::CreatePartnerEventSourceInputBuilder
source · #[non_exhaustive]pub struct CreatePartnerEventSourceInputBuilder { /* private fields */ }
Expand description
A builder for CreatePartnerEventSourceInput
.
Implementations§
source§impl CreatePartnerEventSourceInputBuilder
impl CreatePartnerEventSourceInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the partner event source. This name must be unique and must be in the format partner_name/event_namespace/event_name
. The Amazon Web Services account that wants to use this partner event source must create a partner event bus with a name that matches the name of the partner event source.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the partner event source. This name must be unique and must be in the format partner_name/event_namespace/event_name
. The Amazon Web Services account that wants to use this partner event source must create a partner event bus with a name that matches the name of the partner event source.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the partner event source. This name must be unique and must be in the format partner_name/event_namespace/event_name
. The Amazon Web Services account that wants to use this partner event source must create a partner event bus with a name that matches the name of the partner event source.
sourcepub fn account(self, input: impl Into<String>) -> Self
pub fn account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that is permitted to create a matching partner event bus for this partner event source.
This field is required.sourcepub fn set_account(self, input: Option<String>) -> Self
pub fn set_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID that is permitted to create a matching partner event bus for this partner event source.
sourcepub fn get_account(&self) -> &Option<String>
pub fn get_account(&self) -> &Option<String>
The Amazon Web Services account ID that is permitted to create a matching partner event bus for this partner event source.
sourcepub fn build(self) -> Result<CreatePartnerEventSourceInput, BuildError>
pub fn build(self) -> Result<CreatePartnerEventSourceInput, BuildError>
Consumes the builder and constructs a CreatePartnerEventSourceInput
.
source§impl CreatePartnerEventSourceInputBuilder
impl CreatePartnerEventSourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePartnerEventSourceOutput, SdkError<CreatePartnerEventSourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePartnerEventSourceOutput, SdkError<CreatePartnerEventSourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePartnerEventSourceInputBuilder
impl Clone for CreatePartnerEventSourceInputBuilder
source§fn clone(&self) -> CreatePartnerEventSourceInputBuilder
fn clone(&self) -> CreatePartnerEventSourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreatePartnerEventSourceInputBuilder
impl Default for CreatePartnerEventSourceInputBuilder
source§fn default() -> CreatePartnerEventSourceInputBuilder
fn default() -> CreatePartnerEventSourceInputBuilder
source§impl PartialEq for CreatePartnerEventSourceInputBuilder
impl PartialEq for CreatePartnerEventSourceInputBuilder
source§fn eq(&self, other: &CreatePartnerEventSourceInputBuilder) -> bool
fn eq(&self, other: &CreatePartnerEventSourceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.