@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventType extends Object implements Serializable, Cloneable, StructuredPojo
Contains the metadata about a type of event that is reported by AWS Health. The EventType shows the
category, service, and the event type code of the event. For example, an issue might be the category,
EC2 the service, and AWS_EC2_SYSTEM_MAINTENANCE_EVENT the event type code.
You can use the DescribeEventTypes API operation to return this information about an event.
You can also use the Amazon CloudWatch Events console to create a rule so that you can get notified or take action when AWS Health delivers a specific event to your AWS account. For more information, see Monitor for AWS Health events with Amazon CloudWatch Events in the AWS Health User Guide.
| Constructor and Description |
|---|
EventType() |
| Modifier and Type | Method and Description |
|---|---|
EventType |
clone() |
boolean |
equals(Object obj) |
String |
getCategory()
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
String |
getCode()
The unique identifier for the event type.
|
String |
getService()
The AWS service that is affected by the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCategory(EventTypeCategory category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
void |
setCategory(String category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
void |
setCode(String code)
The unique identifier for the event type.
|
void |
setService(String service)
The AWS service that is affected by the event.
|
String |
toString()
Returns a string representation of this object.
|
EventType |
withCategory(EventTypeCategory category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
EventType |
withCategory(String category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
EventType |
withCode(String code)
The unique identifier for the event type.
|
EventType |
withService(String service)
The AWS service that is affected by the event.
|
public void setService(String service)
The AWS service that is affected by the event. For example, EC2, RDS.
service - The AWS service that is affected by the event. For example, EC2, RDS.public String getService()
The AWS service that is affected by the event. For example, EC2, RDS.
EC2, RDS.public EventType withService(String service)
The AWS service that is affected by the event. For example, EC2, RDS.
service - The AWS service that is affected by the event. For example, EC2, RDS.public void setCode(String code)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
code - The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION ; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public String getCode()
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 EventType withCode(String code)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
code - The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION ; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public void setCategory(String category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic String getCategory()
A list of event type category codes (issue, scheduledChange, or
accountNotification).
issue, scheduledChange, or
accountNotification).EventTypeCategorypublic EventType withCategory(String category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic void setCategory(EventTypeCategory category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic EventType withCategory(EventTypeCategory category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.