Struct aws_sdk_docdb::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionInputBuilder
source · #[non_exhaustive]pub struct AddSourceIdentifierToSubscriptionInputBuilder { /* private fields */ }
Expand description
A builder for AddSourceIdentifierToSubscriptionInput
.
Implementations§
source§impl AddSourceIdentifierToSubscriptionInputBuilder
impl AddSourceIdentifierToSubscriptionInputBuilder
sourcepub fn subscription_name(self, input: impl Into<String>) -> Self
pub fn subscription_name(self, input: impl Into<String>) -> Self
The name of the Amazon DocumentDB event notification subscription that you want to add a source identifier to.
This field is required.sourcepub fn set_subscription_name(self, input: Option<String>) -> Self
pub fn set_subscription_name(self, input: Option<String>) -> Self
The name of the Amazon DocumentDB event notification subscription that you want to add a source identifier to.
sourcepub fn get_subscription_name(&self) -> &Option<String>
pub fn get_subscription_name(&self) -> &Option<String>
The name of the Amazon DocumentDB event notification subscription that you want to add a source identifier to.
sourcepub fn source_identifier(self, input: impl Into<String>) -> Self
pub fn source_identifier(self, input: impl Into<String>) -> Self
The identifier of the event source to be added:
-
If the source type is an instance, a
DBInstanceIdentifier
must be provided. -
If the source type is a security group, a
DBSecurityGroupName
must be provided. -
If the source type is a parameter group, a
DBParameterGroupName
must be provided. -
If the source type is a snapshot, a
DBSnapshotIdentifier
must be provided.
sourcepub fn set_source_identifier(self, input: Option<String>) -> Self
pub fn set_source_identifier(self, input: Option<String>) -> Self
The identifier of the event source to be added:
-
If the source type is an instance, a
DBInstanceIdentifier
must be provided. -
If the source type is a security group, a
DBSecurityGroupName
must be provided. -
If the source type is a parameter group, a
DBParameterGroupName
must be provided. -
If the source type is a snapshot, a
DBSnapshotIdentifier
must be provided.
sourcepub fn get_source_identifier(&self) -> &Option<String>
pub fn get_source_identifier(&self) -> &Option<String>
The identifier of the event source to be added:
-
If the source type is an instance, a
DBInstanceIdentifier
must be provided. -
If the source type is a security group, a
DBSecurityGroupName
must be provided. -
If the source type is a parameter group, a
DBParameterGroupName
must be provided. -
If the source type is a snapshot, a
DBSnapshotIdentifier
must be provided.
sourcepub fn build(self) -> Result<AddSourceIdentifierToSubscriptionInput, BuildError>
pub fn build(self) -> Result<AddSourceIdentifierToSubscriptionInput, BuildError>
Consumes the builder and constructs a AddSourceIdentifierToSubscriptionInput
.
source§impl AddSourceIdentifierToSubscriptionInputBuilder
impl AddSourceIdentifierToSubscriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AddSourceIdentifierToSubscriptionOutput, SdkError<AddSourceIdentifierToSubscriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AddSourceIdentifierToSubscriptionOutput, SdkError<AddSourceIdentifierToSubscriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AddSourceIdentifierToSubscriptionInputBuilder
impl Clone for AddSourceIdentifierToSubscriptionInputBuilder
source§fn clone(&self) -> AddSourceIdentifierToSubscriptionInputBuilder
fn clone(&self) -> AddSourceIdentifierToSubscriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AddSourceIdentifierToSubscriptionInputBuilder
impl Default for AddSourceIdentifierToSubscriptionInputBuilder
source§fn default() -> AddSourceIdentifierToSubscriptionInputBuilder
fn default() -> AddSourceIdentifierToSubscriptionInputBuilder
source§impl PartialEq for AddSourceIdentifierToSubscriptionInputBuilder
impl PartialEq for AddSourceIdentifierToSubscriptionInputBuilder
source§fn eq(&self, other: &AddSourceIdentifierToSubscriptionInputBuilder) -> bool
fn eq(&self, other: &AddSourceIdentifierToSubscriptionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddSourceIdentifierToSubscriptionInputBuilder
Auto Trait Implementations§
impl Freeze for AddSourceIdentifierToSubscriptionInputBuilder
impl RefUnwindSafe for AddSourceIdentifierToSubscriptionInputBuilder
impl Send for AddSourceIdentifierToSubscriptionInputBuilder
impl Sync for AddSourceIdentifierToSubscriptionInputBuilder
impl Unpin for AddSourceIdentifierToSubscriptionInputBuilder
impl UnwindSafe for AddSourceIdentifierToSubscriptionInputBuilder
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