Class CfnLaunchProfile.StreamConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchProfile.StreamConfigurationProperty>
- Enclosing interface:
CfnLaunchProfile.StreamConfigurationProperty
CfnLaunchProfile.StreamConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautomaticTerminationMode
(String automaticTerminationMode) build()
Builds the configured instance.clipboardMode
(String clipboardMode) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getClipboardMode()
ec2InstanceTypes
(List<String> ec2InstanceTypes) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getEc2InstanceTypes()
maxSessionLengthInMinutes
(Number maxSessionLengthInMinutes) maxStoppedSessionLengthInMinutes
(Number maxStoppedSessionLengthInMinutes) sessionBackup
(IResolvable sessionBackup) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionBackup()
Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionBackup()
sessionPersistenceMode
(String sessionPersistenceMode) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionPersistenceMode()
sessionStorage
(IResolvable sessionStorage) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionStorage()
Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionStorage()
streamingImageIds
(List<String> streamingImageIds) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getStreamingImageIds()
volumeConfiguration
(IResolvable volumeConfiguration) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getVolumeConfiguration()
volumeConfiguration
(CfnLaunchProfile.VolumeConfigurationProperty volumeConfiguration) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getVolumeConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clipboardMode
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder clipboardMode(String clipboardMode) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getClipboardMode()
- Parameters:
clipboardMode
- Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client. This parameter is required.- Returns:
this
-
ec2InstanceTypes
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder ec2InstanceTypes(List<String> ec2InstanceTypes) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getEc2InstanceTypes()
- Parameters:
ec2InstanceTypes
- The EC2 instance types that users can select from when launching a streaming session with this launch profile. This parameter is required.- Returns:
this
-
streamingImageIds
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder streamingImageIds(List<String> streamingImageIds) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getStreamingImageIds()
- Parameters:
streamingImageIds
- The streaming images that users can select from when launching a streaming session with this launch profile. This parameter is required.- Returns:
this
-
automaticTerminationMode
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder automaticTerminationMode(String automaticTerminationMode) - Parameters:
automaticTerminationMode
- Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in aSTOPPED
state.- When
ACTIVATED
, the streaming session is scheduled for termination after being in theSTOPPED
state for the time specified inmaxStoppedSessionLengthInMinutes
. - When
DEACTIVATED
, the streaming session can remain in theSTOPPED
state indefinitely.
This parameter is only allowed when
sessionPersistenceMode
isACTIVATED
. When allowed, the default value for this parameter isDEACTIVATED
.- When
- Returns:
this
-
maxSessionLengthInMinutes
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder maxSessionLengthInMinutes(Number maxSessionLengthInMinutes) - Parameters:
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:
this
-
maxStoppedSessionLengthInMinutes
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder maxStoppedSessionLengthInMinutes(Number maxStoppedSessionLengthInMinutes) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getMaxStoppedSessionLengthInMinutes()
- Parameters:
maxStoppedSessionLengthInMinutes
- Integer that determines if you can start and stop your sessions and how long a session can stay in theSTOPPED
state. The default value is 0. The maximum value is 5760.This field is allowed only when
sessionPersistenceMode
isACTIVATED
andautomaticTerminationMode
isACTIVATED
.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 theREADY
state exceeds themaxSessionLengthInMinutes
value, 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
StopStreamingSession
to stop sessions in theREADY
state. If the time that a session stays in theREADY
state exceeds themaxSessionLengthInMinutes
value, the session will automatically be stopped (instead of terminated).- Returns:
this
-
sessionBackup
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder sessionBackup(IResolvable sessionBackup) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionBackup()
- Parameters:
sessionBackup
- Information about the streaming session backup.- Returns:
this
-
sessionBackup
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder sessionBackup(CfnLaunchProfile.StreamConfigurationSessionBackupProperty sessionBackup) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionBackup()
- Parameters:
sessionBackup
- Information about the streaming session backup.- Returns:
this
-
sessionPersistenceMode
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder sessionPersistenceMode(String sessionPersistenceMode) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionPersistenceMode()
- Parameters:
sessionPersistenceMode
- Determine if a streaming session created from this launch profile can configure persistent storage. This means thatvolumeConfiguration
andautomaticTerminationMode
are configured.- Returns:
this
-
sessionStorage
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder sessionStorage(IResolvable sessionStorage) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionStorage()
- Parameters:
sessionStorage
- The upload storage for a streaming session.- Returns:
this
-
sessionStorage
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder sessionStorage(CfnLaunchProfile.StreamConfigurationSessionStorageProperty sessionStorage) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getSessionStorage()
- Parameters:
sessionStorage
- The upload storage for a streaming session.- Returns:
this
-
volumeConfiguration
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder volumeConfiguration(IResolvable volumeConfiguration) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getVolumeConfiguration()
- Parameters:
volumeConfiguration
- Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed whensessionPersistenceMode
isACTIVATED
.- Returns:
this
-
volumeConfiguration
@Stability(Stable) public CfnLaunchProfile.StreamConfigurationProperty.Builder volumeConfiguration(CfnLaunchProfile.VolumeConfigurationProperty volumeConfiguration) Sets the value ofCfnLaunchProfile.StreamConfigurationProperty.getVolumeConfiguration()
- Parameters:
volumeConfiguration
- Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed whensessionPersistenceMode
isACTIVATED
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunchProfile.StreamConfigurationProperty>
- Returns:
- a new instance of
CfnLaunchProfile.StreamConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-