/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.health.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Summary information about an event, returned by the DescribeEventsForOrganization operation. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OrganizationEvent implements Serializable, Cloneable, StructuredPojo { /** *

* 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 *

*/ private String arn; /** *

* The Amazon Web Service that is affected by the event, such as EC2 and RDS. *

*/ private String service; /** *

* The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. *

*/ private String eventTypeCode; /** *

* A list of event type category codes. Possible values are issue, accountNotification, or * scheduledChange. Currently, the investigation value isn't supported at this time. *

*/ private String eventTypeCategory; /** *

* This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event. *

* */ private String eventScopeCode; /** *

* The Amazon Web Services Region name of the event. *

*/ private String region; /** *

* The date and time that the event began. *

*/ private java.util.Date startTime; /** *

* The date and time that the event ended. *

*/ private java.util.Date endTime; /** *

* The most recent date and time that the event was updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* The most recent status of the event. Possible values are open, closed, and * upcoming. *

*/ private String statusCode; /** *

* 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 *

* * @param 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 setArn(String arn) { this.arn = 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 *

* * @return 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() { return this.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 *

* * @param 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 * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationEvent withArn(String arn) { setArn(arn); return this; } /** *

* The Amazon Web Service that is affected by the event, such as EC2 and RDS. *

* * @param service * The Amazon Web Service that is affected by the event, such as EC2 and RDS. */ public void setService(String service) { this.service = service; } /** *

* The Amazon Web Service that is affected by the event, such as EC2 and RDS. *

* * @return The Amazon Web Service that is affected by the event, such as EC2 and RDS. */ public String getService() { return this.service; } /** *

* The Amazon Web Service that is affected by the event, such as EC2 and RDS. *

* * @param service * The Amazon Web Service that is affected by the event, such as EC2 and RDS. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationEvent withService(String service) { setService(service); return this; } /** *

* The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. *

* * @param eventTypeCode * The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. */ public void setEventTypeCode(String eventTypeCode) { this.eventTypeCode = eventTypeCode; } /** *

* The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. *

* * @return The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For * example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT. */ public String getEventTypeCode() { return this.eventTypeCode; } /** *

* The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. *

* * @param eventTypeCode * The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION. For example, * AWS_EC2_SYSTEM_MAINTENANCE_EVENT. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationEvent withEventTypeCode(String eventTypeCode) { setEventTypeCode(eventTypeCode); return this; } /** *

* A list of event type category codes. Possible values are issue, accountNotification, or * scheduledChange. Currently, the investigation value isn't supported at this time. *

* * @param 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. * @see EventTypeCategory */ public void setEventTypeCategory(String eventTypeCategory) { this.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. *

* * @return A list of event type category codes. Possible values are issue, * accountNotification, or scheduledChange. Currently, the * investigation value isn't supported at this time. * @see EventTypeCategory */ public String getEventTypeCategory() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see EventTypeCategory */ public OrganizationEvent withEventTypeCategory(String eventTypeCategory) { setEventTypeCategory(eventTypeCategory); return this; } /** *

* A list of event type category codes. Possible values are issue, accountNotification, or * scheduledChange. Currently, the investigation value isn't supported at this time. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see EventTypeCategory */ public OrganizationEvent withEventTypeCategory(EventTypeCategory eventTypeCategory) { this.eventTypeCategory = eventTypeCategory.toString(); return this; } /** *

* This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event. *

* * * @param eventScopeCode * This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific * event.

*