#[non_exhaustive]pub struct RelationalDatabaseSnapshotBuilder { /* private fields */ }
Expand description
A builder for RelationalDatabaseSnapshot
.
Implementations§
source§impl RelationalDatabaseSnapshotBuilder
impl RelationalDatabaseSnapshotBuilder
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 snapshot.
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 snapshot.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the database snapshot.
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 snapshot. Include this code in your email to support when you have questions about a database snapshot 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 snapshot. Include this code in your email to support when you have questions about a database snapshot 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 snapshot. Include this code in your email to support when you have questions about a database snapshot 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 snapshot was created.
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 snapshot was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the database snapshot was created.
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The Region name and Availability Zone where the database snapshot 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 snapshot 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 snapshot is located.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type.
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 engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The software of the database snapshot (for example, MySQL
)
sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The software of the database snapshot (for example, MySQL
)
sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The software of the database snapshot (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 the database snapshot (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 the database snapshot (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 the database snapshot (for example, 5.7.23
).
sourcepub fn size_in_gb(self, input: i32) -> Self
pub fn size_in_gb(self, input: i32) -> Self
The size of the disk in GB (for example, 32
) for the database snapshot.
sourcepub fn set_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_size_in_gb(self, input: Option<i32>) -> Self
The size of the disk in GB (for example, 32
) for the database snapshot.
sourcepub fn get_size_in_gb(&self) -> &Option<i32>
pub fn get_size_in_gb(&self) -> &Option<i32>
The size of the disk in GB (for example, 32
) for the database snapshot.
sourcepub fn from_relational_database_name(self, input: impl Into<String>) -> Self
pub fn from_relational_database_name(self, input: impl Into<String>) -> Self
The name of the source database from which the database snapshot was created.
sourcepub fn set_from_relational_database_name(self, input: Option<String>) -> Self
pub fn set_from_relational_database_name(self, input: Option<String>) -> Self
The name of the source database from which the database snapshot was created.
sourcepub fn get_from_relational_database_name(&self) -> &Option<String>
pub fn get_from_relational_database_name(&self) -> &Option<String>
The name of the source database from which the database snapshot was created.
sourcepub fn from_relational_database_arn(self, input: impl Into<String>) -> Self
pub fn from_relational_database_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
sourcepub fn set_from_relational_database_arn(self, input: Option<String>) -> Self
pub fn set_from_relational_database_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
sourcepub fn get_from_relational_database_arn(&self) -> &Option<String>
pub fn get_from_relational_database_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the database from which the database snapshot was created.
sourcepub fn from_relational_database_bundle_id(
self,
input: impl Into<String>
) -> Self
pub fn from_relational_database_bundle_id( self, input: impl Into<String> ) -> Self
The bundle ID of the database from which the database snapshot was created.
sourcepub fn set_from_relational_database_bundle_id(
self,
input: Option<String>
) -> Self
pub fn set_from_relational_database_bundle_id( self, input: Option<String> ) -> Self
The bundle ID of the database from which the database snapshot was created.
sourcepub fn get_from_relational_database_bundle_id(&self) -> &Option<String>
pub fn get_from_relational_database_bundle_id(&self) -> &Option<String>
The bundle ID of the database from which the database snapshot was created.
sourcepub fn from_relational_database_blueprint_id(
self,
input: impl Into<String>
) -> Self
pub fn from_relational_database_blueprint_id( self, input: impl Into<String> ) -> Self
The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
sourcepub fn set_from_relational_database_blueprint_id(
self,
input: Option<String>
) -> Self
pub fn set_from_relational_database_blueprint_id( self, input: Option<String> ) -> Self
The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
sourcepub fn get_from_relational_database_blueprint_id(&self) -> &Option<String>
pub fn get_from_relational_database_blueprint_id(&self) -> &Option<String>
The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.
sourcepub fn build(self) -> RelationalDatabaseSnapshot
pub fn build(self) -> RelationalDatabaseSnapshot
Consumes the builder and constructs a RelationalDatabaseSnapshot
.
Trait Implementations§
source§impl Clone for RelationalDatabaseSnapshotBuilder
impl Clone for RelationalDatabaseSnapshotBuilder
source§fn clone(&self) -> RelationalDatabaseSnapshotBuilder
fn clone(&self) -> RelationalDatabaseSnapshotBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RelationalDatabaseSnapshotBuilder
impl Default for RelationalDatabaseSnapshotBuilder
source§fn default() -> RelationalDatabaseSnapshotBuilder
fn default() -> RelationalDatabaseSnapshotBuilder
source§impl PartialEq for RelationalDatabaseSnapshotBuilder
impl PartialEq for RelationalDatabaseSnapshotBuilder
source§fn eq(&self, other: &RelationalDatabaseSnapshotBuilder) -> bool
fn eq(&self, other: &RelationalDatabaseSnapshotBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelationalDatabaseSnapshotBuilder
Auto Trait Implementations§
impl Freeze for RelationalDatabaseSnapshotBuilder
impl RefUnwindSafe for RelationalDatabaseSnapshotBuilder
impl Send for RelationalDatabaseSnapshotBuilder
impl Sync for RelationalDatabaseSnapshotBuilder
impl Unpin for RelationalDatabaseSnapshotBuilder
impl UnwindSafe for RelationalDatabaseSnapshotBuilder
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> 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 more