#[non_exhaustive]pub struct ArchiveRuleSummaryBuilder { /* private fields */ }Expand description
A builder for ArchiveRuleSummary.
Implementations§
source§impl ArchiveRuleSummaryBuilder
impl ArchiveRuleSummaryBuilder
sourcepub fn rule_name(self, input: impl Into<String>) -> Self
pub fn rule_name(self, input: impl Into<String>) -> Self
The name of the archive rule.
This field is required.sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the archive rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the archive rule.
sourcepub fn filter(self, k: impl Into<String>, v: Criterion) -> Self
pub fn filter(self, k: impl Into<String>, v: Criterion) -> Self
Adds a key-value pair to filter.
To override the contents of this collection use set_filter.
A filter used to define the archive rule.
sourcepub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
pub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
A filter used to define the archive rule.
sourcepub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
pub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
A filter used to define the archive rule.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the archive rule was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the archive rule was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the archive rule was created.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time at which the archive rule was last updated.
This field is required.sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time at which the archive rule was last updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time at which the archive rule was last updated.
sourcepub fn build(self) -> Result<ArchiveRuleSummary, BuildError>
pub fn build(self) -> Result<ArchiveRuleSummary, BuildError>
Consumes the builder and constructs a ArchiveRuleSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ArchiveRuleSummaryBuilder
impl Clone for ArchiveRuleSummaryBuilder
source§fn clone(&self) -> ArchiveRuleSummaryBuilder
fn clone(&self) -> ArchiveRuleSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ArchiveRuleSummaryBuilder
impl Debug for ArchiveRuleSummaryBuilder
source§impl Default for ArchiveRuleSummaryBuilder
impl Default for ArchiveRuleSummaryBuilder
source§fn default() -> ArchiveRuleSummaryBuilder
fn default() -> ArchiveRuleSummaryBuilder
source§impl PartialEq for ArchiveRuleSummaryBuilder
impl PartialEq for ArchiveRuleSummaryBuilder
source§fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.