Struct aws_sdk_mq::operation::promote::builders::PromoteFluentBuilder
source · pub struct PromoteFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to Promote
.
Promotes a data replication replica broker to the primary broker role.
Implementations§
source§impl PromoteFluentBuilder
impl PromoteFluentBuilder
sourcepub fn as_input(&self) -> &PromoteInputBuilder
pub fn as_input(&self) -> &PromoteInputBuilder
Access the Promote as a reference.
sourcepub async fn send(
self
) -> Result<PromoteOutput, SdkError<PromoteError, HttpResponse>>
pub async fn send( self ) -> Result<PromoteOutput, SdkError<PromoteError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PromoteOutput, PromoteError, Self>
pub fn customize( self ) -> CustomizableOperation<PromoteOutput, PromoteError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn broker_id(self, input: impl Into<String>) -> Self
pub fn broker_id(self, input: impl Into<String>) -> Self
The unique ID that Amazon MQ generates for the broker.
sourcepub fn set_broker_id(self, input: Option<String>) -> Self
pub fn set_broker_id(self, input: Option<String>) -> Self
The unique ID that Amazon MQ generates for the broker.
sourcepub fn get_broker_id(&self) -> &Option<String>
pub fn get_broker_id(&self) -> &Option<String>
The unique ID that Amazon MQ generates for the broker.
sourcepub fn mode(self, input: PromoteMode) -> Self
pub fn mode(self, input: PromoteMode) -> Self
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
sourcepub fn set_mode(self, input: Option<PromoteMode>) -> Self
pub fn set_mode(self, input: Option<PromoteMode>) -> Self
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
sourcepub fn get_mode(&self) -> &Option<PromoteMode>
pub fn get_mode(&self) -> &Option<PromoteMode>
The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
Trait Implementations§
source§impl Clone for PromoteFluentBuilder
impl Clone for PromoteFluentBuilder
source§fn clone(&self) -> PromoteFluentBuilder
fn clone(&self) -> PromoteFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more