@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudTrailDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about CloudTrail access.
Constructor and Description |
---|
CloudTrailDetails() |
Modifier and Type | Method and Description |
---|---|
CloudTrailDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAccessRole()
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last
accessed information.
|
Date |
getEndTime()
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
Date |
getStartTime()
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
List<Trail> |
getTrails()
A
Trail object that contains settings for a trail. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessRole(String accessRole)
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last
accessed information.
|
void |
setEndTime(Date endTime)
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
void |
setStartTime(Date startTime)
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
void |
setTrails(Collection<Trail> trails)
A
Trail object that contains settings for a trail. |
String |
toString()
Returns a string representation of this object.
|
CloudTrailDetails |
withAccessRole(String accessRole)
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last
accessed information.
|
CloudTrailDetails |
withEndTime(Date endTime)
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
CloudTrailDetails |
withStartTime(Date startTime)
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events.
|
CloudTrailDetails |
withTrails(Collection<Trail> trails)
A
Trail object that contains settings for a trail. |
CloudTrailDetails |
withTrails(Trail... trails)
A
Trail object that contains settings for a trail. |
public void setAccessRole(String accessRole)
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.
accessRole
- The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last
accessed information.public String getAccessRole()
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.
public CloudTrailDetails withAccessRole(String accessRole)
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.
accessRole
- The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last
accessed information.public void setEndTime(Date endTime)
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.
endTime
- The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a
timestamp after this time are not considered to generate a policy. If this is not included in the request,
the default value is the current time.public Date getEndTime()
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.
public CloudTrailDetails withEndTime(Date endTime)
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.
endTime
- The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a
timestamp after this time are not considered to generate a policy. If this is not included in the request,
the default value is the current time.public void setStartTime(Date startTime)
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.
startTime
- The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a
timestamp before this time are not considered to generate a policy.public Date getStartTime()
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.
public CloudTrailDetails withStartTime(Date startTime)
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.
startTime
- The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a
timestamp before this time are not considered to generate a policy.public List<Trail> getTrails()
A Trail
object that contains settings for a trail.
Trail
object that contains settings for a trail.public void setTrails(Collection<Trail> trails)
A Trail
object that contains settings for a trail.
trails
- A Trail
object that contains settings for a trail.public CloudTrailDetails withTrails(Trail... trails)
A Trail
object that contains settings for a trail.
NOTE: This method appends the values to the existing list (if any). Use
setTrails(java.util.Collection)
or withTrails(java.util.Collection)
if you want to override the
existing values.
trails
- A Trail
object that contains settings for a trail.public CloudTrailDetails withTrails(Collection<Trail> trails)
A Trail
object that contains settings for a trail.
trails
- A Trail
object that contains settings for a trail.public String toString()
toString
in class Object
Object.toString()
public CloudTrailDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.