Class StreamSessionSummary

java.lang.Object
software.amazon.awssdk.services.gameliftstreams.model.StreamSessionSummary
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<StreamSessionSummary.Builder,StreamSessionSummary>

@Generated("software.amazon.awssdk:codegen") public final class StreamSessionSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StreamSessionSummary.Builder,StreamSessionSummary>

Describes a Amazon GameLift Streams stream session. To retrieve additional details for the stream session, call GetStreamSession.

See Also:
  • Method Details

    • applicationArn

      public final String applicationArn()

      An Amazon Resource Name (ARN) that uniquely identifies the application resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6.

      Returns:
      An Amazon Resource Name (ARN) that uniquely identifies the application resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6.
    • arn

      public final String arn()

      An Amazon Resource Name (ARN) that uniquely identifies the stream session resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:streamsession/sg-1AB2C3De4/ABC123def4567.

      Returns:
      An Amazon Resource Name (ARN) that uniquely identifies the stream session resource. Example ARN: arn:aws:gameliftstreams:us-west-2:111122223333:streamsession/sg-1AB2C3De4/ABC123def4567.
    • createdAt

      public final Instant createdAt()

      A timestamp that indicates when this resource was created. Timestamps are expressed using in ISO8601 format, such as: 2022-12-27T22:29:40+00:00 (UTC).

      Returns:
      A timestamp that indicates when this resource was created. Timestamps are expressed using in ISO8601 format, such as: 2022-12-27T22:29:40+00:00 (UTC).
    • exportFilesMetadata

      public final ExportFilesMetadata exportFilesMetadata()

      Provides details about the stream session's exported files.

      Returns:
      Provides details about the stream session's exported files.
    • lastUpdatedAt

      public final Instant lastUpdatedAt()

      A timestamp that indicates when this resource was last updated. Timestamps are expressed using in ISO8601 format, such as: 2022-12-27T22:29:40+00:00 (UTC).

      Returns:
      A timestamp that indicates when this resource was last updated. Timestamps are expressed using in ISO8601 format, such as: 2022-12-27T22:29:40+00:00 (UTC).
    • location

      public final String location()

      The location where Amazon GameLift Streams is hosting the stream session.

      A location's name. For example, us-east-1. For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide.

      Returns:
      The location where Amazon GameLift Streams is hosting the stream session.

      A location's name. For example, us-east-1. For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide.

    • protocol

      public final Protocol protocol()

      The data transfer protocol in use with the stream session.

      If the service returns an enum value that is not available in the current SDK version, protocol will return Protocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from protocolAsString().

      Returns:
      The data transfer protocol in use with the stream session.
      See Also:
    • protocolAsString

      public final String protocolAsString()

      The data transfer protocol in use with the stream session.

      If the service returns an enum value that is not available in the current SDK version, protocol will return Protocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from protocolAsString().

      Returns:
      The data transfer protocol in use with the stream session.
      See Also:
    • status

      public final StreamSessionStatus status()

      The current status of the stream session resource. Possible statuses include the following:

      • ACTIVATING: The stream session is starting and preparing to stream.

      • ACTIVE: The stream session is ready to accept client connections.

      • CONNECTED: The stream session has a connected client.

      • PENDING_CLIENT_RECONNECTION: A client has recently disconnected, and the stream session is waiting for the client to reconnect. After a short time, if the client doesn't reconnect, the stream session status transitions to TERMINATED.

      • TERMINATING: The stream session is ending.

      • TERMINATED: The stream session has ended.

      • ERROR: The stream session failed to activate.

      If the service returns an enum value that is not available in the current SDK version, status will return StreamSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The current status of the stream session resource. Possible statuses include the following:

      • ACTIVATING: The stream session is starting and preparing to stream.

      • ACTIVE: The stream session is ready to accept client connections.

      • CONNECTED: The stream session has a connected client.

      • PENDING_CLIENT_RECONNECTION: A client has recently disconnected, and the stream session is waiting for the client to reconnect. After a short time, if the client doesn't reconnect, the stream session status transitions to TERMINATED.

      • TERMINATING: The stream session is ending.

      • TERMINATED: The stream session has ended.

      • ERROR: The stream session failed to activate.

      See Also:
    • statusAsString

      public final String statusAsString()

      The current status of the stream session resource. Possible statuses include the following:

      • ACTIVATING: The stream session is starting and preparing to stream.

      • ACTIVE: The stream session is ready to accept client connections.

      • CONNECTED: The stream session has a connected client.

      • PENDING_CLIENT_RECONNECTION: A client has recently disconnected, and the stream session is waiting for the client to reconnect. After a short time, if the client doesn't reconnect, the stream session status transitions to TERMINATED.

      • TERMINATING: The stream session is ending.

      • TERMINATED: The stream session has ended.

      • ERROR: The stream session failed to activate.

      If the service returns an enum value that is not available in the current SDK version, status will return StreamSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The current status of the stream session resource. Possible statuses include the following:

      • ACTIVATING: The stream session is starting and preparing to stream.

      • ACTIVE: The stream session is ready to accept client connections.

      • CONNECTED: The stream session has a connected client.

      • PENDING_CLIENT_RECONNECTION: A client has recently disconnected, and the stream session is waiting for the client to reconnect. After a short time, if the client doesn't reconnect, the stream session status transitions to TERMINATED.

      • TERMINATING: The stream session is ending.

      • TERMINATED: The stream session has ended.

      • ERROR: The stream session failed to activate.

      See Also:
    • userId

      public final String userId()

      An opaque, unique identifier for an end-user, defined by the developer.

      Returns:
      An opaque, unique identifier for an end-user, defined by the developer.
    • toBuilder

      public StreamSessionSummary.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<StreamSessionSummary.Builder,StreamSessionSummary>
      Returns:
      a builder for type T
    • builder

      public static StreamSessionSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends StreamSessionSummary.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.