Struct aws_sdk_health::types::builders::EntityAccountFilterBuilder
source · #[non_exhaustive]pub struct EntityAccountFilterBuilder { /* private fields */ }
Expand description
A builder for EntityAccountFilter
.
Implementations§
source§impl EntityAccountFilterBuilder
impl EntityAccountFilterBuilder
sourcepub fn event_arn(self, input: impl Into<String>) -> Self
pub fn event_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_event_arn(self, input: Option<String>) -> Self
pub fn set_event_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_event_arn(&self) -> &Option<String>
pub fn get_event_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 aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The 12-digit Amazon Web Services account numbers that contains the affected entities.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The 12-digit Amazon Web Services account numbers that contains the affected entities.
sourcepub fn get_aws_account_id(&self) -> &Option<String>
pub fn get_aws_account_id(&self) -> &Option<String>
The 12-digit Amazon Web Services account numbers that contains the affected entities.
sourcepub fn status_codes(self, input: EntityStatusCode) -> Self
pub fn status_codes(self, input: EntityStatusCode) -> Self
Appends an item to status_codes
.
To override the contents of this collection use set_status_codes
.
A list of entity status codes.
sourcepub fn set_status_codes(self, input: Option<Vec<EntityStatusCode>>) -> Self
pub fn set_status_codes(self, input: Option<Vec<EntityStatusCode>>) -> Self
A list of entity status codes.
sourcepub fn get_status_codes(&self) -> &Option<Vec<EntityStatusCode>>
pub fn get_status_codes(&self) -> &Option<Vec<EntityStatusCode>>
A list of entity status codes.
sourcepub fn build(self) -> Result<EntityAccountFilter, BuildError>
pub fn build(self) -> Result<EntityAccountFilter, BuildError>
Consumes the builder and constructs a EntityAccountFilter
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EntityAccountFilterBuilder
impl Clone for EntityAccountFilterBuilder
source§fn clone(&self) -> EntityAccountFilterBuilder
fn clone(&self) -> EntityAccountFilterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityAccountFilterBuilder
impl Debug for EntityAccountFilterBuilder
source§impl Default for EntityAccountFilterBuilder
impl Default for EntityAccountFilterBuilder
source§fn default() -> EntityAccountFilterBuilder
fn default() -> EntityAccountFilterBuilder
source§impl PartialEq for EntityAccountFilterBuilder
impl PartialEq for EntityAccountFilterBuilder
source§fn eq(&self, other: &EntityAccountFilterBuilder) -> bool
fn eq(&self, other: &EntityAccountFilterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityAccountFilterBuilder
Auto Trait Implementations§
impl Freeze for EntityAccountFilterBuilder
impl RefUnwindSafe for EntityAccountFilterBuilder
impl Send for EntityAccountFilterBuilder
impl Sync for EntityAccountFilterBuilder
impl Unpin for EntityAccountFilterBuilder
impl UnwindSafe for EntityAccountFilterBuilder
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