/* * 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.gamelift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Log entry describing an event that involves Amazon GameLift resources (such as a fleet). In addition to tracking * activity, event codes and messages can provide additional information for troubleshooting and debugging problems. *

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

* A unique identifier for a fleet event. *

*/ private String eventId; /** *

* A unique identifier for an event resource, such as a fleet ID. *

*/ private String resourceId; /** *

* The type of event being logged. *

*

* Fleet state transition events: *

* *

* Fleet creation events (ordered by fleet creation activity): *

* *

* VPC peering events: *

* *

* Spot instance events: *

* *

* Server process events: *

* *

* Game session events: *

* *

* Other fleet events: *

* */ private String eventCode; /** *

* Additional information related to the event. *

*/ private String message; /** *

* Time stamp indicating when this event occurred. Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057"). *

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

* Location of stored logs with additional detail that is related to the event. This is useful for debugging issues. * The URL is valid for 15 minutes. You can also access fleet creation logs through the Amazon GameLift console. *

*/ private String preSignedLogUrl; /** *

* A unique identifier for a fleet event. *

* * @param eventId * A unique identifier for a fleet event. */ public void setEventId(String eventId) { this.eventId = eventId; } /** *

* A unique identifier for a fleet event. *

* * @return A unique identifier for a fleet event. */ public String getEventId() { return this.eventId; } /** *

* A unique identifier for a fleet event. *

* * @param eventId * A unique identifier for a fleet event. * @return Returns a reference to this object so that method calls can be chained together. */ public Event withEventId(String eventId) { setEventId(eventId); return this; } /** *

* A unique identifier for an event resource, such as a fleet ID. *

* * @param resourceId * A unique identifier for an event resource, such as a fleet ID. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* A unique identifier for an event resource, such as a fleet ID. *

* * @return A unique identifier for an event resource, such as a fleet ID. */ public String getResourceId() { return this.resourceId; } /** *

* A unique identifier for an event resource, such as a fleet ID. *

* * @param resourceId * A unique identifier for an event resource, such as a fleet ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Event withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* The type of event being logged. *

*

* Fleet state transition events: *

* *

* Fleet creation events (ordered by fleet creation activity): *

* *

* VPC peering events: *

* *

* Spot instance events: *

* *

* Server process events: *

* *

* Game session events: *

* *

* Other fleet events: *

* * * @param eventCode * The type of event being logged.

*

* Fleet state transition events: *

* *

* Fleet creation events (ordered by fleet creation activity): *

* *

* VPC peering events: *

* *

* Spot instance events: *

* *

* Server process events: *

* *

* Game session events: *

* *

* Other fleet events: *

*