#[non_exhaustive]pub struct OrganizationAffectedEntitiesErrorItemBuilder { /* private fields */ }
Expand description
A builder for OrganizationAffectedEntitiesErrorItem
.
Implementations§
source§impl OrganizationAffectedEntitiesErrorItemBuilder
impl OrganizationAffectedEntitiesErrorItemBuilder
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 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 error_name(self, input: impl Into<String>) -> Self
pub fn error_name(self, input: impl Into<String>) -> Self
The name of the error.
sourcepub fn set_error_name(self, input: Option<String>) -> Self
pub fn set_error_name(self, input: Option<String>) -> Self
The name of the error.
sourcepub fn get_error_name(&self) -> &Option<String>
pub fn get_error_name(&self) -> &Option<String>
The name of the error.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
A message that describes the error. Follow the error message and retry your request.
For example, the InvalidAccountInputError
error message appears if you call the DescribeAffectedEntitiesForOrganization
operation and specify the AccountSpecific
value for the EventScopeCode
parameter, but don't specify an Amazon Web Services account.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
A message that describes the error. Follow the error message and retry your request.
For example, the InvalidAccountInputError
error message appears if you call the DescribeAffectedEntitiesForOrganization
operation and specify the AccountSpecific
value for the EventScopeCode
parameter, but don't specify an Amazon Web Services account.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
A message that describes the error. Follow the error message and retry your request.
For example, the InvalidAccountInputError
error message appears if you call the DescribeAffectedEntitiesForOrganization
operation and specify the AccountSpecific
value for the EventScopeCode
parameter, but don't specify an Amazon Web Services account.
sourcepub fn build(self) -> OrganizationAffectedEntitiesErrorItem
pub fn build(self) -> OrganizationAffectedEntitiesErrorItem
Consumes the builder and constructs a OrganizationAffectedEntitiesErrorItem
.
Trait Implementations§
source§impl Clone for OrganizationAffectedEntitiesErrorItemBuilder
impl Clone for OrganizationAffectedEntitiesErrorItemBuilder
source§fn clone(&self) -> OrganizationAffectedEntitiesErrorItemBuilder
fn clone(&self) -> OrganizationAffectedEntitiesErrorItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for OrganizationAffectedEntitiesErrorItemBuilder
impl Default for OrganizationAffectedEntitiesErrorItemBuilder
source§fn default() -> OrganizationAffectedEntitiesErrorItemBuilder
fn default() -> OrganizationAffectedEntitiesErrorItemBuilder
source§impl PartialEq for OrganizationAffectedEntitiesErrorItemBuilder
impl PartialEq for OrganizationAffectedEntitiesErrorItemBuilder
source§fn eq(&self, other: &OrganizationAffectedEntitiesErrorItemBuilder) -> bool
fn eq(&self, other: &OrganizationAffectedEntitiesErrorItemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OrganizationAffectedEntitiesErrorItemBuilder
Auto Trait Implementations§
impl Freeze for OrganizationAffectedEntitiesErrorItemBuilder
impl RefUnwindSafe for OrganizationAffectedEntitiesErrorItemBuilder
impl Send for OrganizationAffectedEntitiesErrorItemBuilder
impl Sync for OrganizationAffectedEntitiesErrorItemBuilder
impl Unpin for OrganizationAffectedEntitiesErrorItemBuilder
impl UnwindSafe for OrganizationAffectedEntitiesErrorItemBuilder
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