Struct aws_sdk_elasticbeanstalk::model::max_age_rule::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for MaxAgeRule
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> MaxAgeRule
pub fn build(self) -> MaxAgeRule
Consumes the builder and constructs a MaxAgeRule
.