/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.fis.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies an action for an experiment template. *
** For more information, see Actions in the * Fault Injection Simulator User Guide. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateExperimentTemplateActionInput implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the action. The format of the action ID is: aws:service-name:action-type. *
*/ private String actionId; /** ** A description for the action. *
*/ private String description; /** ** The parameters for the action, if applicable. *
*/ private java.util.Map* The targets for the action. *
*/ private java.util.Map* The name of the action that must be completed before the current action starts. Omit this parameter to run the * action at the start of the experiment. *
*/ private java.util.List* The ID of the action. The format of the action ID is: aws:service-name:action-type. *
* * @param actionId * The ID of the action. The format of the action ID is: aws:service-name:action-type. */ public void setActionId(String actionId) { this.actionId = actionId; } /** ** The ID of the action. The format of the action ID is: aws:service-name:action-type. *
* * @return The ID of the action. The format of the action ID is: aws:service-name:action-type. */ public String getActionId() { return this.actionId; } /** ** The ID of the action. The format of the action ID is: aws:service-name:action-type. *
* * @param actionId * The ID of the action. The format of the action ID is: aws:service-name:action-type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withActionId(String actionId) { setActionId(actionId); return this; } /** ** A description for the action. *
* * @param description * A description for the action. */ public void setDescription(String description) { this.description = description; } /** ** A description for the action. *
* * @return A description for the action. */ public String getDescription() { return this.description; } /** ** A description for the action. *
* * @param description * A description for the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withDescription(String description) { setDescription(description); return this; } /** ** The parameters for the action, if applicable. *
* * @return The parameters for the action, if applicable. */ public java.util.Map* The parameters for the action, if applicable. *
* * @param parameters * The parameters for the action, if applicable. */ public void setParameters(java.util.Map* The parameters for the action, if applicable. *
* * @param parameters * The parameters for the action, if applicable. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withParameters(java.util.Map* The targets for the action. *
* * @return The targets for the action. */ public java.util.Map* The targets for the action. *
* * @param targets * The targets for the action. */ public void setTargets(java.util.Map* The targets for the action. *
* * @param targets * The targets for the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withTargets(java.util.Map* The name of the action that must be completed before the current action starts. Omit this parameter to run the * action at the start of the experiment. *
* * @return The name of the action that must be completed before the current action starts. Omit this parameter to * run the action at the start of the experiment. */ public java.util.List* The name of the action that must be completed before the current action starts. Omit this parameter to run the * action at the start of the experiment. *
* * @param startAfter * The name of the action that must be completed before the current action starts. Omit this parameter to run * the action at the start of the experiment. */ public void setStartAfter(java.util.Collection* The name of the action that must be completed before the current action starts. Omit this parameter to run the * action at the start of the experiment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStartAfter(java.util.Collection)} or {@link #withStartAfter(java.util.Collection)} if you want to * override the existing values. *
* * @param startAfter * The name of the action that must be completed before the current action starts. Omit this parameter to run * the action at the start of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withStartAfter(String... startAfter) { if (this.startAfter == null) { setStartAfter(new java.util.ArrayList* The name of the action that must be completed before the current action starts. Omit this parameter to run the * action at the start of the experiment. *
* * @param startAfter * The name of the action that must be completed before the current action starts. Omit this parameter to run * the action at the start of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExperimentTemplateActionInput withStartAfter(java.util.Collection