Struct aws_sdk_mq::operation::promote::builders::PromoteInputBuilder
source · #[non_exhaustive]pub struct PromoteInputBuilder { /* private fields */ }
Expand description
A builder for PromoteInput
.
Implementations§
source§impl PromoteInputBuilder
impl PromoteInputBuilder
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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<PromoteInput, BuildError>
pub fn build(self) -> Result<PromoteInput, BuildError>
Consumes the builder and constructs a PromoteInput
.
source§impl PromoteInputBuilder
impl PromoteInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PromoteOutput, SdkError<PromoteError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PromoteOutput, SdkError<PromoteError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PromoteInputBuilder
impl Clone for PromoteInputBuilder
source§fn clone(&self) -> PromoteInputBuilder
fn clone(&self) -> PromoteInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PromoteInputBuilder
impl Debug for PromoteInputBuilder
source§impl Default for PromoteInputBuilder
impl Default for PromoteInputBuilder
source§fn default() -> PromoteInputBuilder
fn default() -> PromoteInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PromoteInputBuilder
impl PartialEq for PromoteInputBuilder
source§fn eq(&self, other: &PromoteInputBuilder) -> bool
fn eq(&self, other: &PromoteInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PromoteInputBuilder
Auto Trait Implementations§
impl Freeze for PromoteInputBuilder
impl RefUnwindSafe for PromoteInputBuilder
impl Send for PromoteInputBuilder
impl Sync for PromoteInputBuilder
impl Unpin for PromoteInputBuilder
impl UnwindSafe for PromoteInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.