@Generated(value="software.amazon.awssdk:codegen") public final class OrganizationEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OrganizationEvent.Builder,OrganizationEvent>
Summary information about an event, returned by the DescribeEventsForOrganization operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OrganizationEvent.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The unique identifier for the event.
|
static OrganizationEvent.Builder |
builder() |
Instant |
endTime()
The date and time that the event ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventScopeCode |
eventScopeCode()
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
|
String |
eventScopeCodeAsString()
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
|
EventTypeCategory |
eventTypeCategory()
The category of the event type.
|
String |
eventTypeCategoryAsString()
The category of the event type.
|
String |
eventTypeCode()
The unique identifier for the event type.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTime()
The most recent date and time that the event was updated.
|
String |
region()
The AWS Region name of the event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OrganizationEvent.Builder> |
serializableBuilderClass() |
String |
service()
The AWS service that is affected by the event, such as EC2 and RDS.
|
Instant |
startTime()
The date and time that the event began.
|
EventStatusCode |
statusCode()
The most recent status of the event.
|
String |
statusCodeAsString()
The most recent status of the event.
|
OrganizationEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
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
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
public final String service()
The AWS service that is affected by the event, such as EC2 and RDS.
public final String eventTypeCode()
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
AWS_SERVICE_DESCRIPTION. For
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public final EventTypeCategory eventTypeCategory()
The category of the event type.
If the service returns an enum value that is not available in the current SDK version, eventTypeCategory
will return EventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from eventTypeCategoryAsString().
EventTypeCategorypublic final String eventTypeCategoryAsString()
The category of the event type.
If the service returns an enum value that is not available in the current SDK version, eventTypeCategory
will return EventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from eventTypeCategoryAsString().
EventTypeCategorypublic final EventScopeCode eventScopeCode()
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
If the eventScopeCode value is PUBLIC, then the affectedAccounts value is
always empty.
If the eventScopeCode value is ACCOUNT_SPECIFIC, then the affectedAccounts
value lists the affected AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS accounts that use that service, those account IDs appear in the
response.
If the eventScopeCode value is NONE, then the eventArn that you specified
in the request is invalid or doesn't exist.
If the service returns an enum value that is not available in the current SDK version, eventScopeCode
will return EventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from eventScopeCodeAsString().
If the eventScopeCode value is PUBLIC, then the affectedAccounts
value is always empty.
If the eventScopeCode value is ACCOUNT_SPECIFIC, then the
affectedAccounts value lists the affected AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS accounts that use that
service, those account IDs appear in the response.
If the eventScopeCode value is NONE, then the eventArn that you
specified in the request is invalid or doesn't exist.
EventScopeCodepublic final String eventScopeCodeAsString()
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
If the eventScopeCode value is PUBLIC, then the affectedAccounts value is
always empty.
If the eventScopeCode value is ACCOUNT_SPECIFIC, then the affectedAccounts
value lists the affected AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS accounts that use that service, those account IDs appear in the
response.
If the eventScopeCode value is NONE, then the eventArn that you specified
in the request is invalid or doesn't exist.
If the service returns an enum value that is not available in the current SDK version, eventScopeCode
will return EventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from eventScopeCodeAsString().
If the eventScopeCode value is PUBLIC, then the affectedAccounts
value is always empty.
If the eventScopeCode value is ACCOUNT_SPECIFIC, then the
affectedAccounts value lists the affected AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS accounts that use that
service, those account IDs appear in the response.
If the eventScopeCode value is NONE, then the eventArn that you
specified in the request is invalid or doesn't exist.
EventScopeCodepublic final String region()
The AWS Region name of the event.
public final Instant startTime()
The date and time that the event began.
public final Instant endTime()
The date and time that the event ended.
public final Instant lastUpdatedTime()
The most recent date and time that the event was updated.
public final EventStatusCode statusCode()
The most recent status of the event. Possible values are open, closed, and
upcoming.
If the service returns an enum value that is not available in the current SDK version, statusCode() will
return EventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusCodeAsString().
open, closed, and
upcoming.EventStatusCodepublic final String statusCodeAsString()
The most recent status of the event. Possible values are open, closed, and
upcoming.
If the service returns an enum value that is not available in the current SDK version, statusCode() will
return EventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusCodeAsString().
open, closed, and
upcoming.EventStatusCodepublic OrganizationEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OrganizationEvent.Builder,OrganizationEvent>public static OrganizationEvent.Builder builder()
public static Class<? extends OrganizationEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.