@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UnusedPermissionsRecommendedStep extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the action to take for a policy in an unused permissions finding.
Constructor and Description |
---|
UnusedPermissionsRecommendedStep() |
Modifier and Type | Method and Description |
---|---|
UnusedPermissionsRecommendedStep |
clone() |
boolean |
equals(Object obj) |
String |
getExistingPolicyId()
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy
to be detached.
|
Date |
getPolicyUpdatedAt()
The time at which the existing policy for the unused permissions finding was last updated.
|
String |
getRecommendedAction()
A recommendation of whether to create or detach a policy for an unused permissions finding.
|
String |
getRecommendedPolicy()
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the
existingPolicyId field. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExistingPolicyId(String existingPolicyId)
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy
to be detached.
|
void |
setPolicyUpdatedAt(Date policyUpdatedAt)
The time at which the existing policy for the unused permissions finding was last updated.
|
void |
setRecommendedAction(String recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
|
void |
setRecommendedPolicy(String recommendedPolicy)
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the
existingPolicyId field. |
String |
toString()
Returns a string representation of this object.
|
UnusedPermissionsRecommendedStep |
withExistingPolicyId(String existingPolicyId)
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy
to be detached.
|
UnusedPermissionsRecommendedStep |
withPolicyUpdatedAt(Date policyUpdatedAt)
The time at which the existing policy for the unused permissions finding was last updated.
|
UnusedPermissionsRecommendedStep |
withRecommendedAction(RecommendedRemediationAction recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
|
UnusedPermissionsRecommendedStep |
withRecommendedAction(String recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
|
UnusedPermissionsRecommendedStep |
withRecommendedPolicy(String recommendedPolicy)
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the
existingPolicyId field. |
public void setPolicyUpdatedAt(Date policyUpdatedAt)
The time at which the existing policy for the unused permissions finding was last updated.
policyUpdatedAt
- The time at which the existing policy for the unused permissions finding was last updated.public Date getPolicyUpdatedAt()
The time at which the existing policy for the unused permissions finding was last updated.
public UnusedPermissionsRecommendedStep withPolicyUpdatedAt(Date policyUpdatedAt)
The time at which the existing policy for the unused permissions finding was last updated.
policyUpdatedAt
- The time at which the existing policy for the unused permissions finding was last updated.public void setRecommendedAction(String recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
recommendedAction
- A recommendation of whether to create or detach a policy for an unused permissions finding.RecommendedRemediationAction
public String getRecommendedAction()
A recommendation of whether to create or detach a policy for an unused permissions finding.
RecommendedRemediationAction
public UnusedPermissionsRecommendedStep withRecommendedAction(String recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
recommendedAction
- A recommendation of whether to create or detach a policy for an unused permissions finding.RecommendedRemediationAction
public UnusedPermissionsRecommendedStep withRecommendedAction(RecommendedRemediationAction recommendedAction)
A recommendation of whether to create or detach a policy for an unused permissions finding.
recommendedAction
- A recommendation of whether to create or detach a policy for an unused permissions finding.RecommendedRemediationAction
public void setRecommendedPolicy(String recommendedPolicy)
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the existingPolicyId
field.
recommendedPolicy
- If the recommended action for the unused permissions finding is to replace the existing policy, the
contents of the recommended policy to replace the policy specified in the existingPolicyId
field.public String getRecommendedPolicy()
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the existingPolicyId
field.
existingPolicyId
field.public UnusedPermissionsRecommendedStep withRecommendedPolicy(String recommendedPolicy)
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of
the recommended policy to replace the policy specified in the existingPolicyId
field.
recommendedPolicy
- If the recommended action for the unused permissions finding is to replace the existing policy, the
contents of the recommended policy to replace the policy specified in the existingPolicyId
field.public void setExistingPolicyId(String existingPolicyId)
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
existingPolicyId
- If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing
policy to be detached.public String getExistingPolicyId()
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
public UnusedPermissionsRecommendedStep withExistingPolicyId(String existingPolicyId)
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
existingPolicyId
- If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing
policy to be detached.public String toString()
toString
in class Object
Object.toString()
public UnusedPermissionsRecommendedStep clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.