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