Class OrganizationEvent
- java.lang.Object
-
- software.amazon.awssdk.services.health.model.OrganizationEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OrganizationEvent.Builder,OrganizationEvent>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrganizationEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The unique identifier for the event.static OrganizationEvent.Builderbuilder()InstantendTime()The date and time that the event ended.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventScopeCodeeventScopeCode()This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.StringeventScopeCodeAsString()This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.EventTypeCategoryeventTypeCategory()A list of event type category codes.StringeventTypeCategoryAsString()A list of event type category codes.StringeventTypeCode()The unique identifier for the event type.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdatedTime()The most recent date and time that the event was updated.Stringregion()The Amazon Web Services Region name of the event.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends OrganizationEvent.Builder>serializableBuilderClass()Stringservice()The Amazon Web Services service that is affected by the event, such as EC2 and RDS.InstantstartTime()The date and time that the event began.EventStatusCodestatusCode()The most recent status of the event.StringstatusCodeAsString()The most recent status of the event.OrganizationEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public 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_IDformat.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- Returns:
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_IDformat.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
-
service
public final String service()
The Amazon Web Services service that is affected by the event, such as EC2 and RDS.
- Returns:
- The Amazon Web Services service that is affected by the event, such as EC2 and RDS.
-
eventTypeCode
public final String eventTypeCode()
The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION. For example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.- Returns:
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION. For example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
-
eventTypeCategory
public final EventTypeCategory eventTypeCategory()
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
eventTypeCategorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeCategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
EventTypeCategory
-
eventTypeCategoryAsString
public final String eventTypeCategoryAsString()
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
eventTypeCategorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventTypeCategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
EventTypeCategory
-
eventScopeCode
public 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
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue 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
eventScopeCodevalue isNONE, then theeventArnthat 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,
eventScopeCodewill returnEventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventScopeCodeAsString().- Returns:
- This parameter specifies if the Health event is a public Amazon Web Services service event or an
account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue 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
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
-
- See Also:
EventScopeCode
-
-
eventScopeCodeAsString
public 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
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue 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
eventScopeCodevalue isNONE, then theeventArnthat 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,
eventScopeCodewill returnEventScopeCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventScopeCodeAsString().- Returns:
- This parameter specifies if the Health event is a public Amazon Web Services service event or an
account-specific event.
-
If the
eventScopeCodevalue isPUBLIC, then theaffectedAccountsvalue is always empty. -
If the
eventScopeCodevalue isACCOUNT_SPECIFIC, then theaffectedAccountsvalue 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
eventScopeCodevalue isNONE, then theeventArnthat you specified in the request is invalid or doesn't exist.
-
- See Also:
EventScopeCode
-
-
region
public final String region()
The Amazon Web Services Region name of the event.
- Returns:
- The Amazon Web Services Region name of the event.
-
startTime
public final Instant startTime()
The date and time that the event began.
- Returns:
- The date and time that the event began.
-
endTime
public final Instant endTime()
The date and time that the event ended.
- Returns:
- The date and time that the event ended.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
The most recent date and time that the event was updated.
- Returns:
- The most recent date and time that the event was updated.
-
statusCode
public final EventStatusCode statusCode()
The most recent status of the event. Possible values are
open,closed, andupcoming.If the service returns an enum value that is not available in the current SDK version,
statusCode()will returnEventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The most recent status of the event. Possible values are
open,closed, andupcoming. - See Also:
EventStatusCode
-
statusCodeAsString
public final String statusCodeAsString()
The most recent status of the event. Possible values are
open,closed, andupcoming.If the service returns an enum value that is not available in the current SDK version,
statusCode()will returnEventStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The most recent status of the event. Possible values are
open,closed, andupcoming. - See Also:
EventStatusCode
-
toBuilder
public OrganizationEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OrganizationEvent.Builder,OrganizationEvent>
-
builder
public static OrganizationEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends OrganizationEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-