@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateExperimentTemplateActionInput extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an action for an experiment template.
For more information, see Actions in the Fault Injection Simulator User Guide.
Constructor and Description |
---|
CreateExperimentTemplateActionInput() |
Modifier and Type | Method and Description |
---|---|
CreateExperimentTemplateActionInput |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
CreateExperimentTemplateActionInput |
addTargetsEntry(String key,
String value)
Add a single Targets entry
|
CreateExperimentTemplateActionInput |
clearParametersEntries()
Removes all the entries added into Parameters.
|
CreateExperimentTemplateActionInput |
clearTargetsEntries()
Removes all the entries added into Targets.
|
CreateExperimentTemplateActionInput |
clone() |
boolean |
equals(Object obj) |
String |
getActionId()
The ID of the action.
|
String |
getDescription()
A description for the action.
|
Map<String,String> |
getParameters()
The parameters for the action, if applicable.
|
List<String> |
getStartAfter()
The name of the action that must be completed before the current action starts.
|
Map<String,String> |
getTargets()
The targets for the action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActionId(String actionId)
The ID of the action.
|
void |
setDescription(String description)
A description for the action.
|
void |
setParameters(Map<String,String> parameters)
The parameters for the action, if applicable.
|
void |
setStartAfter(Collection<String> startAfter)
The name of the action that must be completed before the current action starts.
|
void |
setTargets(Map<String,String> targets)
The targets for the action.
|
String |
toString()
Returns a string representation of this object.
|
CreateExperimentTemplateActionInput |
withActionId(String actionId)
The ID of the action.
|
CreateExperimentTemplateActionInput |
withDescription(String description)
A description for the action.
|
CreateExperimentTemplateActionInput |
withParameters(Map<String,String> parameters)
The parameters for the action, if applicable.
|
CreateExperimentTemplateActionInput |
withStartAfter(Collection<String> startAfter)
The name of the action that must be completed before the current action starts.
|
CreateExperimentTemplateActionInput |
withStartAfter(String... startAfter)
The name of the action that must be completed before the current action starts.
|
CreateExperimentTemplateActionInput |
withTargets(Map<String,String> targets)
The targets for the action.
|
public void setActionId(String actionId)
The ID of the action. The format of the action ID is: aws:service-name:action-type.
actionId
- The ID of the action. The format of the action ID is: aws:service-name:action-type.public String getActionId()
The ID of the action. The format of the action ID is: aws:service-name:action-type.
public CreateExperimentTemplateActionInput withActionId(String actionId)
The ID of the action. The format of the action ID is: aws:service-name:action-type.
actionId
- The ID of the action. The format of the action ID is: aws:service-name:action-type.public void setDescription(String description)
A description for the action.
description
- A description for the action.public String getDescription()
A description for the action.
public CreateExperimentTemplateActionInput withDescription(String description)
A description for the action.
description
- A description for the action.public Map<String,String> getParameters()
The parameters for the action, if applicable.
public void setParameters(Map<String,String> parameters)
The parameters for the action, if applicable.
parameters
- The parameters for the action, if applicable.public CreateExperimentTemplateActionInput withParameters(Map<String,String> parameters)
The parameters for the action, if applicable.
parameters
- The parameters for the action, if applicable.public CreateExperimentTemplateActionInput addParametersEntry(String key, String value)
public CreateExperimentTemplateActionInput clearParametersEntries()
public Map<String,String> getTargets()
The targets for the action.
public void setTargets(Map<String,String> targets)
The targets for the action.
targets
- The targets for the action.public CreateExperimentTemplateActionInput withTargets(Map<String,String> targets)
The targets for the action.
targets
- The targets for the action.public CreateExperimentTemplateActionInput addTargetsEntry(String key, String value)
public CreateExperimentTemplateActionInput clearTargetsEntries()
public List<String> getStartAfter()
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(Collection<String> 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.
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 CreateExperimentTemplateActionInput withStartAfter(String... 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.
NOTE: This method appends the values to the existing list (if any). Use
setStartAfter(java.util.Collection)
or withStartAfter(java.util.Collection)
if you want to
override the existing values.
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 CreateExperimentTemplateActionInput withStartAfter(Collection<String> 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.
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 String toString()
toString
in class Object
Object.toString()
public CreateExperimentTemplateActionInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.