Class CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMicrovmImagePropsMixin.MicrovmHooksProperty>
- Enclosing interface:
CfnMicrovmImagePropsMixin.MicrovmHooksProperty
@Stability(Stable)
public static final class CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMicrovmImagePropsMixin.MicrovmHooksProperty>
A builder for
CfnMicrovmImagePropsMixin.MicrovmHooksProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getResume()resumeTimeoutInSeconds(Number resumeTimeoutInSeconds) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getRun()runTimeoutInSeconds(Number runTimeoutInSeconds) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getRunTimeoutInSeconds()Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getSuspend()suspendTimeoutInSeconds(Number suspendTimeoutInSeconds) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getTerminate()terminateTimeoutInSeconds(Number terminateTimeoutInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resume
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder resume(String resume) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getResume()- Parameters:
resume- the value to be set.- Returns:
this
-
resumeTimeoutInSeconds
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder resumeTimeoutInSeconds(Number resumeTimeoutInSeconds) - Parameters:
resumeTimeoutInSeconds- the value to be set.- Returns:
this
-
run
Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getRun()- Parameters:
run- the value to be set.- Returns:
this
-
runTimeoutInSeconds
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder runTimeoutInSeconds(Number runTimeoutInSeconds) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getRunTimeoutInSeconds()- Parameters:
runTimeoutInSeconds- the value to be set.- Returns:
this
-
suspend
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder suspend(String suspend) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getSuspend()- Parameters:
suspend- the value to be set.- Returns:
this
-
suspendTimeoutInSeconds
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder suspendTimeoutInSeconds(Number suspendTimeoutInSeconds) - Parameters:
suspendTimeoutInSeconds- the value to be set.- Returns:
this
-
terminate
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder terminate(String terminate) Sets the value ofCfnMicrovmImagePropsMixin.MicrovmHooksProperty.getTerminate()- Parameters:
terminate- the value to be set.- Returns:
this
-
terminateTimeoutInSeconds
@Stability(Stable) public CfnMicrovmImagePropsMixin.MicrovmHooksProperty.Builder terminateTimeoutInSeconds(Number terminateTimeoutInSeconds) - Parameters:
terminateTimeoutInSeconds- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMicrovmImagePropsMixin.MicrovmHooksProperty>- Returns:
- a new instance of
CfnMicrovmImagePropsMixin.MicrovmHooksProperty - Throws:
NullPointerException- if any required attribute was not provided
-