Class CfnWorkspaceInstance.ManagedInstanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.ManagedInstanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.ManagedInstanceProperty>
- Enclosing interface:
CfnWorkspaceInstance.ManagedInstanceProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.ManagedInstanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.ManagedInstanceProperty>
A builder for
CfnWorkspaceInstance.ManagedInstanceProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappings
(List<? extends Object> blockDeviceMappings) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getBlockDeviceMappings()
blockDeviceMappings
(IResolvable blockDeviceMappings) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getBlockDeviceMappings()
build()
Builds the configured instance.cpuOptions
(IResolvable cpuOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCpuOptions()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCpuOptions()
creditSpecification
(IResolvable creditSpecification) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCreditSpecification()
creditSpecification
(CfnWorkspaceInstance.CreditSpecificationRequestProperty creditSpecification) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCreditSpecification()
disableApiStop
(Boolean disableApiStop) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getDisableApiStop()
disableApiStop
(IResolvable disableApiStop) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getDisableApiStop()
ebsOptimized
(Boolean ebsOptimized) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEbsOptimized()
ebsOptimized
(IResolvable ebsOptimized) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEbsOptimized()
enclaveOptions
(IResolvable enclaveOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEnclaveOptions()
enclaveOptions
(CfnWorkspaceInstance.EnclaveOptionsRequestProperty enclaveOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEnclaveOptions()
hibernationOptions
(IResolvable hibernationOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getHibernationOptions()
hibernationOptions
(CfnWorkspaceInstance.HibernationOptionsRequestProperty hibernationOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getHibernationOptions()
iamInstanceProfile
(IResolvable iamInstanceProfile) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getIamInstanceProfile()
iamInstanceProfile
(CfnWorkspaceInstance.IamInstanceProfileSpecificationProperty iamInstanceProfile) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getIamInstanceProfile()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getImageId()
instanceType
(String instanceType) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getInstanceType()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getKeyName()
maintenanceOptions
(IResolvable maintenanceOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMaintenanceOptions()
maintenanceOptions
(CfnWorkspaceInstance.InstanceMaintenanceOptionsRequestProperty maintenanceOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMaintenanceOptions()
metadataOptions
(IResolvable metadataOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMetadataOptions()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMetadataOptions()
monitoring
(IResolvable monitoring) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMonitoring()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMonitoring()
networkInterfaces
(List<? extends Object> networkInterfaces) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getNetworkInterfaces()
networkInterfaces
(IResolvable networkInterfaces) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getNetworkInterfaces()
networkPerformanceOptions
(IResolvable networkPerformanceOptions) networkPerformanceOptions
(CfnWorkspaceInstance.InstanceNetworkPerformanceOptionsRequestProperty networkPerformanceOptions) placement
(IResolvable placement) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPlacement()
placement
(CfnWorkspaceInstance.PlacementProperty placement) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPlacement()
privateDnsNameOptions
(IResolvable privateDnsNameOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPrivateDnsNameOptions()
privateDnsNameOptions
(CfnWorkspaceInstance.PrivateDnsNameOptionsRequestProperty privateDnsNameOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPrivateDnsNameOptions()
tagSpecifications
(List<? extends Object> tagSpecifications) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getTagSpecifications()
tagSpecifications
(IResolvable tagSpecifications) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getTagSpecifications()
Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getUserData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageId
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder imageId(String imageId) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getImageId()
- Parameters:
imageId
- the value to be set. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder instanceType(String instanceType) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getInstanceType()
- Parameters:
instanceType
- the value to be set. This parameter is required.- Returns:
this
-
blockDeviceMappings
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder blockDeviceMappings(IResolvable blockDeviceMappings) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getBlockDeviceMappings()
- Parameters:
blockDeviceMappings
- the value to be set.- Returns:
this
-
blockDeviceMappings
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder blockDeviceMappings(List<? extends Object> blockDeviceMappings) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getBlockDeviceMappings()
- Parameters:
blockDeviceMappings
- the value to be set.- Returns:
this
-
cpuOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder cpuOptions(IResolvable cpuOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCpuOptions()
- Parameters:
cpuOptions
- the value to be set.- Returns:
this
-
cpuOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder cpuOptions(CfnWorkspaceInstance.CpuOptionsRequestProperty cpuOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCpuOptions()
- Parameters:
cpuOptions
- the value to be set.- Returns:
this
-
creditSpecification
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder creditSpecification(IResolvable creditSpecification) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCreditSpecification()
- Parameters:
creditSpecification
- the value to be set.- Returns:
this
-
creditSpecification
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder creditSpecification(CfnWorkspaceInstance.CreditSpecificationRequestProperty creditSpecification) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getCreditSpecification()
- Parameters:
creditSpecification
- the value to be set.- Returns:
this
-
disableApiStop
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder disableApiStop(Boolean disableApiStop) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getDisableApiStop()
- Parameters:
disableApiStop
- the value to be set.- Returns:
this
-
disableApiStop
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder disableApiStop(IResolvable disableApiStop) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getDisableApiStop()
- Parameters:
disableApiStop
- the value to be set.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder ebsOptimized(Boolean ebsOptimized) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEbsOptimized()
- Parameters:
ebsOptimized
- the value to be set.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder ebsOptimized(IResolvable ebsOptimized) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEbsOptimized()
- Parameters:
ebsOptimized
- the value to be set.- Returns:
this
-
enclaveOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder enclaveOptions(IResolvable enclaveOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEnclaveOptions()
- Parameters:
enclaveOptions
- the value to be set.- Returns:
this
-
enclaveOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder enclaveOptions(CfnWorkspaceInstance.EnclaveOptionsRequestProperty enclaveOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getEnclaveOptions()
- Parameters:
enclaveOptions
- the value to be set.- Returns:
this
-
hibernationOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder hibernationOptions(IResolvable hibernationOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getHibernationOptions()
- Parameters:
hibernationOptions
- the value to be set.- Returns:
this
-
hibernationOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder hibernationOptions(CfnWorkspaceInstance.HibernationOptionsRequestProperty hibernationOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getHibernationOptions()
- Parameters:
hibernationOptions
- the value to be set.- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder iamInstanceProfile(IResolvable iamInstanceProfile) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getIamInstanceProfile()
- Parameters:
iamInstanceProfile
- the value to be set.- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder iamInstanceProfile(CfnWorkspaceInstance.IamInstanceProfileSpecificationProperty iamInstanceProfile) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getIamInstanceProfile()
- Parameters:
iamInstanceProfile
- the value to be set.- Returns:
this
-
keyName
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder keyName(String keyName) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getKeyName()
- Parameters:
keyName
- the value to be set.- Returns:
this
-
maintenanceOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder maintenanceOptions(IResolvable maintenanceOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMaintenanceOptions()
- Parameters:
maintenanceOptions
- the value to be set.- Returns:
this
-
maintenanceOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder maintenanceOptions(CfnWorkspaceInstance.InstanceMaintenanceOptionsRequestProperty maintenanceOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMaintenanceOptions()
- Parameters:
maintenanceOptions
- the value to be set.- Returns:
this
-
metadataOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder metadataOptions(IResolvable metadataOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMetadataOptions()
- Parameters:
metadataOptions
- the value to be set.- Returns:
this
-
metadataOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder metadataOptions(CfnWorkspaceInstance.InstanceMetadataOptionsRequestProperty metadataOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMetadataOptions()
- Parameters:
metadataOptions
- the value to be set.- Returns:
this
-
monitoring
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder monitoring(IResolvable monitoring) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMonitoring()
- Parameters:
monitoring
- the value to be set.- Returns:
this
-
monitoring
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder monitoring(CfnWorkspaceInstance.RunInstancesMonitoringEnabledProperty monitoring) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getMonitoring()
- Parameters:
monitoring
- the value to be set.- Returns:
this
-
networkInterfaces
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder networkInterfaces(IResolvable networkInterfaces) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getNetworkInterfaces()
- Parameters:
networkInterfaces
- the value to be set.- Returns:
this
-
networkInterfaces
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder networkInterfaces(List<? extends Object> networkInterfaces) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getNetworkInterfaces()
- Parameters:
networkInterfaces
- the value to be set.- Returns:
this
-
networkPerformanceOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder networkPerformanceOptions(IResolvable networkPerformanceOptions) - Parameters:
networkPerformanceOptions
- the value to be set.- Returns:
this
-
networkPerformanceOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder networkPerformanceOptions(CfnWorkspaceInstance.InstanceNetworkPerformanceOptionsRequestProperty networkPerformanceOptions) - Parameters:
networkPerformanceOptions
- the value to be set.- Returns:
this
-
placement
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder placement(IResolvable placement) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPlacement()
- Parameters:
placement
- the value to be set.- Returns:
this
-
placement
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder placement(CfnWorkspaceInstance.PlacementProperty placement) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPlacement()
- Parameters:
placement
- the value to be set.- Returns:
this
-
privateDnsNameOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder privateDnsNameOptions(IResolvable privateDnsNameOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPrivateDnsNameOptions()
- Parameters:
privateDnsNameOptions
- the value to be set.- Returns:
this
-
privateDnsNameOptions
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder privateDnsNameOptions(CfnWorkspaceInstance.PrivateDnsNameOptionsRequestProperty privateDnsNameOptions) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getPrivateDnsNameOptions()
- Parameters:
privateDnsNameOptions
- the value to be set.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getTagSpecifications()
- Parameters:
tagSpecifications
- the value to be set.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getTagSpecifications()
- Parameters:
tagSpecifications
- the value to be set.- Returns:
this
-
userData
@Stability(Stable) public CfnWorkspaceInstance.ManagedInstanceProperty.Builder userData(String userData) Sets the value ofCfnWorkspaceInstance.ManagedInstanceProperty.getUserData()
- Parameters:
userData
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.ManagedInstanceProperty>
- Returns:
- a new instance of
CfnWorkspaceInstance.ManagedInstanceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-