Class Recipes
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Recipes
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Recipes extends Object implements Serializable, Cloneable
AWS OpsWorks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard recipes for each event. In addition, you can provide custom recipes for any or all layers and events. AWS OpsWorks runs custom event recipes after the standard recipes.
LayerCustomRecipesspecifies the custom recipes for a particular layer to be run in response to each of the five events.To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Recipes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recipesclone()booleanequals(Object obj)List<String>getConfigure()An array of custom recipe names to be run following aconfigureevent.List<String>getDeploy()An array of custom recipe names to be run following adeployevent.List<String>getSetup()An array of custom recipe names to be run following asetupevent.List<String>getShutdown()An array of custom recipe names to be run following ashutdownevent.List<String>getUndeploy()An array of custom recipe names to be run following aundeployevent.inthashCode()voidsetConfigure(Collection<String> configure)An array of custom recipe names to be run following aconfigureevent.voidsetDeploy(Collection<String> deploy)An array of custom recipe names to be run following adeployevent.voidsetSetup(Collection<String> setup)An array of custom recipe names to be run following asetupevent.voidsetShutdown(Collection<String> shutdown)An array of custom recipe names to be run following ashutdownevent.voidsetUndeploy(Collection<String> undeploy)An array of custom recipe names to be run following aundeployevent.StringtoString()Returns a string representation of this object; useful for testing and debugging.RecipeswithConfigure(String... configure)An array of custom recipe names to be run following aconfigureevent.RecipeswithConfigure(Collection<String> configure)An array of custom recipe names to be run following aconfigureevent.RecipeswithDeploy(String... deploy)An array of custom recipe names to be run following adeployevent.RecipeswithDeploy(Collection<String> deploy)An array of custom recipe names to be run following adeployevent.RecipeswithSetup(String... setup)An array of custom recipe names to be run following asetupevent.RecipeswithSetup(Collection<String> setup)An array of custom recipe names to be run following asetupevent.RecipeswithShutdown(String... shutdown)An array of custom recipe names to be run following ashutdownevent.RecipeswithShutdown(Collection<String> shutdown)An array of custom recipe names to be run following ashutdownevent.RecipeswithUndeploy(String... undeploy)An array of custom recipe names to be run following aundeployevent.RecipeswithUndeploy(Collection<String> undeploy)An array of custom recipe names to be run following aundeployevent.
-
-
-
Method Detail
-
getSetup
public List<String> getSetup()
An array of custom recipe names to be run following a
setupevent.- Returns:
- An array of custom recipe names to be run following a
setupevent.
-
setSetup
public void setSetup(Collection<String> setup)
An array of custom recipe names to be run following a
setupevent.- Parameters:
setup- An array of custom recipe names to be run following asetupevent.
-
withSetup
public Recipes withSetup(String... setup)
An array of custom recipe names to be run following a
setupevent.NOTE: This method appends the values to the existing list (if any). Use
setSetup(java.util.Collection)orwithSetup(java.util.Collection)if you want to override the existing values.- Parameters:
setup- An array of custom recipe names to be run following asetupevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSetup
public Recipes withSetup(Collection<String> setup)
An array of custom recipe names to be run following a
setupevent.- Parameters:
setup- An array of custom recipe names to be run following asetupevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigure
public List<String> getConfigure()
An array of custom recipe names to be run following a
configureevent.- Returns:
- An array of custom recipe names to be run following a
configureevent.
-
setConfigure
public void setConfigure(Collection<String> configure)
An array of custom recipe names to be run following a
configureevent.- Parameters:
configure- An array of custom recipe names to be run following aconfigureevent.
-
withConfigure
public Recipes withConfigure(String... configure)
An array of custom recipe names to be run following a
configureevent.NOTE: This method appends the values to the existing list (if any). Use
setConfigure(java.util.Collection)orwithConfigure(java.util.Collection)if you want to override the existing values.- Parameters:
configure- An array of custom recipe names to be run following aconfigureevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigure
public Recipes withConfigure(Collection<String> configure)
An array of custom recipe names to be run following a
configureevent.- Parameters:
configure- An array of custom recipe names to be run following aconfigureevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDeploy
public List<String> getDeploy()
An array of custom recipe names to be run following a
deployevent.- Returns:
- An array of custom recipe names to be run following a
deployevent.
-
setDeploy
public void setDeploy(Collection<String> deploy)
An array of custom recipe names to be run following a
deployevent.- Parameters:
deploy- An array of custom recipe names to be run following adeployevent.
-
withDeploy
public Recipes withDeploy(String... deploy)
An array of custom recipe names to be run following a
deployevent.NOTE: This method appends the values to the existing list (if any). Use
setDeploy(java.util.Collection)orwithDeploy(java.util.Collection)if you want to override the existing values.- Parameters:
deploy- An array of custom recipe names to be run following adeployevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDeploy
public Recipes withDeploy(Collection<String> deploy)
An array of custom recipe names to be run following a
deployevent.- Parameters:
deploy- An array of custom recipe names to be run following adeployevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUndeploy
public List<String> getUndeploy()
An array of custom recipe names to be run following a
undeployevent.- Returns:
- An array of custom recipe names to be run following a
undeployevent.
-
setUndeploy
public void setUndeploy(Collection<String> undeploy)
An array of custom recipe names to be run following a
undeployevent.- Parameters:
undeploy- An array of custom recipe names to be run following aundeployevent.
-
withUndeploy
public Recipes withUndeploy(String... undeploy)
An array of custom recipe names to be run following a
undeployevent.NOTE: This method appends the values to the existing list (if any). Use
setUndeploy(java.util.Collection)orwithUndeploy(java.util.Collection)if you want to override the existing values.- Parameters:
undeploy- An array of custom recipe names to be run following aundeployevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUndeploy
public Recipes withUndeploy(Collection<String> undeploy)
An array of custom recipe names to be run following a
undeployevent.- Parameters:
undeploy- An array of custom recipe names to be run following aundeployevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getShutdown
public List<String> getShutdown()
An array of custom recipe names to be run following a
shutdownevent.- Returns:
- An array of custom recipe names to be run following a
shutdownevent.
-
setShutdown
public void setShutdown(Collection<String> shutdown)
An array of custom recipe names to be run following a
shutdownevent.- Parameters:
shutdown- An array of custom recipe names to be run following ashutdownevent.
-
withShutdown
public Recipes withShutdown(String... shutdown)
An array of custom recipe names to be run following a
shutdownevent.NOTE: This method appends the values to the existing list (if any). Use
setShutdown(java.util.Collection)orwithShutdown(java.util.Collection)if you want to override the existing values.- Parameters:
shutdown- An array of custom recipe names to be run following ashutdownevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withShutdown
public Recipes withShutdown(Collection<String> shutdown)
An array of custom recipe names to be run following a
shutdownevent.- Parameters:
shutdown- An array of custom recipe names to be run following ashutdownevent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-