#[non_exhaustive]pub struct RelationalDatabaseBuilder { /* private fields */ }
Expand description
A builder for RelationalDatabase
.
Implementations§
Source§impl RelationalDatabaseBuilder
impl RelationalDatabaseBuilder
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The unique name of the database resource in Lightsail.
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The unique name of the database resource in Lightsail.
Sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The unique name of the database resource in Lightsail.
Sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the database.
Sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the database.
Sourcepub fn support_code(self, input: impl Into<String>) -> Self
pub fn support_code(self, input: impl Into<String>) -> Self
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
Sourcepub fn set_support_code(self, input: Option<String>) -> Self
pub fn set_support_code(self, input: Option<String>) -> Self
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
Sourcepub fn get_support_code(&self) -> &Option<String>
pub fn get_support_code(&self) -> &Option<String>
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
Sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the database was created. Formatted in Unix time.
Sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the database was created. Formatted in Unix time.
Sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the database was created. Formatted in Unix time.
Sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The Region name and Availability Zone where the database is located.
Sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
The Region name and Availability Zone where the database is located.
Sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
The Region name and Availability Zone where the database is located.
Sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type for the database (for example, RelationalDatabase
).
Sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type for the database (for example, RelationalDatabase
).
Sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type for the database (for example, RelationalDatabase
).
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
Sourcepub fn relational_database_blueprint_id(self, input: impl Into<String>) -> Self
pub fn relational_database_blueprint_id(self, input: impl Into<String>) -> Self
The blueprint ID for the database. A blueprint describes the major engine version of a database.
Sourcepub fn set_relational_database_blueprint_id(self, input: Option<String>) -> Self
pub fn set_relational_database_blueprint_id(self, input: Option<String>) -> Self
The blueprint ID for the database. A blueprint describes the major engine version of a database.
Sourcepub fn get_relational_database_blueprint_id(&self) -> &Option<String>
pub fn get_relational_database_blueprint_id(&self) -> &Option<String>
The blueprint ID for the database. A blueprint describes the major engine version of a database.
Sourcepub fn relational_database_bundle_id(self, input: impl Into<String>) -> Self
pub fn relational_database_bundle_id(self, input: impl Into<String>) -> Self
The bundle ID for the database. A bundle describes the performance specifications for your database.
Sourcepub fn set_relational_database_bundle_id(self, input: Option<String>) -> Self
pub fn set_relational_database_bundle_id(self, input: Option<String>) -> Self
The bundle ID for the database. A bundle describes the performance specifications for your database.
Sourcepub fn get_relational_database_bundle_id(&self) -> &Option<String>
pub fn get_relational_database_bundle_id(&self) -> &Option<String>
The bundle ID for the database. A bundle describes the performance specifications for your database.
Sourcepub fn master_database_name(self, input: impl Into<String>) -> Self
pub fn master_database_name(self, input: impl Into<String>) -> Self
The name of the master database created when the Lightsail database resource is created.
Sourcepub fn set_master_database_name(self, input: Option<String>) -> Self
pub fn set_master_database_name(self, input: Option<String>) -> Self
The name of the master database created when the Lightsail database resource is created.
Sourcepub fn get_master_database_name(&self) -> &Option<String>
pub fn get_master_database_name(&self) -> &Option<String>
The name of the master database created when the Lightsail database resource is created.
Sourcepub fn hardware(self, input: RelationalDatabaseHardware) -> Self
pub fn hardware(self, input: RelationalDatabaseHardware) -> Self
Describes the hardware of the database.
Sourcepub fn set_hardware(self, input: Option<RelationalDatabaseHardware>) -> Self
pub fn set_hardware(self, input: Option<RelationalDatabaseHardware>) -> Self
Describes the hardware of the database.
Sourcepub fn get_hardware(&self) -> &Option<RelationalDatabaseHardware>
pub fn get_hardware(&self) -> &Option<RelationalDatabaseHardware>
Describes the hardware of the database.
Sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
Describes the current state of the database.
Sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
Describes the current state of the database.
Sourcepub fn secondary_availability_zone(self, input: impl Into<String>) -> Self
pub fn secondary_availability_zone(self, input: impl Into<String>) -> Self
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
Sourcepub fn set_secondary_availability_zone(self, input: Option<String>) -> Self
pub fn set_secondary_availability_zone(self, input: Option<String>) -> Self
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
Sourcepub fn get_secondary_availability_zone(&self) -> &Option<String>
pub fn get_secondary_availability_zone(&self) -> &Option<String>
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
Sourcepub fn backup_retention_enabled(self, input: bool) -> Self
pub fn backup_retention_enabled(self, input: bool) -> Self
A Boolean value indicating whether automated backup retention is enabled for the database.
Sourcepub fn set_backup_retention_enabled(self, input: Option<bool>) -> Self
pub fn set_backup_retention_enabled(self, input: Option<bool>) -> Self
A Boolean value indicating whether automated backup retention is enabled for the database.
Sourcepub fn get_backup_retention_enabled(&self) -> &Option<bool>
pub fn get_backup_retention_enabled(&self) -> &Option<bool>
A Boolean value indicating whether automated backup retention is enabled for the database.
Sourcepub fn pending_modified_values(
self,
input: PendingModifiedRelationalDatabaseValues,
) -> Self
pub fn pending_modified_values( self, input: PendingModifiedRelationalDatabaseValues, ) -> Self
Describes pending database value modifications.
Sourcepub fn set_pending_modified_values(
self,
input: Option<PendingModifiedRelationalDatabaseValues>,
) -> Self
pub fn set_pending_modified_values( self, input: Option<PendingModifiedRelationalDatabaseValues>, ) -> Self
Describes pending database value modifications.
Sourcepub fn get_pending_modified_values(
&self,
) -> &Option<PendingModifiedRelationalDatabaseValues>
pub fn get_pending_modified_values( &self, ) -> &Option<PendingModifiedRelationalDatabaseValues>
Describes pending database value modifications.
Sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The database software (for example, MySQL
).
Sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The database software (for example, MySQL
).
Sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The database software (for example, MySQL
).
Sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The database engine version (for example, 5.7.23
).
Sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The database engine version (for example, 5.7.23
).
Sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The database engine version (for example, 5.7.23
).
Sourcepub fn latest_restorable_time(self, input: DateTime) -> Self
pub fn latest_restorable_time(self, input: DateTime) -> Self
The latest point in time to which the database can be restored. Formatted in Unix time.
Sourcepub fn set_latest_restorable_time(self, input: Option<DateTime>) -> Self
pub fn set_latest_restorable_time(self, input: Option<DateTime>) -> Self
The latest point in time to which the database can be restored. Formatted in Unix time.
Sourcepub fn get_latest_restorable_time(&self) -> &Option<DateTime>
pub fn get_latest_restorable_time(&self) -> &Option<DateTime>
The latest point in time to which the database can be restored. Formatted in Unix time.
Sourcepub fn master_username(self, input: impl Into<String>) -> Self
pub fn master_username(self, input: impl Into<String>) -> Self
The master user name of the database.
Sourcepub fn set_master_username(self, input: Option<String>) -> Self
pub fn set_master_username(self, input: Option<String>) -> Self
The master user name of the database.
Sourcepub fn get_master_username(&self) -> &Option<String>
pub fn get_master_username(&self) -> &Option<String>
The master user name of the database.
Sourcepub fn parameter_apply_status(self, input: impl Into<String>) -> Self
pub fn parameter_apply_status(self, input: impl Into<String>) -> Self
The status of parameter updates for the database.
Sourcepub fn set_parameter_apply_status(self, input: Option<String>) -> Self
pub fn set_parameter_apply_status(self, input: Option<String>) -> Self
The status of parameter updates for the database.
Sourcepub fn get_parameter_apply_status(&self) -> &Option<String>
pub fn get_parameter_apply_status(&self) -> &Option<String>
The status of parameter updates for the database.
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 the database (for example, 16:00-16:30
).
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 the database (for example, 16:00-16:30
).
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 the database (for example, 16:00-16:30
).
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 the database.
In the format ddd:hh24:mi-ddd:hh24:mi
. For 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 the database.
In the format ddd:hh24:mi-ddd:hh24:mi
. For 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 the database.
In the format ddd:hh24:mi-ddd:hh24:mi
. For example, Tue:17:00-Tue:17:30
.
Sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
A Boolean value indicating whether the database is publicly accessible.
Sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
A Boolean value indicating whether the database is publicly accessible.
Sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
A Boolean value indicating whether the database is publicly accessible.
Sourcepub fn master_endpoint(self, input: RelationalDatabaseEndpoint) -> Self
pub fn master_endpoint(self, input: RelationalDatabaseEndpoint) -> Self
The master endpoint for the database.
Sourcepub fn set_master_endpoint(
self,
input: Option<RelationalDatabaseEndpoint>,
) -> Self
pub fn set_master_endpoint( self, input: Option<RelationalDatabaseEndpoint>, ) -> Self
The master endpoint for the database.
Sourcepub fn get_master_endpoint(&self) -> &Option<RelationalDatabaseEndpoint>
pub fn get_master_endpoint(&self) -> &Option<RelationalDatabaseEndpoint>
The master endpoint for the database.
Sourcepub fn pending_maintenance_actions(
self,
input: PendingMaintenanceAction,
) -> Self
pub fn pending_maintenance_actions( self, input: PendingMaintenanceAction, ) -> Self
Appends an item to pending_maintenance_actions
.
To override the contents of this collection use set_pending_maintenance_actions
.
Describes the pending maintenance actions for the database.
Sourcepub fn set_pending_maintenance_actions(
self,
input: Option<Vec<PendingMaintenanceAction>>,
) -> Self
pub fn set_pending_maintenance_actions( self, input: Option<Vec<PendingMaintenanceAction>>, ) -> Self
Describes the pending maintenance actions for the database.
Sourcepub fn get_pending_maintenance_actions(
&self,
) -> &Option<Vec<PendingMaintenanceAction>>
pub fn get_pending_maintenance_actions( &self, ) -> &Option<Vec<PendingMaintenanceAction>>
Describes the pending maintenance actions for the database.
Sourcepub fn ca_certificate_identifier(self, input: impl Into<String>) -> Self
pub fn ca_certificate_identifier(self, input: impl Into<String>) -> Self
The certificate 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
The certificate associated with the database.
Sourcepub fn get_ca_certificate_identifier(&self) -> &Option<String>
pub fn get_ca_certificate_identifier(&self) -> &Option<String>
The certificate associated with the database.
Sourcepub fn build(self) -> RelationalDatabase
pub fn build(self) -> RelationalDatabase
Consumes the builder and constructs a RelationalDatabase
.
Trait Implementations§
Source§impl Clone for RelationalDatabaseBuilder
impl Clone for RelationalDatabaseBuilder
Source§fn clone(&self) -> RelationalDatabaseBuilder
fn clone(&self) -> RelationalDatabaseBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RelationalDatabaseBuilder
impl Debug for RelationalDatabaseBuilder
Source§impl Default for RelationalDatabaseBuilder
impl Default for RelationalDatabaseBuilder
Source§fn default() -> RelationalDatabaseBuilder
fn default() -> RelationalDatabaseBuilder
impl StructuralPartialEq for RelationalDatabaseBuilder
Auto Trait Implementations§
impl Freeze for RelationalDatabaseBuilder
impl RefUnwindSafe for RelationalDatabaseBuilder
impl Send for RelationalDatabaseBuilder
impl Sync for RelationalDatabaseBuilder
impl Unpin for RelationalDatabaseBuilder
impl UnwindSafe for RelationalDatabaseBuilder
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);