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 ==
.impl StructuralPartialEq for CreatePartnerEventSourceInputBuilder
Auto Trait Implementations§
impl Freeze for CreatePartnerEventSourceInputBuilder
impl RefUnwindSafe for CreatePartnerEventSourceInputBuilder
impl Send for CreatePartnerEventSourceInputBuilder
impl Sync for CreatePartnerEventSourceInputBuilder
impl Unpin for CreatePartnerEventSourceInputBuilder
impl UnwindSafe for CreatePartnerEventSourceInputBuilder
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