Struct aws_sdk_elasticbeanstalk::types::builders::MaxAgeRuleBuilder
source · #[non_exhaustive]pub struct MaxAgeRuleBuilder { /* private fields */ }
Expand description
A builder for MaxAgeRule
.
Implementations§
source§impl MaxAgeRuleBuilder
impl MaxAgeRuleBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Specify true
to apply the rule, or false
to disable it.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specify true
to apply the rule, or false
to disable it.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specify true
to apply the rule, or false
to disable it.
sourcepub fn max_age_in_days(self, input: i32) -> Self
pub fn max_age_in_days(self, input: i32) -> Self
Specify the number of days to retain an application versions.
sourcepub fn set_max_age_in_days(self, input: Option<i32>) -> Self
pub fn set_max_age_in_days(self, input: Option<i32>) -> Self
Specify the number of days to retain an application versions.
sourcepub fn get_max_age_in_days(&self) -> &Option<i32>
pub fn get_max_age_in_days(&self) -> &Option<i32>
Specify the number of days to retain an application versions.
sourcepub fn delete_source_from_s3(self, input: bool) -> Self
pub fn delete_source_from_s3(self, input: bool) -> Self
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
sourcepub fn set_delete_source_from_s3(self, input: Option<bool>) -> Self
pub fn set_delete_source_from_s3(self, input: Option<bool>) -> Self
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
sourcepub fn get_delete_source_from_s3(&self) -> &Option<bool>
pub fn get_delete_source_from_s3(&self) -> &Option<bool>
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
sourcepub fn build(self) -> Result<MaxAgeRule, BuildError>
pub fn build(self) -> Result<MaxAgeRule, BuildError>
Consumes the builder and constructs a MaxAgeRule
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MaxAgeRuleBuilder
impl Clone for MaxAgeRuleBuilder
source§fn clone(&self) -> MaxAgeRuleBuilder
fn clone(&self) -> MaxAgeRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaxAgeRuleBuilder
impl Debug for MaxAgeRuleBuilder
source§impl Default for MaxAgeRuleBuilder
impl Default for MaxAgeRuleBuilder
source§fn default() -> MaxAgeRuleBuilder
fn default() -> MaxAgeRuleBuilder
source§impl PartialEq for MaxAgeRuleBuilder
impl PartialEq for MaxAgeRuleBuilder
impl StructuralPartialEq for MaxAgeRuleBuilder
Auto Trait Implementations§
impl Freeze for MaxAgeRuleBuilder
impl RefUnwindSafe for MaxAgeRuleBuilder
impl Send for MaxAgeRuleBuilder
impl Sync for MaxAgeRuleBuilder
impl Unpin for MaxAgeRuleBuilder
impl UnwindSafe for MaxAgeRuleBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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