#[non_exhaustive]pub struct AlertManagerDefinitionDescriptionBuilder { /* private fields */ }Expand description
A builder for AlertManagerDefinitionDescription.
Implementations§
source§impl AlertManagerDefinitionDescriptionBuilder
impl AlertManagerDefinitionDescriptionBuilder
sourcepub fn status(self, input: AlertManagerDefinitionStatus) -> Self
pub fn status(self, input: AlertManagerDefinitionStatus) -> Self
A structure that displays the current status of the alert manager definition..
This field is required.sourcepub fn set_status(self, input: Option<AlertManagerDefinitionStatus>) -> Self
pub fn set_status(self, input: Option<AlertManagerDefinitionStatus>) -> Self
A structure that displays the current status of the alert manager definition..
sourcepub fn get_status(&self) -> &Option<AlertManagerDefinitionStatus>
pub fn get_status(&self) -> &Option<AlertManagerDefinitionStatus>
A structure that displays the current status of the alert manager definition..
sourcepub fn data(self, input: Blob) -> Self
pub fn data(self, input: Blob) -> Self
The actual alert manager definition.
For details about the alert manager definition, see AlertManagedDefinitionData.
This field is required.sourcepub fn set_data(self, input: Option<Blob>) -> Self
pub fn set_data(self, input: Option<Blob>) -> Self
The actual alert manager definition.
For details about the alert manager definition, see AlertManagedDefinitionData.
sourcepub fn get_data(&self) -> &Option<Blob>
pub fn get_data(&self) -> &Option<Blob>
The actual alert manager definition.
For details about the alert manager definition, see AlertManagedDefinitionData.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time that the alert manager definition 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 date and time that the alert manager definition was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time that the alert manager definition was created.
sourcepub fn modified_at(self, input: DateTime) -> Self
pub fn modified_at(self, input: DateTime) -> Self
The date and time that the alert manager definition was most recently changed.
This field is required.sourcepub fn set_modified_at(self, input: Option<DateTime>) -> Self
pub fn set_modified_at(self, input: Option<DateTime>) -> Self
The date and time that the alert manager definition was most recently changed.
sourcepub fn get_modified_at(&self) -> &Option<DateTime>
pub fn get_modified_at(&self) -> &Option<DateTime>
The date and time that the alert manager definition was most recently changed.
sourcepub fn build(self) -> Result<AlertManagerDefinitionDescription, BuildError>
pub fn build(self) -> Result<AlertManagerDefinitionDescription, BuildError>
Consumes the builder and constructs a AlertManagerDefinitionDescription.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AlertManagerDefinitionDescriptionBuilder
impl Clone for AlertManagerDefinitionDescriptionBuilder
source§fn clone(&self) -> AlertManagerDefinitionDescriptionBuilder
fn clone(&self) -> AlertManagerDefinitionDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AlertManagerDefinitionDescriptionBuilder
impl Default for AlertManagerDefinitionDescriptionBuilder
source§fn default() -> AlertManagerDefinitionDescriptionBuilder
fn default() -> AlertManagerDefinitionDescriptionBuilder
source§impl PartialEq for AlertManagerDefinitionDescriptionBuilder
impl PartialEq for AlertManagerDefinitionDescriptionBuilder
source§fn eq(&self, other: &AlertManagerDefinitionDescriptionBuilder) -> bool
fn eq(&self, other: &AlertManagerDefinitionDescriptionBuilder) -> bool
self and other values to be equal, and is used
by ==.