@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OrganizationEvent extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about an event, returned by the DescribeEventsForOrganization operation.
Constructor and Description |
---|
OrganizationEvent() |
Modifier and Type | Method and Description |
---|---|
OrganizationEvent |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The unique identifier for 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, such as EC2 and RDS.
|
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 |
setEndTime(Date endTime)
The date and time that the event ended.
|
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(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, such as EC2 and RDS.
|
void |
setStartTime(Date startTime)
The date and time that the event began.
|
void |
setStatusCode(String statusCode)
The most recent status of the event.
|
String |
toString()
Returns a string representation of this object.
|
OrganizationEvent |
withArn(String arn)
The unique identifier for the event.
|
OrganizationEvent |
withEndTime(Date endTime)
The date and time that the event ended.
|
OrganizationEvent |
withEventScopeCode(EventScopeCode eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
OrganizationEvent |
withEventScopeCode(String eventScopeCode)
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
|
OrganizationEvent |
withEventTypeCategory(EventTypeCategory eventTypeCategory)
A list of event type category codes.
|
OrganizationEvent |
withEventTypeCategory(String eventTypeCategory)
A list of event type category codes.
|
OrganizationEvent |
withEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
OrganizationEvent |
withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
OrganizationEvent |
withRegion(String region)
The Amazon Web Services Region name of the event.
|
OrganizationEvent |
withService(String service)
The Amazon Web Service that is affected by the event, such as EC2 and RDS.
|
OrganizationEvent |
withStartTime(Date startTime)
The date and time that the event began.
|
OrganizationEvent |
withStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
OrganizationEvent |
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 OrganizationEvent 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, such as EC2 and RDS.
service
- The Amazon Web Service that is affected by the event, such as EC2 and RDS.public String getService()
The Amazon Web Service that is affected by the event, such as EC2 and RDS.
public OrganizationEvent withService(String service)
The Amazon Web Service that is affected by the event, such as EC2 and RDS.
service
- The Amazon Web Service that is affected by the event, such as EC2 and 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 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 OrganizationEvent 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 OrganizationEvent 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 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 OrganizationEvent withRegion(String region)
The Amazon Web Services Region name of the event.
region
- The Amazon Web Services Region name of the event.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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 String toString()
toString
in class Object
Object.toString()
public OrganizationEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.