@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 AWS Health event is a public AWS service event or an account-specific event.
|
String |
getEventTypeCategory()
The category of the event type.
|
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 AWS Region name of the event.
|
String |
getService()
The AWS 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 |
setEndTime(Date endTime)
The date and time that the event ended.
|
void |
setEventScopeCode(String eventScopeCode)
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
|
void |
setEventTypeCategory(String eventTypeCategory)
The category of the event type.
|
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 AWS Region name of the event.
|
void |
setService(String service)
The AWS service that is affected by the event.
|
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 AWS Health event is a public AWS service event or an account-specific event.
|
OrganizationEvent |
withEventScopeCode(String eventScopeCode)
This parameter specifies if the AWS Health event is a public AWS service event or an account-specific event.
|
OrganizationEvent |
withEventTypeCategory(EventTypeCategory eventTypeCategory)
The category of the event type.
|
OrganizationEvent |
withEventTypeCategory(String eventTypeCategory)
The category of the event type.
|
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 AWS Region name of the event.
|
OrganizationEvent |
withService(String service)
The AWS service that is affected by the event.
|
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. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: 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. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: 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. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: 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
. Example:
Example: 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. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: 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. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
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.
public OrganizationEvent 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 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)
The category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
public String getEventTypeCategory()
The category of the event type.
EventTypeCategory
public OrganizationEvent withEventTypeCategory(String eventTypeCategory)
The category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
public OrganizationEvent withEventTypeCategory(EventTypeCategory eventTypeCategory)
The category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
public void setEventScopeCode(String eventScopeCode)
This parameter specifies if the AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS 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 AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if an event affects a service such as
Amazon Elastic Compute Cloud and you have AWS 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 AWS Health event is a public AWS 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 AWS accounts in your organization. For example, if
an event affects a service such as Amazon Elastic Compute Cloud and you have AWS 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 AWS Region name of the event.
region
- The AWS Region name of the event.public String getRegion()
The AWS Region name of the event.
public OrganizationEvent withRegion(String region)
The AWS Region name of the event.
region
- The AWS 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.