@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceLastAccessed extends Object implements Serializable, Cloneable
Contains details about the most recent attempt to access the service.
This data type is used as a response element in the GetServiceLastAccessedDetails operation.
Constructor and Description |
---|
ServiceLastAccessed() |
Modifier and Type | Method and Description |
---|---|
ServiceLastAccessed |
clone() |
boolean |
equals(Object obj) |
Date |
getLastAuthenticated()
The date and time, in ISO 8601 date-time format, when an
authenticated entity most recently attempted to access the service.
|
String |
getLastAuthenticatedEntity()
The ARN of the authenticated entity (user or role) that last attempted to access the service.
|
String |
getLastAuthenticatedRegion()
The Region from which the authenticated entity (user or role) last attempted to access the service.
|
String |
getServiceName()
The name of the service in which access was attempted.
|
String |
getServiceNamespace()
The namespace of the service in which access was attempted.
|
Integer |
getTotalAuthenticatedEntities()
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access
the service.
|
List<TrackedActionLastAccessed> |
getTrackedActionsLastAccessed()
An object that contains details about the most recent attempt to access a tracked action within the service.
|
int |
hashCode() |
void |
setLastAuthenticated(Date lastAuthenticated)
The date and time, in ISO 8601 date-time format, when an
authenticated entity most recently attempted to access the service.
|
void |
setLastAuthenticatedEntity(String lastAuthenticatedEntity)
The ARN of the authenticated entity (user or role) that last attempted to access the service.
|
void |
setLastAuthenticatedRegion(String lastAuthenticatedRegion)
The Region from which the authenticated entity (user or role) last attempted to access the service.
|
void |
setServiceName(String serviceName)
The name of the service in which access was attempted.
|
void |
setServiceNamespace(String serviceNamespace)
The namespace of the service in which access was attempted.
|
void |
setTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access
the service.
|
void |
setTrackedActionsLastAccessed(Collection<TrackedActionLastAccessed> trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
|
String |
toString()
Returns a string representation of this object.
|
ServiceLastAccessed |
withLastAuthenticated(Date lastAuthenticated)
The date and time, in ISO 8601 date-time format, when an
authenticated entity most recently attempted to access the service.
|
ServiceLastAccessed |
withLastAuthenticatedEntity(String lastAuthenticatedEntity)
The ARN of the authenticated entity (user or role) that last attempted to access the service.
|
ServiceLastAccessed |
withLastAuthenticatedRegion(String lastAuthenticatedRegion)
The Region from which the authenticated entity (user or role) last attempted to access the service.
|
ServiceLastAccessed |
withServiceName(String serviceName)
The name of the service in which access was attempted.
|
ServiceLastAccessed |
withServiceNamespace(String serviceNamespace)
The namespace of the service in which access was attempted.
|
ServiceLastAccessed |
withTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access
the service.
|
ServiceLastAccessed |
withTrackedActionsLastAccessed(Collection<TrackedActionLastAccessed> trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
|
ServiceLastAccessed |
withTrackedActionsLastAccessed(TrackedActionLastAccessed... trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
|
public void setServiceName(String serviceName)
The name of the service in which access was attempted.
serviceName
- The name of the service in which access was attempted.public String getServiceName()
The name of the service in which access was attempted.
public ServiceLastAccessed withServiceName(String serviceName)
The name of the service in which access was attempted.
serviceName
- The name of the service in which access was attempted.public void setLastAuthenticated(Date lastAuthenticated)
The date and time, in ISO 8601 date-time format, when an authenticated entity most recently attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticated
- The date and time, in ISO 8601 date-time format, when an
authenticated entity most recently attempted to access the service. AWS does not report unauthenticated
requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public Date getLastAuthenticated()
The date and time, in ISO 8601 date-time format, when an authenticated entity most recently attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
This field is null if no IAM entities attempted to access the service within the reporting period.
public ServiceLastAccessed withLastAuthenticated(Date lastAuthenticated)
The date and time, in ISO 8601 date-time format, when an authenticated entity most recently attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticated
- The date and time, in ISO 8601 date-time format, when an
authenticated entity most recently attempted to access the service. AWS does not report unauthenticated
requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public void setServiceNamespace(String serviceNamespace)
The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization Reference.
Choose the name of the service to view details for that service. In the first paragraph, find the service prefix.
For example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
serviceNamespace
- The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization
Reference. Choose the name of the service to view details for that service. In the first paragraph,
find the service prefix. For example, (service prefix: a4b)
. For more information about
service namespaces, see AWS Service Namespaces in the AWS General Reference.
public String getServiceNamespace()
The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization Reference.
Choose the name of the service to view details for that service. In the first paragraph, find the service prefix.
For example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization
Reference. Choose the name of the service to view details for that service. In the first paragraph,
find the service prefix. For example, (service prefix: a4b)
. For more information about
service namespaces, see AWS Service Namespaces in the AWS General Reference.
public ServiceLastAccessed withServiceNamespace(String serviceNamespace)
The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization Reference.
Choose the name of the service to view details for that service. In the first paragraph, find the service prefix.
For example, (service prefix: a4b)
. For more information about service namespaces, see AWS Service Namespaces in the AWS General Reference.
serviceNamespace
- The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for AWS services in the Service Authorization
Reference. Choose the name of the service to view details for that service. In the first paragraph,
find the service prefix. For example, (service prefix: a4b)
. For more information about
service namespaces, see AWS Service Namespaces in the AWS General Reference.
public void setLastAuthenticatedEntity(String lastAuthenticatedEntity)
The ARN of the authenticated entity (user or role) that last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticatedEntity
- The ARN of the authenticated entity (user or role) that last attempted to access the service. AWS does not
report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public String getLastAuthenticatedEntity()
The ARN of the authenticated entity (user or role) that last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
This field is null if no IAM entities attempted to access the service within the reporting period.
public ServiceLastAccessed withLastAuthenticatedEntity(String lastAuthenticatedEntity)
The ARN of the authenticated entity (user or role) that last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticatedEntity
- The ARN of the authenticated entity (user or role) that last attempted to access the service. AWS does not
report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public void setLastAuthenticatedRegion(String lastAuthenticatedRegion)
The Region from which the authenticated entity (user or role) last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticatedRegion
- The Region from which the authenticated entity (user or role) last attempted to access the service. AWS
does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public String getLastAuthenticatedRegion()
The Region from which the authenticated entity (user or role) last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
This field is null if no IAM entities attempted to access the service within the reporting period.
public ServiceLastAccessed withLastAuthenticatedRegion(String lastAuthenticatedRegion)
The Region from which the authenticated entity (user or role) last attempted to access the service. AWS does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
lastAuthenticatedRegion
- The Region from which the authenticated entity (user or role) last attempted to access the service. AWS
does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
public void setTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access the service.
This field is null if no principals attempted to access the service within the reporting period.
totalAuthenticatedEntities
- The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to
access the service.
This field is null if no principals attempted to access the service within the reporting period.
public Integer getTotalAuthenticatedEntities()
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access the service.
This field is null if no principals attempted to access the service within the reporting period.
This field is null if no principals attempted to access the service within the reporting period.
public ServiceLastAccessed withTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access the service.
This field is null if no principals attempted to access the service within the reporting period.
totalAuthenticatedEntities
- The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to
access the service.
This field is null if no principals attempted to access the service within the reporting period.
public List<TrackedActionLastAccessed> getTrackedActionsLastAccessed()
An object that contains details about the most recent attempt to access a tracked action within the service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within the reporting period. This field is also null if the report was generated at the service level and not the
action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
This field is null if there no tracked actions or if the principal did not use the tracked actions within
the reporting period. This field is also null if the report was generated at the service level and not
the action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
public void setTrackedActionsLastAccessed(Collection<TrackedActionLastAccessed> trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within the reporting period. This field is also null if the report was generated at the service level and not the
action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
trackedActionsLastAccessed
- An object that contains details about the most recent attempt to access a tracked action within the
service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within
the reporting period. This field is also null if the report was generated at the service level and not
the action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
public ServiceLastAccessed withTrackedActionsLastAccessed(TrackedActionLastAccessed... trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within the reporting period. This field is also null if the report was generated at the service level and not the
action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
NOTE: This method appends the values to the existing list (if any). Use
setTrackedActionsLastAccessed(java.util.Collection)
or
withTrackedActionsLastAccessed(java.util.Collection)
if you want to override the existing values.
trackedActionsLastAccessed
- An object that contains details about the most recent attempt to access a tracked action within the
service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within
the reporting period. This field is also null if the report was generated at the service level and not
the action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
public ServiceLastAccessed withTrackedActionsLastAccessed(Collection<TrackedActionLastAccessed> trackedActionsLastAccessed)
An object that contains details about the most recent attempt to access a tracked action within the service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within the reporting period. This field is also null if the report was generated at the service level and not the
action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
trackedActionsLastAccessed
- An object that contains details about the most recent attempt to access a tracked action within the
service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within
the reporting period. This field is also null if the report was generated at the service level and not
the action level. For more information, see the Granularity
field in
GenerateServiceLastAccessedDetails.
public String toString()
toString
in class Object
Object.toString()
public ServiceLastAccessed clone()