@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateMitigationActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateMitigationActionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateMitigationActionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getActionName()
A friendly name for the action.
|
MitigationActionParams |
getActionParams()
Defines the type of action and the parameters for that action.
|
String |
getRoleArn()
The ARN of the IAM role that is used to apply the mitigation action.
|
List<Tag> |
getTags()
Metadata that can be used to manage the mitigation action.
|
int |
hashCode() |
void |
setActionName(String actionName)
A friendly name for the action.
|
void |
setActionParams(MitigationActionParams actionParams)
Defines the type of action and the parameters for that action.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
|
void |
setTags(Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
|
String |
toString()
Returns a string representation of this object.
|
CreateMitigationActionRequest |
withActionName(String actionName)
A friendly name for the action.
|
CreateMitigationActionRequest |
withActionParams(MitigationActionParams actionParams)
Defines the type of action and the parameters for that action.
|
CreateMitigationActionRequest |
withRoleArn(String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
|
CreateMitigationActionRequest |
withTags(Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
|
CreateMitigationActionRequest |
withTags(Tag... tags)
Metadata that can be used to manage the mitigation action.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setActionName(String actionName)
A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).
actionName
- A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).public String getActionName()
A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).
EnableLoggingAction
).public CreateMitigationActionRequest withActionName(String actionName)
A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).
actionName
- A friendly name for the action. Choose a friendly name that accurately describes the action (for example,
EnableLoggingAction
).public void setRoleArn(String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
roleArn
- The ARN of the IAM role that is used to apply the mitigation action.public String getRoleArn()
The ARN of the IAM role that is used to apply the mitigation action.
public CreateMitigationActionRequest withRoleArn(String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
roleArn
- The ARN of the IAM role that is used to apply the mitigation action.public void setActionParams(MitigationActionParams actionParams)
Defines the type of action and the parameters for that action.
actionParams
- Defines the type of action and the parameters for that action.public MitigationActionParams getActionParams()
Defines the type of action and the parameters for that action.
public CreateMitigationActionRequest withActionParams(MitigationActionParams actionParams)
Defines the type of action and the parameters for that action.
actionParams
- Defines the type of action and the parameters for that action.public List<Tag> getTags()
Metadata that can be used to manage the mitigation action.
public void setTags(Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
tags
- Metadata that can be used to manage the mitigation action.public CreateMitigationActionRequest withTags(Tag... tags)
Metadata that can be used to manage the mitigation action.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Metadata that can be used to manage the mitigation action.public CreateMitigationActionRequest withTags(Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
tags
- Metadata that can be used to manage the mitigation action.public String toString()
toString
in class Object
Object.toString()
public CreateMitigationActionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()