#[non_exhaustive]pub struct ServerReplicationParametersBuilder { /* private fields */ }
Expand description
A builder for ServerReplicationParameters
.
Implementations§
source§impl ServerReplicationParametersBuilder
impl ServerReplicationParametersBuilder
sourcepub fn seed_time(self, input: DateTime) -> Self
pub fn seed_time(self, input: DateTime) -> Self
The seed time for creating a replication job for the server.
sourcepub fn set_seed_time(self, input: Option<DateTime>) -> Self
pub fn set_seed_time(self, input: Option<DateTime>) -> Self
The seed time for creating a replication job for the server.
sourcepub fn get_seed_time(&self) -> &Option<DateTime>
pub fn get_seed_time(&self) -> &Option<DateTime>
The seed time for creating a replication job for the server.
sourcepub fn frequency(self, input: i32) -> Self
pub fn frequency(self, input: i32) -> Self
The frequency of creating replication jobs for the server.
sourcepub fn set_frequency(self, input: Option<i32>) -> Self
pub fn set_frequency(self, input: Option<i32>) -> Self
The frequency of creating replication jobs for the server.
sourcepub fn get_frequency(&self) -> &Option<i32>
pub fn get_frequency(&self) -> &Option<i32>
The frequency of creating replication jobs for the server.
sourcepub fn run_once(self, input: bool) -> Self
pub fn run_once(self, input: bool) -> Self
Indicates whether to run the replication job one time.
sourcepub fn set_run_once(self, input: Option<bool>) -> Self
pub fn set_run_once(self, input: Option<bool>) -> Self
Indicates whether to run the replication job one time.
sourcepub fn get_run_once(&self) -> &Option<bool>
pub fn get_run_once(&self) -> &Option<bool>
Indicates whether to run the replication job one time.
sourcepub fn license_type(self, input: LicenseType) -> Self
pub fn license_type(self, input: LicenseType) -> Self
The license type for creating a replication job for the server.
sourcepub fn set_license_type(self, input: Option<LicenseType>) -> Self
pub fn set_license_type(self, input: Option<LicenseType>) -> Self
The license type for creating a replication job for the server.
sourcepub fn get_license_type(&self) -> &Option<LicenseType>
pub fn get_license_type(&self) -> &Option<LicenseType>
The license type for creating a replication job for the server.
sourcepub fn number_of_recent_amis_to_keep(self, input: i32) -> Self
pub fn number_of_recent_amis_to_keep(self, input: i32) -> Self
The number of recent AMIs to keep when creating a replication job for this server.
sourcepub fn set_number_of_recent_amis_to_keep(self, input: Option<i32>) -> Self
pub fn set_number_of_recent_amis_to_keep(self, input: Option<i32>) -> Self
The number of recent AMIs to keep when creating a replication job for this server.
sourcepub fn get_number_of_recent_amis_to_keep(&self) -> &Option<i32>
pub fn get_number_of_recent_amis_to_keep(&self) -> &Option<i32>
The number of recent AMIs to keep when creating a replication job for this server.
sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
Indicates whether the replication job produces encrypted AMIs.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the replication job produces encrypted AMIs.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the replication job produces encrypted AMIs.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
-
KMS key ID
-
KMS key alias
-
ARN referring to the KMS key ID
-
ARN referring to the KMS key alias
If encrypted is enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
-
KMS key ID
-
KMS key alias
-
ARN referring to the KMS key ID
-
ARN referring to the KMS key alias
If encrypted is enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
-
KMS key ID
-
KMS key alias
-
ARN referring to the KMS key ID
-
ARN referring to the KMS key alias
If encrypted is enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
sourcepub fn build(self) -> ServerReplicationParameters
pub fn build(self) -> ServerReplicationParameters
Consumes the builder and constructs a ServerReplicationParameters
.
Trait Implementations§
source§impl Clone for ServerReplicationParametersBuilder
impl Clone for ServerReplicationParametersBuilder
source§fn clone(&self) -> ServerReplicationParametersBuilder
fn clone(&self) -> ServerReplicationParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServerReplicationParametersBuilder
impl Default for ServerReplicationParametersBuilder
source§fn default() -> ServerReplicationParametersBuilder
fn default() -> ServerReplicationParametersBuilder
source§impl PartialEq for ServerReplicationParametersBuilder
impl PartialEq for ServerReplicationParametersBuilder
source§fn eq(&self, other: &ServerReplicationParametersBuilder) -> bool
fn eq(&self, other: &ServerReplicationParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerReplicationParametersBuilder
Auto Trait Implementations§
impl Freeze for ServerReplicationParametersBuilder
impl RefUnwindSafe for ServerReplicationParametersBuilder
impl Send for ServerReplicationParametersBuilder
impl Sync for ServerReplicationParametersBuilder
impl Unpin for ServerReplicationParametersBuilder
impl UnwindSafe for ServerReplicationParametersBuilder
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