@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about an Health event.
Health events can be public or account-specific:
Public events might be service events that are not specific to an Amazon Web Services account. For example, if there is an issue with an Amazon Web Services Region, Health provides information about the event, even if you don't use services or resources in that Region.
Account-specific events are specific to either your Amazon Web Services account or an account in your organization. For example, if there's an issue with Amazon Elastic Compute Cloud in a Region that you use, Health provides information about the event and the affected resources in the account.
You can determine if an event is public or account-specific by using the eventScopeCode
parameter. For
more information, see eventScopeCode.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The unique identifier for the event.
|
String |
getAvailabilityZone()
The Amazon Web Services Availability Zone of the event.
|
Date |
getEndTime()
The date and time that the event ended.
|
String |
getEventScopeCode()
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
String |
getEventTypeCategory()
A list of event type category codes.
|
String |
getEventTypeCode()
The unique identifier for the event type.
|
Date |
getLastUpdatedTime()
The most recent date and time that the event was updated.
|
String |
getRegion()
The Amazon Web Services Region name of the event.
|
String |
getService()
The Amazon Web Service that is affected by the event.
|
Date |
getStartTime()
The date and time that the event began.
|
String |
getStatusCode()
The most recent status of the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The unique identifier for the event.
|
void |
setAvailabilityZone(String availabilityZone)
The Amazon Web Services Availability Zone of the event.
|
void |
setEndTime(Date endTime)
The date and time that the event ended.
|
void |
setEventScopeCode(EventScopeCode eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
void |
setEventScopeCode(String eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
void |
setEventTypeCategory(EventTypeCategory eventTypeCategory)
A list of event type category codes.
|
void |
setEventTypeCategory(String eventTypeCategory)
A list of event type category codes.
|
void |
setEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
void |
setRegion(String region)
The Amazon Web Services Region name of the event.
|
void |
setService(String service)
The Amazon Web Service that is affected by the event.
|
void |
setStartTime(Date startTime)
The date and time that the event began.
|
void |
setStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
void |
setStatusCode(String statusCode)
The most recent status of the event.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withArn(String arn)
The unique identifier for the event.
|
Event |
withAvailabilityZone(String availabilityZone)
The Amazon Web Services Availability Zone of the event.
|
Event |
withEndTime(Date endTime)
The date and time that the event ended.
|
Event |
withEventScopeCode(EventScopeCode eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
Event |
withEventScopeCode(String eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
Event |
withEventTypeCategory(EventTypeCategory eventTypeCategory)
A list of event type category codes.
|
Event |
withEventTypeCategory(String eventTypeCategory)
A list of event type category codes.
|
Event |
withEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
Event |
withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
Event |
withRegion(String region)
The Amazon Web Services Region name of the event.
|
Event |
withService(String service)
The Amazon Web Service that is affected by the event.
|
Event |
withStartTime(Date startTime)
The date and time that the event began.
|
Event |
withStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
Event |
withStatusCode(String statusCode)
The most recent status of the event.
|
public void setArn(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
- 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
public String getArn()
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 Event withArn(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
- 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
public void setService(String service)
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
service
- The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.public String getService()
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
EC2
, RDS
.public Event withService(String service)
The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.
service
- The Amazon Web Service that is affected by the event. For example, EC2
, RDS
.public void setEventTypeCode(String eventTypeCode)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
eventTypeCode
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.public String getEventTypeCode()
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 Event withEventTypeCode(String eventTypeCode)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
eventTypeCode
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.public void setEventTypeCategory(String 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.
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.EventTypeCategory
public String getEventTypeCategory()
A list of event type category codes. Possible values are issue
, accountNotification
, or
scheduledChange
. Currently, the investigation
value isn't supported at this time.
issue
,
accountNotification
, or scheduledChange
. Currently, the
investigation
value isn't supported at this time.EventTypeCategory
public Event withEventTypeCategory(String 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.
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.EventTypeCategory
public void setEventTypeCategory(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.
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.EventTypeCategory
public Event withEventTypeCategory(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.
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.EventTypeCategory
public void setRegion(String region)
The Amazon Web Services Region name of the event.
region
- The Amazon Web Services Region name of the event.public String getRegion()
The Amazon Web Services Region name of the event.
public Event withRegion(String region)
The Amazon Web Services Region name of the event.
region
- The Amazon Web Services Region name of the event.public void setAvailabilityZone(String availabilityZone)
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
availabilityZone
- The Amazon Web Services Availability Zone of the event. For example, us-east-1a.public String getAvailabilityZone()
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
public Event withAvailabilityZone(String availabilityZone)
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
availabilityZone
- The Amazon Web Services Availability Zone of the event. For example, us-east-1a.public void setStartTime(Date startTime)
The date and time that the event began.
startTime
- The date and time that the event began.public Date getStartTime()
The date and time that the event began.
public Event withStartTime(Date startTime)
The date and time that the event began.
startTime
- The date and time that the event began.public void setEndTime(Date endTime)
The date and time that the event ended.
endTime
- The date and time that the event ended.public Date getEndTime()
The date and time that the event ended.
public Event withEndTime(Date endTime)
The date and time that the event ended.
endTime
- The date and time that the event ended.public void setLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
lastUpdatedTime
- The most recent date and time that the event was updated.public Date getLastUpdatedTime()
The most recent date and time that the event was updated.
public Event withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
lastUpdatedTime
- The most recent date and time that the event was updated.public void setStatusCode(String statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public String getStatusCode()
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
open
, closed
, and
upcoming
.EventStatusCode
public Event withStatusCode(String statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public void setStatusCode(EventStatusCode statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public Event withStatusCode(EventStatusCode statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public void setEventScopeCode(String eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web 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.
eventScopeCode
- This parameter specifies if the Health event is a public Amazon Web 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.
EventScopeCode
public String getEventScopeCode()
This parameter specifies if the Health event is a public Amazon Web 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 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.
EventScopeCode
public Event withEventScopeCode(String eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web 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.
eventScopeCode
- This parameter specifies if the Health event is a public Amazon Web 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.
EventScopeCode
public void setEventScopeCode(EventScopeCode eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web 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.
eventScopeCode
- This parameter specifies if the Health event is a public Amazon Web 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.
EventScopeCode
public Event withEventScopeCode(EventScopeCode eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web 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.
eventScopeCode
- This parameter specifies if the Health event is a public Amazon Web 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.
EventScopeCode
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.