Class CfnEnvironmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesthinclient.CfnEnvironmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentProps>
- Enclosing interface:
CfnEnvironmentProps
@Stability(Stable)
public static final class CfnEnvironmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironmentProps>
A builder for
CfnEnvironmentProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.desiredSoftwareSetId
(String desiredSoftwareSetId) Sets the value ofCfnEnvironmentProps.getDesiredSoftwareSetId()
desktopArn
(String desktopArn) Sets the value ofCfnEnvironmentProps.getDesktopArn()
desktopEndpoint
(String desktopEndpoint) Sets the value ofCfnEnvironmentProps.getDesktopEndpoint()
Sets the value ofCfnEnvironmentProps.getKmsKeyArn()
maintenanceWindow
(IResolvable maintenanceWindow) Sets the value ofCfnEnvironmentProps.getMaintenanceWindow()
maintenanceWindow
(CfnEnvironment.MaintenanceWindowProperty maintenanceWindow) Sets the value ofCfnEnvironmentProps.getMaintenanceWindow()
Sets the value ofCfnEnvironmentProps.getName()
softwareSetUpdateMode
(String softwareSetUpdateMode) Sets the value ofCfnEnvironmentProps.getSoftwareSetUpdateMode()
softwareSetUpdateSchedule
(String softwareSetUpdateSchedule) Sets the value ofCfnEnvironmentProps.getSoftwareSetUpdateSchedule()
Sets the value ofCfnEnvironmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desktopArn
Sets the value ofCfnEnvironmentProps.getDesktopArn()
- Parameters:
desktopArn
- The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces , WorkSpaces Web, or AppStream 2.0 . This parameter is required.- Returns:
this
-
desiredSoftwareSetId
@Stability(Stable) public CfnEnvironmentProps.Builder desiredSoftwareSetId(String desiredSoftwareSetId) Sets the value ofCfnEnvironmentProps.getDesiredSoftwareSetId()
- Parameters:
desiredSoftwareSetId
- The ID of the software set to apply.- Returns:
this
-
desktopEndpoint
Sets the value ofCfnEnvironmentProps.getDesktopEndpoint()
- Parameters:
desktopEndpoint
- The URL for the identity provider login (only for environments that use AppStream 2.0 ).- Returns:
this
-
kmsKeyArn
Sets the value ofCfnEnvironmentProps.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.- Returns:
this
-
maintenanceWindow
@Stability(Stable) public CfnEnvironmentProps.Builder maintenanceWindow(IResolvable maintenanceWindow) Sets the value ofCfnEnvironmentProps.getMaintenanceWindow()
- Parameters:
maintenanceWindow
- A specification for a time window to apply software updates.- Returns:
this
-
maintenanceWindow
@Stability(Stable) public CfnEnvironmentProps.Builder maintenanceWindow(CfnEnvironment.MaintenanceWindowProperty maintenanceWindow) Sets the value ofCfnEnvironmentProps.getMaintenanceWindow()
- Parameters:
maintenanceWindow
- A specification for a time window to apply software updates.- Returns:
this
-
name
Sets the value ofCfnEnvironmentProps.getName()
- Parameters:
name
- The name of the environment.- Returns:
this
-
softwareSetUpdateMode
@Stability(Stable) public CfnEnvironmentProps.Builder softwareSetUpdateMode(String softwareSetUpdateMode) Sets the value ofCfnEnvironmentProps.getSoftwareSetUpdateMode()
- Parameters:
softwareSetUpdateMode
- An option to define which software updates to apply.- Returns:
this
-
softwareSetUpdateSchedule
@Stability(Stable) public CfnEnvironmentProps.Builder softwareSetUpdateSchedule(String softwareSetUpdateSchedule) Sets the value ofCfnEnvironmentProps.getSoftwareSetUpdateSchedule()
- Parameters:
softwareSetUpdateSchedule
- An option to define if software updates should be applied within a maintenance window.- Returns:
this
-
tags
Sets the value ofCfnEnvironmentProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEnvironmentProps>
- Returns:
- a new instance of
CfnEnvironmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-