#[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 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 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) -> 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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<MaxCountRuleBuilder> for MaxCountRuleBuilder
impl PartialEq<MaxCountRuleBuilder> for MaxCountRuleBuilder
source§fn eq(&self, other: &MaxCountRuleBuilder) -> bool
fn eq(&self, other: &MaxCountRuleBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MaxCountRuleBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MaxCountRuleBuilder
impl Send for MaxCountRuleBuilder
impl Sync for MaxCountRuleBuilder
impl Unpin for MaxCountRuleBuilder
impl UnwindSafe for MaxCountRuleBuilder
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
Mutably borrows from an owned value. Read more