Struct aws_sdk_health::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 arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn service(self, input: impl Into<String>) -> Self
pub fn service(self, input: impl Into<String>) -> Self
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
sourcepub fn set_service(self, input: Option<String>) -> Self
pub fn set_service(self, input: Option<String>) -> Self
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
sourcepub fn get_service(&self) -> &Option<String>
pub fn get_service(&self) -> &Option<String>
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
sourcepub fn event_type_code(self, input: impl Into<String>) -> Self
pub fn event_type_code(self, input: impl Into<String>) -> Self
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
sourcepub fn set_event_type_code(self, input: Option<String>) -> Self
pub fn set_event_type_code(self, input: Option<String>) -> Self
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
sourcepub fn get_event_type_code(&self) -> &Option<String>
pub fn get_event_type_code(&self) -> &Option<String>
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
sourcepub fn event_type_category(self, input: EventTypeCategory) -> Self
pub fn event_type_category(self, input: EventTypeCategory) -> Self
A list of event type category codes. Possible values are issue
, accountNotification
, or scheduledChange
. Currently, the investigation
value isn't supported at this time.
sourcepub fn set_event_type_category(self, input: Option<EventTypeCategory>) -> Self
pub fn set_event_type_category(self, input: Option<EventTypeCategory>) -> Self
A list of event type category codes. Possible values are issue
, accountNotification
, or scheduledChange
. Currently, the investigation
value isn't supported at this time.
sourcepub fn get_event_type_category(&self) -> &Option<EventTypeCategory>
pub fn get_event_type_category(&self) -> &Option<EventTypeCategory>
A list of event type category codes. Possible values are issue
, accountNotification
, or scheduledChange
. Currently, the investigation
value isn't supported at this time.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region name of the event.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region name of the event.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region name of the event.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The date and time that the event began.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The date and time that the event began.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The date and time that the event began.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The date and time that the event ended.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The date and time that the event ended.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The most recent date and time that the event was updated.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The most recent date and time that the event was updated.
sourcepub fn get_last_updated_time(&self) -> &Option<DateTime>
pub fn get_last_updated_time(&self) -> &Option<DateTime>
The most recent date and time that the event was updated.
sourcepub fn status_code(self, input: EventStatusCode) -> Self
pub fn status_code(self, input: EventStatusCode) -> Self
The most recent status of the event. Possible values are open
, closed
, and upcoming
.
sourcepub fn set_status_code(self, input: Option<EventStatusCode>) -> Self
pub fn set_status_code(self, input: Option<EventStatusCode>) -> Self
The most recent status of the event. Possible values are open
, closed
, and upcoming
.
sourcepub fn get_status_code(&self) -> &Option<EventStatusCode>
pub fn get_status_code(&self) -> &Option<EventStatusCode>
The most recent status of the event. Possible values are open
, closed
, and upcoming
.
sourcepub fn event_scope_code(self, input: EventScopeCode) -> Self
pub fn event_scope_code(self, input: EventScopeCode) -> Self
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
-
If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. -
If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
sourcepub fn set_event_scope_code(self, input: Option<EventScopeCode>) -> Self
pub fn set_event_scope_code(self, input: Option<EventScopeCode>) -> Self
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
-
If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. -
If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
sourcepub fn get_event_scope_code(&self) -> &Option<EventScopeCode>
pub fn get_event_scope_code(&self) -> &Option<EventScopeCode>
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
-
If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. -
If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
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 ==
.impl StructuralPartialEq for EventBuilder
Auto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
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> 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