public class CreateMitigationActionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain types of mitigation actions can be applied to specific check names. For more information, see Mitigation actions. Each mitigation action can apply only one type of change.
Constructor and Description |
---|
CreateMitigationActionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionName()
A friendly name for the action.
|
MitigationActionParams |
getActionParams()
Defines the type of action and the parameters for that action.
|
java.lang.String |
getRoleArn()
The ARN of the IAM role that is used to apply the mitigation action.
|
java.util.List<Tag> |
getTags()
Metadata that can be used to manage the mitigation action.
|
int |
hashCode() |
void |
setActionName(java.lang.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(java.lang.String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
|
void |
setTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateMitigationActionRequest |
withActionName(java.lang.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(java.lang.String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
|
CreateMitigationActionRequest |
withTags(java.util.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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getActionName()
A friendly name for the action. Choose a friendly name that accurately
describes the action (for example, EnableLoggingAction
).
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
A friendly name for the action. Choose a friendly name that
accurately describes the action (for example,
EnableLoggingAction
).
public void setActionName(java.lang.String actionName)
A friendly name for the action. Choose a friendly name that accurately
describes the action (for example, EnableLoggingAction
).
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
actionName
-
A friendly name for the action. Choose a friendly name that
accurately describes the action (for example,
EnableLoggingAction
).
public CreateMitigationActionRequest withActionName(java.lang.String actionName)
A friendly name for the action. Choose a friendly name that accurately
describes the action (for example, EnableLoggingAction
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
actionName
-
A friendly name for the action. Choose a friendly name that
accurately describes the action (for example,
EnableLoggingAction
).
public java.lang.String getRoleArn()
The ARN of the IAM role that is used to apply the mitigation action.
Constraints:
Length: 20 - 2048
The ARN of the IAM role that is used to apply the mitigation action.
public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
Constraints:
Length: 20 - 2048
roleArn
- The ARN of the IAM role that is used to apply the mitigation action.
public CreateMitigationActionRequest withRoleArn(java.lang.String roleArn)
The ARN of the IAM role that is used to apply the mitigation action.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn
- The ARN of the IAM role that is used to apply the mitigation action.
public MitigationActionParams getActionParams()
Defines the type of action and the parameters for that action.
Defines the type of action and the parameters for that 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 CreateMitigationActionRequest withActionParams(MitigationActionParams actionParams)
Defines the type of action and the parameters for that action.
Returns a reference to this object so that method calls can be chained together.
actionParams
- Defines the type of action and the parameters for that action.
public java.util.List<Tag> getTags()
Metadata that can be used to manage the mitigation action.
Metadata that can be used to manage the mitigation action.
public void setTags(java.util.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.
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata that can be used to manage the mitigation action.
public CreateMitigationActionRequest withTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the mitigation action.
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata that can be used to manage the mitigation action.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.