#[non_exhaustive]pub struct AwsAmazonMqBrokerDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsAmazonMqBrokerDetails
.
Implementations§
Source§impl AwsAmazonMqBrokerDetailsBuilder
impl AwsAmazonMqBrokerDetailsBuilder
Sourcepub fn authentication_strategy(self, input: impl Into<String>) -> Self
pub fn authentication_strategy(self, input: impl Into<String>) -> Self
The authentication strategy used to secure the broker. The default is SIMPLE
.
Sourcepub fn set_authentication_strategy(self, input: Option<String>) -> Self
pub fn set_authentication_strategy(self, input: Option<String>) -> Self
The authentication strategy used to secure the broker. The default is SIMPLE
.
Sourcepub fn get_authentication_strategy(&self) -> &Option<String>
pub fn get_authentication_strategy(&self) -> &Option<String>
The authentication strategy used to secure the broker. The default is SIMPLE
.
Sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
pub fn auto_minor_version_upgrade(self, input: bool) -> Self
Whether automatically upgrade new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.
Sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
pub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
Whether automatically upgrade new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.
Sourcepub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>
pub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>
Whether automatically upgrade new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.
Sourcepub fn broker_arn(self, input: impl Into<String>) -> Self
pub fn broker_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the broker.
Sourcepub fn set_broker_arn(self, input: Option<String>) -> Self
pub fn set_broker_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the broker.
Sourcepub fn get_broker_arn(&self) -> &Option<String>
pub fn get_broker_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the broker.
Sourcepub fn broker_name(self, input: impl Into<String>) -> Self
pub fn broker_name(self, input: impl Into<String>) -> Self
The broker's name.
Sourcepub fn set_broker_name(self, input: Option<String>) -> Self
pub fn set_broker_name(self, input: Option<String>) -> Self
The broker's name.
Sourcepub fn get_broker_name(&self) -> &Option<String>
pub fn get_broker_name(&self) -> &Option<String>
The broker's name.
Sourcepub fn deployment_mode(self, input: impl Into<String>) -> Self
pub fn deployment_mode(self, input: impl Into<String>) -> Self
The broker's deployment mode.
Sourcepub fn set_deployment_mode(self, input: Option<String>) -> Self
pub fn set_deployment_mode(self, input: Option<String>) -> Self
The broker's deployment mode.
Sourcepub fn get_deployment_mode(&self) -> &Option<String>
pub fn get_deployment_mode(&self) -> &Option<String>
The broker's deployment mode.
Sourcepub fn encryption_options(
self,
input: AwsAmazonMqBrokerEncryptionOptionsDetails,
) -> Self
pub fn encryption_options( self, input: AwsAmazonMqBrokerEncryptionOptionsDetails, ) -> Self
Encryption options for the broker. Doesn’t apply to RabbitMQ brokers.
Sourcepub fn set_encryption_options(
self,
input: Option<AwsAmazonMqBrokerEncryptionOptionsDetails>,
) -> Self
pub fn set_encryption_options( self, input: Option<AwsAmazonMqBrokerEncryptionOptionsDetails>, ) -> Self
Encryption options for the broker. Doesn’t apply to RabbitMQ brokers.
Sourcepub fn get_encryption_options(
&self,
) -> &Option<AwsAmazonMqBrokerEncryptionOptionsDetails>
pub fn get_encryption_options( &self, ) -> &Option<AwsAmazonMqBrokerEncryptionOptionsDetails>
Encryption options for the broker. Doesn’t apply to RabbitMQ brokers.
Sourcepub fn engine_type(self, input: impl Into<String>) -> Self
pub fn engine_type(self, input: impl Into<String>) -> Self
The type of broker engine.
Sourcepub fn set_engine_type(self, input: Option<String>) -> Self
pub fn set_engine_type(self, input: Option<String>) -> Self
The type of broker engine.
Sourcepub fn get_engine_type(&self) -> &Option<String>
pub fn get_engine_type(&self) -> &Option<String>
The type of broker engine.
Sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version of the broker engine.
Sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version of the broker engine.
Sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The version of the broker engine.
Sourcepub fn host_instance_type(self, input: impl Into<String>) -> Self
pub fn host_instance_type(self, input: impl Into<String>) -> Self
The broker's instance type.
Sourcepub fn set_host_instance_type(self, input: Option<String>) -> Self
pub fn set_host_instance_type(self, input: Option<String>) -> Self
The broker's instance type.
Sourcepub fn get_host_instance_type(&self) -> &Option<String>
pub fn get_host_instance_type(&self) -> &Option<String>
The broker's instance type.
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 ldap_server_metadata(
self,
input: AwsAmazonMqBrokerLdapServerMetadataDetails,
) -> Self
pub fn ldap_server_metadata( self, input: AwsAmazonMqBrokerLdapServerMetadataDetails, ) -> Self
The metadata of the Lightweight Directory Access Protocol (LDAP) server used to authenticate and authorize connections to the broker. This is an optional failover server.
Sourcepub fn set_ldap_server_metadata(
self,
input: Option<AwsAmazonMqBrokerLdapServerMetadataDetails>,
) -> Self
pub fn set_ldap_server_metadata( self, input: Option<AwsAmazonMqBrokerLdapServerMetadataDetails>, ) -> Self
The metadata of the Lightweight Directory Access Protocol (LDAP) server used to authenticate and authorize connections to the broker. This is an optional failover server.
Sourcepub fn get_ldap_server_metadata(
&self,
) -> &Option<AwsAmazonMqBrokerLdapServerMetadataDetails>
pub fn get_ldap_server_metadata( &self, ) -> &Option<AwsAmazonMqBrokerLdapServerMetadataDetails>
The metadata of the Lightweight Directory Access Protocol (LDAP) server used to authenticate and authorize connections to the broker. This is an optional failover server.
Sourcepub fn logs(self, input: AwsAmazonMqBrokerLogsDetails) -> Self
pub fn logs(self, input: AwsAmazonMqBrokerLogsDetails) -> Self
Turns on Amazon CloudWatch logging for brokers.
Sourcepub fn set_logs(self, input: Option<AwsAmazonMqBrokerLogsDetails>) -> Self
pub fn set_logs(self, input: Option<AwsAmazonMqBrokerLogsDetails>) -> Self
Turns on Amazon CloudWatch logging for brokers.
Sourcepub fn get_logs(&self) -> &Option<AwsAmazonMqBrokerLogsDetails>
pub fn get_logs(&self) -> &Option<AwsAmazonMqBrokerLogsDetails>
Turns on Amazon CloudWatch logging for brokers.
Sourcepub fn maintenance_window_start_time(
self,
input: AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails,
) -> Self
pub fn maintenance_window_start_time( self, input: AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails, ) -> Self
The scheduled time period (UTC) during which Amazon MQ begins to apply pending updates or patches to the broker.
Sourcepub fn set_maintenance_window_start_time(
self,
input: Option<AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails>,
) -> Self
pub fn set_maintenance_window_start_time( self, input: Option<AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails>, ) -> Self
The scheduled time period (UTC) during which Amazon MQ begins to apply pending updates or patches to the broker.
Sourcepub fn get_maintenance_window_start_time(
&self,
) -> &Option<AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails>
pub fn get_maintenance_window_start_time( &self, ) -> &Option<AwsAmazonMqBrokerMaintenanceWindowStartTimeDetails>
The scheduled time period (UTC) during which Amazon MQ begins to apply pending updates or patches to the broker.
Sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Permits connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
Permits connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
Permits connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The list of rules (one minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The list of rules (one minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
The list of rules (one minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn storage_type(self, input: impl Into<String>) -> Self
pub fn storage_type(self, input: impl Into<String>) -> Self
The broker's storage type.
Sourcepub fn set_storage_type(self, input: Option<String>) -> Self
pub fn set_storage_type(self, input: Option<String>) -> Self
The broker's storage type.
Sourcepub fn get_storage_type(&self) -> &Option<String>
pub fn get_storage_type(&self) -> &Option<String>
The broker's storage type.
Sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Sourcepub fn users(self, input: AwsAmazonMqBrokerUsersDetails) -> Self
pub fn users(self, input: AwsAmazonMqBrokerUsersDetails) -> Self
Appends an item to users
.
To override the contents of this collection use set_users
.
The list of all broker usernames for the specified broker. Doesn't apply to RabbitMQ brokers.
Sourcepub fn set_users(
self,
input: Option<Vec<AwsAmazonMqBrokerUsersDetails>>,
) -> Self
pub fn set_users( self, input: Option<Vec<AwsAmazonMqBrokerUsersDetails>>, ) -> Self
The list of all broker usernames for the specified broker. Doesn't apply to RabbitMQ brokers.
Sourcepub fn get_users(&self) -> &Option<Vec<AwsAmazonMqBrokerUsersDetails>>
pub fn get_users(&self) -> &Option<Vec<AwsAmazonMqBrokerUsersDetails>>
The list of all broker usernames for the specified broker. Doesn't apply to RabbitMQ brokers.
Sourcepub fn build(self) -> AwsAmazonMqBrokerDetails
pub fn build(self) -> AwsAmazonMqBrokerDetails
Consumes the builder and constructs a AwsAmazonMqBrokerDetails
.
Trait Implementations§
Source§impl Clone for AwsAmazonMqBrokerDetailsBuilder
impl Clone for AwsAmazonMqBrokerDetailsBuilder
Source§fn clone(&self) -> AwsAmazonMqBrokerDetailsBuilder
fn clone(&self) -> AwsAmazonMqBrokerDetailsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AwsAmazonMqBrokerDetailsBuilder
impl Default for AwsAmazonMqBrokerDetailsBuilder
Source§fn default() -> AwsAmazonMqBrokerDetailsBuilder
fn default() -> AwsAmazonMqBrokerDetailsBuilder
Source§impl PartialEq for AwsAmazonMqBrokerDetailsBuilder
impl PartialEq for AwsAmazonMqBrokerDetailsBuilder
Source§fn eq(&self, other: &AwsAmazonMqBrokerDetailsBuilder) -> bool
fn eq(&self, other: &AwsAmazonMqBrokerDetailsBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AwsAmazonMqBrokerDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsAmazonMqBrokerDetailsBuilder
impl RefUnwindSafe for AwsAmazonMqBrokerDetailsBuilder
impl Send for AwsAmazonMqBrokerDetailsBuilder
impl Sync for AwsAmazonMqBrokerDetailsBuilder
impl Unpin for AwsAmazonMqBrokerDetailsBuilder
impl UnwindSafe for AwsAmazonMqBrokerDetailsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);