#[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) -> Result<MaxCountRule, BuildError>
pub fn build(self) -> Result<MaxCountRule, BuildError>
Consumes the builder and constructs a MaxCountRule
.
This method will fail if any of the following fields are not set:
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 for MaxCountRuleBuilder
impl PartialEq for MaxCountRuleBuilder
impl StructuralPartialEq for MaxCountRuleBuilder
Auto Trait Implementations§
impl Freeze for MaxCountRuleBuilder
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
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