#[non_exhaustive]pub struct MaxCountRuleBuilder { /* private fields */ }
Expand description
A builder for MaxCountRule
.
Implementations§
source§impl MaxCountRuleBuilder
impl MaxCountRuleBuilder
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_count(self, input: i32) -> Self
pub fn max_count(self, input: i32) -> Self
Specify the maximum number of application versions to retain.
sourcepub fn set_max_count(self, input: Option<i32>) -> Self
pub fn set_max_count(self, input: Option<i32>) -> Self
Specify the maximum number of application versions to retain.
sourcepub fn get_max_count(&self) -> &Option<i32>
pub fn get_max_count(&self) -> &Option<i32>
Specify the maximum number of application versions to retain.
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) -> MaxCountRule
pub fn build(self) -> MaxCountRule
Consumes the builder and constructs a MaxCountRule
.
Trait Implementations§
source§impl Clone for MaxCountRuleBuilder
impl Clone for MaxCountRuleBuilder
source§fn clone(&self) -> MaxCountRuleBuilder
fn clone(&self) -> MaxCountRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaxCountRuleBuilder
impl Debug for MaxCountRuleBuilder
source§impl Default for MaxCountRuleBuilder
impl Default for MaxCountRuleBuilder
source§fn default() -> MaxCountRuleBuilder
fn default() -> MaxCountRuleBuilder
source§impl PartialEq<MaxCountRuleBuilder> for MaxCountRuleBuilder
impl PartialEq<MaxCountRuleBuilder> for MaxCountRuleBuilder
source§fn eq(&self, other: &MaxCountRuleBuilder) -> bool
fn eq(&self, other: &MaxCountRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.