Class StreamConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.nimble.model.StreamConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StreamConfiguration.Builder,StreamConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class StreamConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StreamConfiguration.Builder,StreamConfiguration>
A configuration for a streaming session.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStreamConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomaticTerminationModeautomaticTerminationMode()Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in aSTOPPEDstate.StringautomaticTerminationModeAsString()Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in aSTOPPEDstate.static StreamConfiguration.Builderbuilder()StreamingClipboardModeclipboardMode()Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.StringclipboardModeAsString()Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.List<StreamingInstanceType>ec2InstanceTypes()The EC2 instance types that users can select from when launching a streaming session with this launch profile.List<String>ec2InstanceTypesAsStrings()The EC2 instance types that users can select from when launching a streaming session with this launch profile.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEc2InstanceTypes()For responses, this returns true if the service returned a value for the Ec2InstanceTypes property.inthashCode()booleanhasStreamingImageIds()For responses, this returns true if the service returned a value for the StreamingImageIds property.IntegermaxSessionLengthInMinutes()The length of time, in minutes, that a streaming session can be active before it is stopped or terminated.IntegermaxStoppedSessionLengthInMinutes()Integer that determines if you can start and stop your sessions and how long a session can stay in theSTOPPEDstate.List<SdkField<?>>sdkFields()static Class<? extends StreamConfiguration.Builder>serializableBuilderClass()StreamConfigurationSessionBackupsessionBackup()Information about the streaming session backup.SessionPersistenceModesessionPersistenceMode()Determine if a streaming session created from this launch profile can configure persistent storage.StringsessionPersistenceModeAsString()Determine if a streaming session created from this launch profile can configure persistent storage.StreamConfigurationSessionStoragesessionStorage()The upload storage for a streaming session.List<String>streamingImageIds()The streaming images that users can select from when launching a streaming session with this launch profile.StreamConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.VolumeConfigurationvolumeConfiguration()Custom volume configuration for the root volumes that are attached to streaming sessions.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
automaticTerminationMode
public final AutomaticTerminationMode automaticTerminationMode()
Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a
STOPPEDstate.-
When
ACTIVATED, the streaming session is scheduled for termination after being in theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED. When allowed, the default value for this parameter isDEACTIVATED.If the service returns an enum value that is not available in the current SDK version,
automaticTerminationModewill returnAutomaticTerminationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromautomaticTerminationModeAsString().- Returns:
- Indicates if a streaming session created from this launch profile should be terminated automatically or
retained without termination after being in a
STOPPEDstate.-
When
ACTIVATED, the streaming session is scheduled for termination after being in theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED. When allowed, the default value for this parameter isDEACTIVATED. -
- See Also:
AutomaticTerminationMode
-
-
automaticTerminationModeAsString
public final String automaticTerminationModeAsString()
Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a
STOPPEDstate.-
When
ACTIVATED, the streaming session is scheduled for termination after being in theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED. When allowed, the default value for this parameter isDEACTIVATED.If the service returns an enum value that is not available in the current SDK version,
automaticTerminationModewill returnAutomaticTerminationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromautomaticTerminationModeAsString().- Returns:
- Indicates if a streaming session created from this launch profile should be terminated automatically or
retained without termination after being in a
STOPPEDstate.-
When
ACTIVATED, the streaming session is scheduled for termination after being in theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED. When allowed, the default value for this parameter isDEACTIVATED. -
- See Also:
AutomaticTerminationMode
-
-
clipboardMode
public final StreamingClipboardMode clipboardMode()
Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
If the service returns an enum value that is not available in the current SDK version,
clipboardModewill returnStreamingClipboardMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromclipboardModeAsString().- Returns:
- Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
- See Also:
StreamingClipboardMode
-
clipboardModeAsString
public final String clipboardModeAsString()
Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
If the service returns an enum value that is not available in the current SDK version,
clipboardModewill returnStreamingClipboardMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromclipboardModeAsString().- Returns:
- Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
- See Also:
StreamingClipboardMode
-
ec2InstanceTypes
public final List<StreamingInstanceType> ec2InstanceTypes()
The EC2 instance types that users can select from when launching a streaming session with this launch profile.
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
hasEc2InstanceTypes()method.- Returns:
- The EC2 instance types that users can select from when launching a streaming session with this launch profile.
-
hasEc2InstanceTypes
public final boolean hasEc2InstanceTypes()
For responses, this returns true if the service returned a value for the Ec2InstanceTypes 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.
-
ec2InstanceTypesAsStrings
public final List<String> ec2InstanceTypesAsStrings()
The EC2 instance types that users can select from when launching a streaming session with this launch profile.
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
hasEc2InstanceTypes()method.- Returns:
- The EC2 instance types that users can select from when launching a streaming session with this launch profile.
-
maxSessionLengthInMinutes
public final Integer maxSessionLengthInMinutes()
The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days.
- Returns:
- The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days.
-
maxStoppedSessionLengthInMinutes
public final Integer maxStoppedSessionLengthInMinutes()
Integer that determines if you can start and stop your sessions and how long a session can stay in the
STOPPEDstate. The default value is 0. The maximum value is 5760.This field is allowed only when
sessionPersistenceModeisACTIVATEDandautomaticTerminationModeisACTIVATED.If the value is set to 0, your sessions can’t be
STOPPED. If you then callStopStreamingSession, the session fails. If the time that a session stays in theREADYstate exceeds themaxSessionLengthInMinutesvalue, the session will automatically be terminated (instead ofSTOPPED).If the value is set to a positive number, the session can be stopped. You can call
StopStreamingSessionto stop sessions in theREADYstate. If the time that a session stays in theREADYstate exceeds themaxSessionLengthInMinutesvalue, the session will automatically be stopped (instead of terminated).- Returns:
- Integer that determines if you can start and stop your sessions and how long a session can stay in the
STOPPEDstate. The default value is 0. The maximum value is 5760.This field is allowed only when
sessionPersistenceModeisACTIVATEDandautomaticTerminationModeisACTIVATED.If the value is set to 0, your sessions can’t be
STOPPED. If you then callStopStreamingSession, the session fails. If the time that a session stays in theREADYstate exceeds themaxSessionLengthInMinutesvalue, the session will automatically be terminated (instead ofSTOPPED).If the value is set to a positive number, the session can be stopped. You can call
StopStreamingSessionto stop sessions in theREADYstate. If the time that a session stays in theREADYstate exceeds themaxSessionLengthInMinutesvalue, the session will automatically be stopped (instead of terminated).
-
sessionBackup
public final StreamConfigurationSessionBackup sessionBackup()
Information about the streaming session backup.
- Returns:
- Information about the streaming session backup.
-
sessionPersistenceMode
public final SessionPersistenceMode sessionPersistenceMode()
Determine if a streaming session created from this launch profile can configure persistent storage. This means that
volumeConfigurationandautomaticTerminationModeare configured.If the service returns an enum value that is not available in the current SDK version,
sessionPersistenceModewill returnSessionPersistenceMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsessionPersistenceModeAsString().- Returns:
- Determine if a streaming session created from this launch profile can configure persistent storage. This
means that
volumeConfigurationandautomaticTerminationModeare configured. - See Also:
SessionPersistenceMode
-
sessionPersistenceModeAsString
public final String sessionPersistenceModeAsString()
Determine if a streaming session created from this launch profile can configure persistent storage. This means that
volumeConfigurationandautomaticTerminationModeare configured.If the service returns an enum value that is not available in the current SDK version,
sessionPersistenceModewill returnSessionPersistenceMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsessionPersistenceModeAsString().- Returns:
- Determine if a streaming session created from this launch profile can configure persistent storage. This
means that
volumeConfigurationandautomaticTerminationModeare configured. - See Also:
SessionPersistenceMode
-
sessionStorage
public final StreamConfigurationSessionStorage sessionStorage()
The upload storage for a streaming session.
- Returns:
- The upload storage for a streaming session.
-
hasStreamingImageIds
public final boolean hasStreamingImageIds()
For responses, this returns true if the service returned a value for the StreamingImageIds 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.
-
streamingImageIds
public final List<String> streamingImageIds()
The streaming images that users can select from when launching a streaming session with this launch profile.
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
hasStreamingImageIds()method.- Returns:
- The streaming images that users can select from when launching a streaming session with this launch profile.
-
volumeConfiguration
public final VolumeConfiguration volumeConfiguration()
Custom volume configuration for the root volumes that are attached to streaming sessions.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED.- Returns:
- Custom volume configuration for the root volumes that are attached to streaming sessions.
This parameter is only allowed when
sessionPersistenceModeisACTIVATED.
-
toBuilder
public StreamConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StreamConfiguration.Builder,StreamConfiguration>
-
builder
public static StreamConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends StreamConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-