pub struct UpdateRelationalDatabaseFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateRelationalDatabase
.
Allows the update of one or more attributes of a database in Amazon Lightsail.
Updates are applied immediately, or in cases where the updates could result in an outage, are applied during the database's predefined maintenance window.
The update relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.
Implementations§
Source§impl UpdateRelationalDatabaseFluentBuilder
impl UpdateRelationalDatabaseFluentBuilder
Sourcepub fn as_input(&self) -> &UpdateRelationalDatabaseInputBuilder
pub fn as_input(&self) -> &UpdateRelationalDatabaseInputBuilder
Access the UpdateRelationalDatabase as a reference.
Sourcepub async fn send(
self,
) -> Result<UpdateRelationalDatabaseOutput, SdkError<UpdateRelationalDatabaseError, HttpResponse>>
pub async fn send( self, ) -> Result<UpdateRelationalDatabaseOutput, SdkError<UpdateRelationalDatabaseError, 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<UpdateRelationalDatabaseOutput, UpdateRelationalDatabaseError, Self>
pub fn customize( self, ) -> CustomizableOperation<UpdateRelationalDatabaseOutput, UpdateRelationalDatabaseError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn relational_database_name(self, input: impl Into<String>) -> Self
pub fn relational_database_name(self, input: impl Into<String>) -> Self
The name of your Lightsail database resource to update.
Sourcepub fn set_relational_database_name(self, input: Option<String>) -> Self
pub fn set_relational_database_name(self, input: Option<String>) -> Self
The name of your Lightsail database resource to update.
Sourcepub fn get_relational_database_name(&self) -> &Option<String>
pub fn get_relational_database_name(&self) -> &Option<String>
The name of your Lightsail database resource to update.
Sourcepub fn master_user_password(self, input: impl Into<String>) -> Self
pub fn master_user_password(self, input: impl Into<String>) -> Self
The password for the master user. The password can include any printable ASCII character except "/", """, or "@".
MySQL
Constraints: Must contain from 8 to 41 characters.
PostgreSQL
Constraints: Must contain from 8 to 128 characters.
Sourcepub fn set_master_user_password(self, input: Option<String>) -> Self
pub fn set_master_user_password(self, input: Option<String>) -> Self
The password for the master user. The password can include any printable ASCII character except "/", """, or "@".
MySQL
Constraints: Must contain from 8 to 41 characters.
PostgreSQL
Constraints: Must contain from 8 to 128 characters.
Sourcepub fn get_master_user_password(&self) -> &Option<String>
pub fn get_master_user_password(&self) -> &Option<String>
The password for the master user. The password can include any printable ASCII character except "/", """, or "@".
MySQL
Constraints: Must contain from 8 to 41 characters.
PostgreSQL
Constraints: Must contain from 8 to 128 characters.
Sourcepub fn rotate_master_user_password(self, input: bool) -> Self
pub fn rotate_master_user_password(self, input: bool) -> Self
When true
, the master user password is changed to a new strong password generated by Lightsail.
Use the get relational database master user password
operation to get the new password.
Sourcepub fn set_rotate_master_user_password(self, input: Option<bool>) -> Self
pub fn set_rotate_master_user_password(self, input: Option<bool>) -> Self
When true
, the master user password is changed to a new strong password generated by Lightsail.
Use the get relational database master user password
operation to get the new password.
Sourcepub fn get_rotate_master_user_password(&self) -> &Option<bool>
pub fn get_rotate_master_user_password(&self) -> &Option<bool>
When true
, the master user password is changed to a new strong password generated by Lightsail.
Use the get relational database master user password
operation to get the new password.
Sourcepub fn preferred_backup_window(self, input: impl Into<String>) -> Self
pub fn preferred_backup_window(self, input: impl Into<String>) -> Self
The daily time range during which automated backups are created for your database if automated backups are enabled.
Constraints:
-
Must be in the
hh24:mi-hh24:mi
format.Example:
16:00-16:30
-
Specified in Coordinated Universal Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
Sourcepub fn set_preferred_backup_window(self, input: Option<String>) -> Self
pub fn set_preferred_backup_window(self, input: Option<String>) -> Self
The daily time range during which automated backups are created for your database if automated backups are enabled.
Constraints:
-
Must be in the
hh24:mi-hh24:mi
format.Example:
16:00-16:30
-
Specified in Coordinated Universal Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
Sourcepub fn get_preferred_backup_window(&self) -> &Option<String>
pub fn get_preferred_backup_window(&self) -> &Option<String>
The daily time range during which automated backups are created for your database if automated backups are enabled.
Constraints:
-
Must be in the
hh24:mi-hh24:mi
format.Example:
16:00-16:30
-
Specified in Coordinated Universal Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
Sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
The weekly time range during which system maintenance can occur on your database.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Constraints:
-
Must be in the
ddd:hh24:mi-ddd:hh24:mi
format. -
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
-
Must be at least 30 minutes.
-
Specified in Coordinated Universal Time (UTC).
-
Example:
Tue:17:00-Tue:17:30
Sourcepub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
pub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
The weekly time range during which system maintenance can occur on your database.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Constraints:
-
Must be in the
ddd:hh24:mi-ddd:hh24:mi
format. -
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
-
Must be at least 30 minutes.
-
Specified in Coordinated Universal Time (UTC).
-
Example:
Tue:17:00-Tue:17:30
Sourcepub fn get_preferred_maintenance_window(&self) -> &Option<String>
pub fn get_preferred_maintenance_window(&self) -> &Option<String>
The weekly time range during which system maintenance can occur on your database.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Constraints:
-
Must be in the
ddd:hh24:mi-ddd:hh24:mi
format. -
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
-
Must be at least 30 minutes.
-
Specified in Coordinated Universal Time (UTC).
-
Example:
Tue:17:00-Tue:17:30
Sourcepub fn enable_backup_retention(self, input: bool) -> Self
pub fn enable_backup_retention(self, input: bool) -> Self
When true
, enables automated backup retention for your database.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn set_enable_backup_retention(self, input: Option<bool>) -> Self
pub fn set_enable_backup_retention(self, input: Option<bool>) -> Self
When true
, enables automated backup retention for your database.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn get_enable_backup_retention(&self) -> &Option<bool>
pub fn get_enable_backup_retention(&self) -> &Option<bool>
When true
, enables automated backup retention for your database.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn disable_backup_retention(self, input: bool) -> Self
pub fn disable_backup_retention(self, input: bool) -> Self
When true
, disables automated backup retention for your database.
Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot
operation.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn set_disable_backup_retention(self, input: Option<bool>) -> Self
pub fn set_disable_backup_retention(self, input: Option<bool>) -> Self
When true
, disables automated backup retention for your database.
Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot
operation.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn get_disable_backup_retention(&self) -> &Option<bool>
pub fn get_disable_backup_retention(&self) -> &Option<bool>
When true
, disables automated backup retention for your database.
Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot
operation.
Updates are applied during the next maintenance window because this can result in an outage.
Sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Specifies the accessibility options for your database. A value of true
specifies a database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your database.
Sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
Specifies the accessibility options for your database. A value of true
specifies a database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your database.
Sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
Specifies the accessibility options for your database. A value of true
specifies a database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your database.
Sourcepub fn apply_immediately(self, input: bool) -> Self
pub fn apply_immediately(self, input: bool) -> Self
When true
, applies changes immediately. When false
, applies changes during the preferred maintenance window. Some changes may cause an outage.
Default: false
Sourcepub fn set_apply_immediately(self, input: Option<bool>) -> Self
pub fn set_apply_immediately(self, input: Option<bool>) -> Self
When true
, applies changes immediately. When false
, applies changes during the preferred maintenance window. Some changes may cause an outage.
Default: false
Sourcepub fn get_apply_immediately(&self) -> &Option<bool>
pub fn get_apply_immediately(&self) -> &Option<bool>
When true
, applies changes immediately. When false
, applies changes during the preferred maintenance window. Some changes may cause an outage.
Default: false
Sourcepub fn ca_certificate_identifier(self, input: impl Into<String>) -> Self
pub fn ca_certificate_identifier(self, input: impl Into<String>) -> Self
Indicates the certificate that needs to be associated with the database.
Sourcepub fn set_ca_certificate_identifier(self, input: Option<String>) -> Self
pub fn set_ca_certificate_identifier(self, input: Option<String>) -> Self
Indicates the certificate that needs to be associated with the database.
Sourcepub fn get_ca_certificate_identifier(&self) -> &Option<String>
pub fn get_ca_certificate_identifier(&self) -> &Option<String>
Indicates the certificate that needs to be associated with the database.
Sourcepub fn relational_database_blueprint_id(self, input: impl Into<String>) -> Self
pub fn relational_database_blueprint_id(self, input: impl Into<String>) -> Self
This parameter is used to update the major version of the database. Enter the blueprintId
for the major version that you want to update to.
Use the GetRelationalDatabaseBlueprints action to get a list of available blueprint IDs.
Sourcepub fn set_relational_database_blueprint_id(self, input: Option<String>) -> Self
pub fn set_relational_database_blueprint_id(self, input: Option<String>) -> Self
This parameter is used to update the major version of the database. Enter the blueprintId
for the major version that you want to update to.
Use the GetRelationalDatabaseBlueprints action to get a list of available blueprint IDs.
Sourcepub fn get_relational_database_blueprint_id(&self) -> &Option<String>
pub fn get_relational_database_blueprint_id(&self) -> &Option<String>
This parameter is used to update the major version of the database. Enter the blueprintId
for the major version that you want to update to.
Use the GetRelationalDatabaseBlueprints action to get a list of available blueprint IDs.
Trait Implementations§
Source§impl Clone for UpdateRelationalDatabaseFluentBuilder
impl Clone for UpdateRelationalDatabaseFluentBuilder
Source§fn clone(&self) -> UpdateRelationalDatabaseFluentBuilder
fn clone(&self) -> UpdateRelationalDatabaseFluentBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateRelationalDatabaseFluentBuilder
impl !RefUnwindSafe for UpdateRelationalDatabaseFluentBuilder
impl Send for UpdateRelationalDatabaseFluentBuilder
impl Sync for UpdateRelationalDatabaseFluentBuilder
impl Unpin for UpdateRelationalDatabaseFluentBuilder
impl !UnwindSafe for UpdateRelationalDatabaseFluentBuilder
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);