@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDetail extends Object implements Serializable, Cloneable
An object that contains details about when a principal in the reported Organizations entity last attempted to access an Amazon Web Services service. A principal can be an IAM user, an IAM role, or the Amazon Web Services account root user within the reported Organizations entity.
This data type is a response element in the GetOrganizationsAccessReport operation.
Constructor and Description |
---|
AccessDetail() |
Modifier and Type | Method and Description |
---|---|
AccessDetail |
clone() |
boolean |
equals(Object obj) |
String |
getEntityPath()
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated
principal last attempted to access the service.
|
Date |
getLastAuthenticatedTime()
The date and time, in ISO 8601 date-time format, when an
authenticated principal most recently attempted to access the service.
|
String |
getRegion()
The Region where the last service access attempt occurred.
|
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 number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to
access the service in the tracking period.
|
int |
hashCode() |
void |
setEntityPath(String entityPath)
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated
principal last attempted to access the service.
|
void |
setLastAuthenticatedTime(Date lastAuthenticatedTime)
The date and time, in ISO 8601 date-time format, when an
authenticated principal most recently attempted to access the service.
|
void |
setRegion(String region)
The Region where the last service access attempt occurred.
|
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 number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to
access the service in the tracking period.
|
String |
toString()
Returns a string representation of this object.
|
AccessDetail |
withEntityPath(String entityPath)
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated
principal last attempted to access the service.
|
AccessDetail |
withLastAuthenticatedTime(Date lastAuthenticatedTime)
The date and time, in ISO 8601 date-time format, when an
authenticated principal most recently attempted to access the service.
|
AccessDetail |
withRegion(String region)
The Region where the last service access attempt occurred.
|
AccessDetail |
withServiceName(String serviceName)
The name of the service in which access was attempted.
|
AccessDetail |
withServiceNamespace(String serviceNamespace)
The namespace of the service in which access was attempted.
|
AccessDetail |
withTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to
access the service in the tracking period.
|
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 AccessDetail 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 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 Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services General Reference.
To learn the service namespace of a service, see Actions, resources, and condition keys for Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services General Reference.
public AccessDetail 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 Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services service namespaces in the Amazon Web Services General Reference.
public void setRegion(String region)
The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
region
- The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public String getRegion()
The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public AccessDetail withRegion(String region)
The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
region
- The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public void setEntityPath(String entityPath)
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
entityPath
- The path of the Organizations entity (root, organizational unit, or account) from which an authenticated
principal last attempted to access the service. Amazon Web Services does not report unauthenticated
requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
public String getEntityPath()
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
public AccessDetail withEntityPath(String entityPath)
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
entityPath
- The path of the Organizations entity (root, organizational unit, or account) from which an authenticated
principal last attempted to access the service. Amazon Web Services does not report unauthenticated
requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
public void setLastAuthenticatedTime(Date lastAuthenticatedTime)
The date and time, in ISO 8601 date-time format, when an authenticated principal most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
lastAuthenticatedTime
- The date and time, in ISO 8601 date-time format, when an
authenticated principal most recently attempted to access the service. Amazon Web Services does not report
unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public Date getLastAuthenticatedTime()
The date and time, in ISO 8601 date-time format, when an authenticated principal most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public AccessDetail withLastAuthenticatedTime(Date lastAuthenticatedTime)
The date and time, in ISO 8601 date-time format, when an authenticated principal most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
lastAuthenticatedTime
- The date and time, in ISO 8601 date-time format, when an
authenticated principal most recently attempted to access the service. Amazon Web Services does not report
unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
public void setTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.
totalAuthenticatedEntities
- The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted
to access the service in the tracking period.public Integer getTotalAuthenticatedEntities()
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.
public AccessDetail withTotalAuthenticatedEntities(Integer totalAuthenticatedEntities)
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.
totalAuthenticatedEntities
- The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted
to access the service in the tracking period.public String toString()
toString
in class Object
Object.toString()
public AccessDetail clone()