Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Recipes

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.Recipes
All Implemented Interfaces:
java.io.Serializable

public class Recipes
extends java.lang.Object
implements java.io.Serializable

OpsWorks supports five life-cycle events, setup , configuration , deploy , undeploy , and shutdown . For each layer, OpsWorks runs a set of standard recipes for each event. In addition, you can provide custom recipes for any or all layers and events. OpsWorks runs custom event recipes after the standard recipes. LayerCustomRecipes specifies 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
Recipes()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getConfigure()
          An array of custom recipe names to be run following a configure event.
 java.util.List<java.lang.String> getDeploy()
          An array of custom recipe names to be run following a deploy event.
 java.util.List<java.lang.String> getSetup()
          An array of custom recipe names to be run following a setup event.
 java.util.List<java.lang.String> getShutdown()
          An array of custom recipe names to be run following a shutdown event.
 java.util.List<java.lang.String> getUndeploy()
          An array of custom recipe names to be run following a undeploy event.
 int hashCode()
           
 void setConfigure(java.util.Collection<java.lang.String> configure)
          An array of custom recipe names to be run following a configure event.
 void setDeploy(java.util.Collection<java.lang.String> deploy)
          An array of custom recipe names to be run following a deploy event.
 void setSetup(java.util.Collection<java.lang.String> setup)
          An array of custom recipe names to be run following a setup event.
 void setShutdown(java.util.Collection<java.lang.String> shutdown)
          An array of custom recipe names to be run following a shutdown event.
 void setUndeploy(java.util.Collection<java.lang.String> undeploy)
          An array of custom recipe names to be run following a undeploy event.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Recipes withConfigure(java.util.Collection<java.lang.String> configure)
          An array of custom recipe names to be run following a configure event.
 Recipes withConfigure(java.lang.String... configure)
          An array of custom recipe names to be run following a configure event.
 Recipes withDeploy(java.util.Collection<java.lang.String> deploy)
          An array of custom recipe names to be run following a deploy event.
 Recipes withDeploy(java.lang.String... deploy)
          An array of custom recipe names to be run following a deploy event.
 Recipes withSetup(java.util.Collection<java.lang.String> setup)
          An array of custom recipe names to be run following a setup event.
 Recipes withSetup(java.lang.String... setup)
          An array of custom recipe names to be run following a setup event.
 Recipes withShutdown(java.util.Collection<java.lang.String> shutdown)
          An array of custom recipe names to be run following a shutdown event.
 Recipes withShutdown(java.lang.String... shutdown)
          An array of custom recipe names to be run following a shutdown event.
 Recipes withUndeploy(java.util.Collection<java.lang.String> undeploy)
          An array of custom recipe names to be run following a undeploy event.
 Recipes withUndeploy(java.lang.String... undeploy)
          An array of custom recipe names to be run following a undeploy event.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipes

public Recipes()
Method Detail

getSetup

public java.util.List<java.lang.String> getSetup()
An array of custom recipe names to be run following a setup event.

Returns:
An array of custom recipe names to be run following a setup event.

setSetup

public void setSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a setup event.

Parameters:
setup - An array of custom recipe names to be run following a setup event.

withSetup

public Recipes withSetup(java.lang.String... setup)
An array of custom recipe names to be run following a setup event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
setup - An array of custom recipe names to be run following a setup event.
Returns:
A reference to this updated object so that method calls can be chained together.

withSetup

public Recipes withSetup(java.util.Collection<java.lang.String> setup)
An array of custom recipe names to be run following a setup event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
setup - An array of custom recipe names to be run following a setup event.
Returns:
A reference to this updated object so that method calls can be chained together.

getConfigure

public java.util.List<java.lang.String> getConfigure()
An array of custom recipe names to be run following a configure event.

Returns:
An array of custom recipe names to be run following a configure event.

setConfigure

public void setConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a configure event.

Parameters:
configure - An array of custom recipe names to be run following a configure event.

withConfigure

public Recipes withConfigure(java.lang.String... configure)
An array of custom recipe names to be run following a configure event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configure - An array of custom recipe names to be run following a configure event.
Returns:
A reference to this updated object so that method calls can be chained together.

withConfigure

public Recipes withConfigure(java.util.Collection<java.lang.String> configure)
An array of custom recipe names to be run following a configure event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configure - An array of custom recipe names to be run following a configure event.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeploy

public java.util.List<java.lang.String> getDeploy()
An array of custom recipe names to be run following a deploy event.

Returns:
An array of custom recipe names to be run following a deploy event.

setDeploy

public void setDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a deploy event.

Parameters:
deploy - An array of custom recipe names to be run following a deploy event.

withDeploy

public Recipes withDeploy(java.lang.String... deploy)
An array of custom recipe names to be run following a deploy event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deploy - An array of custom recipe names to be run following a deploy event.
Returns:
A reference to this updated object so that method calls can be chained together.

withDeploy

public Recipes withDeploy(java.util.Collection<java.lang.String> deploy)
An array of custom recipe names to be run following a deploy event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deploy - An array of custom recipe names to be run following a deploy event.
Returns:
A reference to this updated object so that method calls can be chained together.

getUndeploy

public java.util.List<java.lang.String> getUndeploy()
An array of custom recipe names to be run following a undeploy event.

Returns:
An array of custom recipe names to be run following a undeploy event.

setUndeploy

public void setUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a undeploy event.

Parameters:
undeploy - An array of custom recipe names to be run following a undeploy event.

withUndeploy

public Recipes withUndeploy(java.lang.String... undeploy)
An array of custom recipe names to be run following a undeploy event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
undeploy - An array of custom recipe names to be run following a undeploy event.
Returns:
A reference to this updated object so that method calls can be chained together.

withUndeploy

public Recipes withUndeploy(java.util.Collection<java.lang.String> undeploy)
An array of custom recipe names to be run following a undeploy event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
undeploy - An array of custom recipe names to be run following a undeploy event.
Returns:
A reference to this updated object so that method calls can be chained together.

getShutdown

public java.util.List<java.lang.String> getShutdown()
An array of custom recipe names to be run following a shutdown event.

Returns:
An array of custom recipe names to be run following a shutdown event.

setShutdown

public void setShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a shutdown event.

Parameters:
shutdown - An array of custom recipe names to be run following a shutdown event.

withShutdown

public Recipes withShutdown(java.lang.String... shutdown)
An array of custom recipe names to be run following a shutdown event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
shutdown - An array of custom recipe names to be run following a shutdown event.
Returns:
A reference to this updated object so that method calls can be chained together.

withShutdown

public Recipes withShutdown(java.util.Collection<java.lang.String> shutdown)
An array of custom recipe names to be run following a shutdown event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
shutdown - An array of custom recipe names to be run following a shutdown event.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.