Class ShaderCacheSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ShaderCacheSummary.Builder,ShaderCacheSummary>
Describes a shader cache associated with an Amazon GameLift Streams application.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringAn Amazon Resource Name (ARN) that uniquely identifies the application resource.The stream groups compatible with this shader cache.static ShaderCacheSummary.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AssociatedStreamGroups property.final inthashCode()final StringA unique identifier for the shader cache, formatted as a 32-character hexadecimal string.final InstantA timestamp that indicates when this resource was last updated.static Class<? extends ShaderCacheSummary.Builder> final ShaderCacheStatusstatus()The current status of the shader cache.final StringThe current status of the shader cache.final LongThe total storage used by all compiled shader files in this shader cache, in bytes.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
identifier
A unique identifier for the shader cache, formatted as a 32-character hexadecimal string. Format is
1271e693c50b940e228582f1ccdd4e27.- Returns:
- A unique identifier for the shader cache, formatted as a 32-character hexadecimal string. Format is
1271e693c50b940e228582f1ccdd4e27.
-
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.
-
status
The current status of the shader cache. Possible statuses include the following:
-
INITIALIZED: Amazon GameLift Streams received the request and is preparing the shader cache. -
PROCESSING: Amazon GameLift Streams is replicating the shader cache to the streaming locations in the associated stream groups. -
READY: The shader cache is replicated and available for use in stream sessions. -
DELETING: Amazon GameLift Streams is deleting the shader cache. -
ERROR: An error occurred during shader cache processing. Create a new shader cache to try again.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnShaderCacheStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the shader cache. Possible statuses include the following:
-
INITIALIZED: Amazon GameLift Streams received the request and is preparing the shader cache. -
PROCESSING: Amazon GameLift Streams is replicating the shader cache to the streaming locations in the associated stream groups. -
READY: The shader cache is replicated and available for use in stream sessions. -
DELETING: Amazon GameLift Streams is deleting the shader cache. -
ERROR: An error occurred during shader cache processing. Create a new shader cache to try again.
-
- See Also:
-
-
statusAsString
The current status of the shader cache. Possible statuses include the following:
-
INITIALIZED: Amazon GameLift Streams received the request and is preparing the shader cache. -
PROCESSING: Amazon GameLift Streams is replicating the shader cache to the streaming locations in the associated stream groups. -
READY: The shader cache is replicated and available for use in stream sessions. -
DELETING: Amazon GameLift Streams is deleting the shader cache. -
ERROR: An error occurred during shader cache processing. Create a new shader cache to try again.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnShaderCacheStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the shader cache. Possible statuses include the following:
-
INITIALIZED: Amazon GameLift Streams received the request and is preparing the shader cache. -
PROCESSING: Amazon GameLift Streams is replicating the shader cache to the streaming locations in the associated stream groups. -
READY: The shader cache is replicated and available for use in stream sessions. -
DELETING: Amazon GameLift Streams is deleting the shader cache. -
ERROR: An error occurred during shader cache processing. Create a new shader cache to try again.
-
- See Also:
-
-
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).
-
storageBytes
The total storage used by all compiled shader files in this shader cache, in bytes.
- Returns:
- The total storage used by all compiled shader files in this shader cache, in bytes.
-
hasAssociatedStreamGroups
public final boolean hasAssociatedStreamGroups()For responses, this returns true if the service returned a value for the AssociatedStreamGroups 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. -
associatedStreamGroups
The stream groups compatible with this shader cache. Compatibility is based on GPU type and GPU driver version. For more information on shader cache compatibility, see Shader caches in the Amazon GameLift Streams Developer Guide.
This value is a set of Amazon Resource Names (ARNs) that uniquely identify stream group resources. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.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
hasAssociatedStreamGroups()method.- Returns:
- The stream groups compatible with this shader cache. Compatibility is based on GPU type and GPU driver
version. For more information on shader cache compatibility, see Shader
caches in the Amazon GameLift Streams Developer Guide.
This value is a set of Amazon Resource Names (ARNs) that uniquely identify stream group resources. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.
-
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<ShaderCacheSummary.Builder,ShaderCacheSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-