Example #1
0
 /**
  * Specifies the operation. You can specify only one command.
  *
  * <p>For stacks, the following commands are available:
  *
  * <ul>
  *   <li>
  *       <p><code>execute_recipes</code>: Execute one or more recipes. To specify the recipes, set
  *       an <code>Args</code> parameter named <code>recipes</code> to the list of recipes to be
  *       executed. For example, to execute <code>phpapp::appsetup</code>, set <code>Args</code> to
  *       <code>{"recipes":["phpapp::appsetup"]}</code>.
  *   <li>
  *       <p><code>install_dependencies</code>: Install the stack's dependencies.
  *   <li>
  *       <p><code>update_custom_cookbooks</code>: Update the stack's custom cookbooks.
  *   <li>
  *       <p><code>update_dependencies</code>: Update the stack's dependencies.
  * </ul>
  *
  * <note>
  *
  * <p>The update_dependencies and install_dependencies commands are supported only for Linux
  * instances. You can run the commands successfully on Windows instances, but they do nothing.
  * </note>
  *
  * <p>For apps, the following commands are available:
  *
  * <ul>
  *   <li>
  *       <p><code>deploy</code>: Deploy an app. Ruby on Rails apps have an optional <code>Args
  *       </code> parameter named <code>migrate</code>. Set <code>Args</code> to
  *       {"migrate":["true"]} to migrate the database. The default setting is
  *       {"migrate":["false"]}.
  *   <li>
  *       <p><code>rollback</code> Roll the app back to the previous version. When you update an
  *       app, AWS OpsWorks stores the previous version, up to a maximum of five versions. You can
  *       use this command to roll an app back as many as four versions.
  *   <li>
  *       <p><code>start</code>: Start the app's web or application server.
  *   <li>
  *       <p><code>stop</code>: Stop the app's web or application server.
  *   <li>
  *       <p><code>restart</code>: Restart the app's web or application server.
  *   <li>
  *       <p><code>undeploy</code>: Undeploy the app.
  * </ul>
  *
  * @param name Specifies the operation. You can specify only one command.
  *     <p>For stacks, the following commands are available:
  *     <ul>
  *       <li>
  *           <p><code>execute_recipes</code>: Execute one or more recipes. To specify the recipes,
  *           set an <code>Args</code> parameter named <code>recipes</code> to the list of recipes
  *           to be executed. For example, to execute <code>phpapp::appsetup</code>, set <code>Args
  *           </code> to <code>{"recipes":["phpapp::appsetup"]}</code> .
  *       <li>
  *           <p><code>install_dependencies</code>: Install the stack's dependencies.
  *       <li>
  *           <p><code>update_custom_cookbooks</code>: Update the stack's custom cookbooks.
  *       <li>
  *           <p><code>update_dependencies</code>: Update the stack's dependencies.
  *     </ul>
  *     <note>
  *     <p>The update_dependencies and install_dependencies commands are supported only for Linux
  *     instances. You can run the commands successfully on Windows instances, but they do nothing.
  *     </note>
  *     <p>For apps, the following commands are available:
  *     <ul>
  *       <li>
  *           <p><code>deploy</code>: Deploy an app. Ruby on Rails apps have an optional <code>Args
  *           </code> parameter named <code>migrate</code>. Set <code>Args</code> to
  *           {"migrate":["true"]} to migrate the database. The default setting is
  *           {"migrate":["false"]}.
  *       <li>
  *           <p><code>rollback</code> Roll the app back to the previous version. When you update
  *           an app, AWS OpsWorks stores the previous version, up to a maximum of five versions.
  *           You can use this command to roll an app back as many as four versions.
  *       <li>
  *           <p><code>start</code>: Start the app's web or application server.
  *       <li>
  *           <p><code>stop</code>: Stop the app's web or application server.
  *       <li>
  *           <p><code>restart</code>: Restart the app's web or application server.
  *       <li>
  *           <p><code>undeploy</code>: Undeploy the app.
  * @return Returns a reference to this object so that method calls can be chained together.
  * @see DeploymentCommandName
  */
 public DeploymentCommand withName(DeploymentCommandName name) {
   setName(name);
   return this;
 }