Struct aws_sdk_devopsguru::types::builders::EventBuilder
source · #[non_exhaustive]pub struct EventBuilder { /* private fields */ }
Expand description
A builder for Event
.
Implementations§
source§impl EventBuilder
impl EventBuilder
sourcepub fn resource_collection(self, input: ResourceCollection) -> Self
pub fn resource_collection(self, input: ResourceCollection) -> Self
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn set_resource_collection(self, input: Option<ResourceCollection>) -> Self
pub fn set_resource_collection(self, input: Option<ResourceCollection>) -> Self
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn get_resource_collection(&self) -> &Option<ResourceCollection>
pub fn get_resource_collection(&self) -> &Option<ResourceCollection>
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn time(self, input: DateTime) -> Self
pub fn time(self, input: DateTime) -> Self
A Timestamp
that specifies the time the event occurred.
sourcepub fn set_time(self, input: Option<DateTime>) -> Self
pub fn set_time(self, input: Option<DateTime>) -> Self
A Timestamp
that specifies the time the event occurred.
sourcepub fn get_time(&self) -> &Option<DateTime>
pub fn get_time(&self) -> &Option<DateTime>
A Timestamp
that specifies the time the event occurred.
sourcepub fn event_source(self, input: impl Into<String>) -> Self
pub fn event_source(self, input: impl Into<String>) -> Self
The Amazon Web Services source that emitted the event.
sourcepub fn set_event_source(self, input: Option<String>) -> Self
pub fn set_event_source(self, input: Option<String>) -> Self
The Amazon Web Services source that emitted the event.
sourcepub fn get_event_source(&self) -> &Option<String>
pub fn get_event_source(&self) -> &Option<String>
The Amazon Web Services source that emitted the event.
sourcepub fn data_source(self, input: EventDataSource) -> Self
pub fn data_source(self, input: EventDataSource) -> Self
The source, AWS_CLOUD_TRAIL
or AWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.
sourcepub fn set_data_source(self, input: Option<EventDataSource>) -> Self
pub fn set_data_source(self, input: Option<EventDataSource>) -> Self
The source, AWS_CLOUD_TRAIL
or AWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.
sourcepub fn get_data_source(&self) -> &Option<EventDataSource>
pub fn get_data_source(&self) -> &Option<EventDataSource>
The source, AWS_CLOUD_TRAIL
or AWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.
sourcepub fn event_class(self, input: EventClass) -> Self
pub fn event_class(self, input: EventClass) -> Self
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
sourcepub fn set_event_class(self, input: Option<EventClass>) -> Self
pub fn set_event_class(self, input: Option<EventClass>) -> Self
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
sourcepub fn get_event_class(&self) -> &Option<EventClass>
pub fn get_event_class(&self) -> &Option<EventClass>
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
sourcepub fn resources(self, input: EventResource) -> Self
pub fn resources(self, input: EventResource) -> Self
Appends an item to resources
.
To override the contents of this collection use set_resources
.
An EventResource
object that contains information about the resource that emitted the event.
sourcepub fn set_resources(self, input: Option<Vec<EventResource>>) -> Self
pub fn set_resources(self, input: Option<Vec<EventResource>>) -> Self
An EventResource
object that contains information about the resource that emitted the event.
sourcepub fn get_resources(&self) -> &Option<Vec<EventResource>>
pub fn get_resources(&self) -> &Option<Vec<EventResource>>
An EventResource
object that contains information about the resource that emitted the event.
Trait Implementations§
source§impl Clone for EventBuilder
impl Clone for EventBuilder
source§fn clone(&self) -> EventBuilder
fn clone(&self) -> EventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventBuilder
impl Debug for EventBuilder
source§impl Default for EventBuilder
impl Default for EventBuilder
source§fn default() -> EventBuilder
fn default() -> EventBuilder
source§impl PartialEq for EventBuilder
impl PartialEq for EventBuilder
source§fn eq(&self, other: &EventBuilder) -> bool
fn eq(&self, other: &EventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.