Class CfnWorkspaceInstance.EC2ManagedInstanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.EC2ManagedInstanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.EC2ManagedInstanceProperty>
- Enclosing interface:
CfnWorkspaceInstance.EC2ManagedInstanceProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.EC2ManagedInstanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.EC2ManagedInstanceProperty>
A builder for
CfnWorkspaceInstance.EC2ManagedInstanceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceId(String instanceId) Sets the value ofCfnWorkspaceInstance.EC2ManagedInstanceProperty.getInstanceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
@Stability(Stable) public CfnWorkspaceInstance.EC2ManagedInstanceProperty.Builder instanceId(String instanceId) Sets the value ofCfnWorkspaceInstance.EC2ManagedInstanceProperty.getInstanceId()- Parameters:
instanceId- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.EC2ManagedInstanceProperty>- Returns:
- a new instance of
CfnWorkspaceInstance.EC2ManagedInstanceProperty - Throws:
NullPointerException- if any required attribute was not provided
-