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.
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 ==
.