Class CreateStreamUrlResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateStreamUrlResponse.Builder,CreateStreamUrlResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe environment variables made available to the application when a stream session starts.The command-line arguments passed to the application when a stream session starts.final StringThe application that runs in the stream sessions.final Stringarn()The Amazon Resource Name (ARN) that uniquely identifies the stream URL across all Amazon Web Services Regions.builder()final InstantA timestamp that indicates when this resource was created.final StringThe descriptive label for the stream URL.final DisplayConfigurationThe display settings, such as resolution, for stream sessions started from this stream URL.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe date and time when the stream URL expires and stops accepting new stream sessions.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkResponse.final booleanFor responses, this returns true if the service returned a value for the AdditionalEnvironmentVariables property.final booleanFor responses, this returns true if the service returned a value for the AdditionalLaunchArgs property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Locations property.The list of locations, in order of preference, where Amazon GameLift Streams places the stream session.final Protocolprotocol()The data transport protocol used for stream sessions started from this stream URL.final StringThe data transport protocol used for stream sessions started from this stream URL.final IntegerThe number of times the stream URL can still be used to start a stream session.final StringroleArn()The Amazon Resource Name (ARN) of the IAM role that Amazon GameLift Streams assumes during stream sessions started from this stream URL.static Class<? extends CreateStreamUrlResponse.Builder> final IntegerThe maximum length of time, in seconds, that a stream session started from this stream URL can run.final StreamUrlStatusstatus()The current status of the stream URL.final StringThe current status of the stream URL.final StreamUrlStatusReasonAdditional information about why the stream URL is in its current status.final StringAdditional information about why the stream URL is in its current status.final StringThe stream group that runs the stream sessions.final StringThe shareable stream URL.final StringThe unique identifier for the stream URL resource, for examplesu-1AB2C3De4.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final IntegerThe maximum number of times the stream URL can start a stream session.Methods inherited from class software.amazon.awssdk.services.gameliftstreams.model.GameLiftStreamsResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
arn
The Amazon Resource Name (ARN) that uniquely identifies the stream URL across all Amazon Web Services Regions. Format is
arn:aws:gameliftstreams:[AWS Region]:[AWS account]:streamurl/[stream group resource ID]/[stream URL resource ID].- Returns:
- The Amazon Resource Name
(ARN) that uniquely identifies the stream URL across all Amazon Web Services Regions. Format is
arn:aws:gameliftstreams:[AWS Region]:[AWS account]:streamurl/[stream group resource ID]/[stream URL resource ID].
-
streamUrlId
The unique identifier for the stream URL resource, for example
su-1AB2C3De4.- Returns:
- The unique identifier for the stream URL resource, for example
su-1AB2C3De4.
-
streamUrl
The shareable stream URL. Distribute this URL to end users so that they can start and play a stream session in a hosted web player. Treat the stream URL as a secret. Anyone who has it can start a stream session until the stream URL expires, is revoked, or reaches its usage limit.
- Returns:
- The shareable stream URL. Distribute this URL to end users so that they can start and play a stream session in a hosted web player. Treat the stream URL as a secret. Anyone who has it can start a stream session until the stream URL expires, is revoked, or reaches its usage limit.
-
status
The current status of the stream URL. Possible statuses include the following:
-
ACTIVE: The stream URL is valid and can start stream sessions. -
EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions. -
REVOKED: The stream URL was revoked and can no longer start stream sessions. -
LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStreamUrlStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the stream URL. Possible statuses include the following:
-
ACTIVE: The stream URL is valid and can start stream sessions. -
EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions. -
REVOKED: The stream URL was revoked and can no longer start stream sessions. -
LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
-
- See Also:
-
-
statusAsString
The current status of the stream URL. Possible statuses include the following:
-
ACTIVE: The stream URL is valid and can start stream sessions. -
EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions. -
REVOKED: The stream URL was revoked and can no longer start stream sessions. -
LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStreamUrlStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the stream URL. Possible statuses include the following:
-
ACTIVE: The stream URL is valid and can start stream sessions. -
EXPIRED: The stream URL has passed its expiration time and can no longer start stream sessions. -
REVOKED: The stream URL was revoked and can no longer start stream sessions. -
LIMIT_REACHED: The stream URL has been used the maximum number of times and can no longer start stream sessions.
-
- See Also:
-
-
statusReason
Additional information about why the stream URL is in its current status. Amazon GameLift Streams populates this value when the status is
REVOKED. Possible values include the following:-
userRevoked: You revoked the stream URL. -
revokedAndTerminatingSessions: You revoked the stream URL and Amazon GameLift Streams is ending its running stream sessions. -
revokedAndSessionsTerminated: You revoked the stream URL and its running stream sessions have ended. -
streamGroupDeleted: The stream group was deleted, which revoked the stream URL. -
applicationDeleted: The application was deleted, which revoked the stream URL.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnStreamUrlStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- Additional information about why the stream URL is in its current status. Amazon GameLift Streams
populates this value when the status is
REVOKED. Possible values include the following:-
userRevoked: You revoked the stream URL. -
revokedAndTerminatingSessions: You revoked the stream URL and Amazon GameLift Streams is ending its running stream sessions. -
revokedAndSessionsTerminated: You revoked the stream URL and its running stream sessions have ended. -
streamGroupDeleted: The stream group was deleted, which revoked the stream URL. -
applicationDeleted: The application was deleted, which revoked the stream URL.
-
- See Also:
-
-
statusReasonAsString
Additional information about why the stream URL is in its current status. Amazon GameLift Streams populates this value when the status is
REVOKED. Possible values include the following:-
userRevoked: You revoked the stream URL. -
revokedAndTerminatingSessions: You revoked the stream URL and Amazon GameLift Streams is ending its running stream sessions. -
revokedAndSessionsTerminated: You revoked the stream URL and its running stream sessions have ended. -
streamGroupDeleted: The stream group was deleted, which revoked the stream URL. -
applicationDeleted: The application was deleted, which revoked the stream URL.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnStreamUrlStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- Additional information about why the stream URL is in its current status. Amazon GameLift Streams
populates this value when the status is
REVOKED. Possible values include the following:-
userRevoked: You revoked the stream URL. -
revokedAndTerminatingSessions: You revoked the stream URL and Amazon GameLift Streams is ending its running stream sessions. -
revokedAndSessionsTerminated: You revoked the stream URL and its running stream sessions have ended. -
streamGroupDeleted: The stream group was deleted, which revoked the stream URL. -
applicationDeleted: The application was deleted, which revoked the stream URL.
-
- See Also:
-
-
expiresAt
The date and time when the stream URL expires and stops accepting new stream sessions. Timestamps are expressed using in ISO8601 format, such as:
2022-12-27T22:29:40+00:00(UTC).- Returns:
- The date and time when the stream URL expires and stops accepting new stream sessions. Timestamps are
expressed using in ISO8601 format, such as:
2022-12-27T22:29:40+00:00(UTC).
-
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).
-
usageLimit
The maximum number of times the stream URL can start a stream session.
- Returns:
- The maximum number of times the stream URL can start a stream session.
-
remainingUses
The number of times the stream URL can still be used to start a stream session.
- Returns:
- The number of times the stream URL can still be used to start a stream session.
-
streamGroupArn
The stream group that runs the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the stream group resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.- Returns:
- The stream group that runs the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the stream group resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.
-
applicationArn
The application that runs in the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the application resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6.- Returns:
- The application that runs in the stream sessions.
This value is an Amazon Resource Name (ARN) that uniquely identifies the application resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6.
-
protocol
The data transport protocol used for stream sessions started from this stream URL.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The data transport protocol used for stream sessions started from this stream URL.
- See Also:
-
protocolAsString
The data transport protocol used for stream sessions started from this stream URL.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The data transport protocol used for stream sessions started from this stream URL.
- See Also:
-
hasLocations
public final boolean hasLocations()For responses, this returns true if the service returned a value for the Locations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
locations
The list of locations, in order of preference, where Amazon GameLift Streams places the stream session. For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLocations()method.- Returns:
- The list of locations, in order of preference, where Amazon GameLift Streams places the stream session. For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide.
-
sessionLengthSeconds
The maximum length of time, in seconds, that a stream session started from this stream URL can run.
- Returns:
- The maximum length of time, in seconds, that a stream session started from this stream URL can run.
-
description
The descriptive label for the stream URL.
- Returns:
- The descriptive label for the stream URL.
-
hasAdditionalLaunchArgs
public final boolean hasAdditionalLaunchArgs()For responses, this returns true if the service returned a value for the AdditionalLaunchArgs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
additionalLaunchArgs
The command-line arguments passed to the application when a stream session starts.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalLaunchArgs()method.- Returns:
- The command-line arguments passed to the application when a stream session starts.
-
hasAdditionalEnvironmentVariables
public final boolean hasAdditionalEnvironmentVariables()For responses, this returns true if the service returned a value for the AdditionalEnvironmentVariables property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
additionalEnvironmentVariables
The environment variables made available to the application when a stream session starts.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalEnvironmentVariables()method.- Returns:
- The environment variables made available to the application when a stream session starts.
-
roleArn
The Amazon Resource Name (ARN) of the IAM role that Amazon GameLift Streams assumes during stream sessions started from this stream URL. For more information, see Provide AWS credentials to your streaming application in the Amazon GameLift Streams Developer Guide.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role that Amazon GameLift Streams assumes during stream sessions started from this stream URL. For more information, see Provide AWS credentials to your streaming application in the Amazon GameLift Streams Developer Guide.
-
displayConfiguration
The display settings, such as resolution, for stream sessions started from this stream URL.
- Returns:
- The display settings, such as resolution, for stream sessions started from this stream URL.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateStreamUrlResponse.Builder,CreateStreamUrlResponse> - Specified by:
toBuilderin classAwsResponse- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkResponseUsed to retrieve the value of a field from any class that extendsSdkResponse. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkResponse.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkResponse- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-