Class CfnLayer.RecipesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnLayer.RecipesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayer.RecipesProperty>
- Enclosing interface:
CfnLayer.RecipesProperty
@Stability(Stable)
public static final class CfnLayer.RecipesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayer.RecipesProperty>
A builder for
CfnLayer.RecipesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLayer.RecipesProperty.getConfigure()
Sets the value ofCfnLayer.RecipesProperty.getDeploy()
Sets the value ofCfnLayer.RecipesProperty.getSetup()
Sets the value ofCfnLayer.RecipesProperty.getShutdown()
Sets the value ofCfnLayer.RecipesProperty.getUndeploy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configure
Sets the value ofCfnLayer.RecipesProperty.getConfigure()
- Parameters:
configure
- An array of custom recipe names to be run following aconfigure
event.- Returns:
this
-
deploy
Sets the value ofCfnLayer.RecipesProperty.getDeploy()
- Parameters:
deploy
- An array of custom recipe names to be run following adeploy
event.- Returns:
this
-
setup
Sets the value ofCfnLayer.RecipesProperty.getSetup()
- Parameters:
setup
- An array of custom recipe names to be run following asetup
event.- Returns:
this
-
shutdown
Sets the value ofCfnLayer.RecipesProperty.getShutdown()
- Parameters:
shutdown
- An array of custom recipe names to be run following ashutdown
event.- Returns:
this
-
undeploy
Sets the value ofCfnLayer.RecipesProperty.getUndeploy()
- Parameters:
undeploy
- An array of custom recipe names to be run following aundeploy
event.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayer.RecipesProperty>
- Returns:
- a new instance of
CfnLayer.RecipesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-