@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UnusedPermissionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an unused access finding for a permission. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
Constructor and Description |
---|
UnusedPermissionDetails() |
Modifier and Type | Method and Description |
---|---|
UnusedPermissionDetails |
clone() |
boolean |
equals(Object obj) |
List<UnusedAction> |
getActions()
A list of unused actions for which the unused access finding was generated.
|
Date |
getLastAccessed()
The time at which the permission was last accessed.
|
String |
getServiceNamespace()
The namespace of the Amazon Web Services service that contains the unused actions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<UnusedAction> actions)
A list of unused actions for which the unused access finding was generated.
|
void |
setLastAccessed(Date lastAccessed)
The time at which the permission was last accessed.
|
void |
setServiceNamespace(String serviceNamespace)
The namespace of the Amazon Web Services service that contains the unused actions.
|
String |
toString()
Returns a string representation of this object.
|
UnusedPermissionDetails |
withActions(Collection<UnusedAction> actions)
A list of unused actions for which the unused access finding was generated.
|
UnusedPermissionDetails |
withActions(UnusedAction... actions)
A list of unused actions for which the unused access finding was generated.
|
UnusedPermissionDetails |
withLastAccessed(Date lastAccessed)
The time at which the permission was last accessed.
|
UnusedPermissionDetails |
withServiceNamespace(String serviceNamespace)
The namespace of the Amazon Web Services service that contains the unused actions.
|
public List<UnusedAction> getActions()
A list of unused actions for which the unused access finding was generated.
public void setActions(Collection<UnusedAction> actions)
A list of unused actions for which the unused access finding was generated.
actions
- A list of unused actions for which the unused access finding was generated.public UnusedPermissionDetails withActions(UnusedAction... actions)
A list of unused actions for which the unused access finding was generated.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- A list of unused actions for which the unused access finding was generated.public UnusedPermissionDetails withActions(Collection<UnusedAction> actions)
A list of unused actions for which the unused access finding was generated.
actions
- A list of unused actions for which the unused access finding was generated.public void setServiceNamespace(String serviceNamespace)
The namespace of the Amazon Web Services service that contains the unused actions.
serviceNamespace
- The namespace of the Amazon Web Services service that contains the unused actions.public String getServiceNamespace()
The namespace of the Amazon Web Services service that contains the unused actions.
public UnusedPermissionDetails withServiceNamespace(String serviceNamespace)
The namespace of the Amazon Web Services service that contains the unused actions.
serviceNamespace
- The namespace of the Amazon Web Services service that contains the unused actions.public void setLastAccessed(Date lastAccessed)
The time at which the permission was last accessed.
lastAccessed
- The time at which the permission was last accessed.public Date getLastAccessed()
The time at which the permission was last accessed.
public UnusedPermissionDetails withLastAccessed(Date lastAccessed)
The time at which the permission was last accessed.
lastAccessed
- The time at which the permission was last accessed.public String toString()
toString
in class Object
Object.toString()
public UnusedPermissionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.