@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 Health event is a public Amazon Web Services service event or an account-specific
event.
|
String |
eventScopeCodeAsString()
This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific
event.
|
EventTypeCategory |
eventTypeCategory()
A list of event type category codes.
|
String |
eventTypeCategoryAsString()
A list of event type category codes.
|
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 Amazon Web Services Region name of the event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OrganizationEvent.Builder> |
serializableBuilderClass() |
String |
service()
The Amazon Web Services 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 Amazon Web Services 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()
A list of event type category codes. Possible values are issue, accountNotification, or
scheduledChange. Currently, the investigation value isn't supported at this time.
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().
issue,
accountNotification, or scheduledChange. Currently, the
investigation value isn't supported at this time.EventTypeCategorypublic final String eventTypeCategoryAsString()
A list of event type category codes. Possible values are issue, accountNotification, or
scheduledChange. Currently, the investigation value isn't supported at this time.
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().
issue,
accountNotification, or scheduledChange. Currently, the
investigation value isn't supported at this time.EventTypeCategorypublic final EventScopeCode eventScopeCode()
This parameter specifies if the Health event is a public Amazon Web Services 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 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 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 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 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 Health event is a public Amazon Web Services 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 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 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 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 is NONE, then the eventArn that you
specified in the request is invalid or doesn't exist.
EventScopeCodepublic final String region()
The Amazon Web Services 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 © 2022. All rights reserved.