@Generated(value="software.amazon.awssdk:codegen") public class GetTrailStatusResponse extends CloudTrailResponse implements ToCopyableBuilder<GetTrailStatusResponse.Builder,GetTrailStatusResponse>
Returns the objects or data listed below if successful. Otherwise, returns an error.
Modifier and Type | Class and Description |
---|---|
static interface |
GetTrailStatusResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetTrailStatusResponse.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
Boolean |
isLogging()
Whether the CloudTrail is currently logging AWS API calls.
|
String |
latestCloudWatchLogsDeliveryError()
Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch
Logs.
|
Instant |
latestCloudWatchLogsDeliveryTime()
Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.
|
String |
latestDeliveryAttemptSucceeded()
This field is deprecated.
|
String |
latestDeliveryAttemptTime()
This field is deprecated.
|
String |
latestDeliveryError()
Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated
bucket.
|
Instant |
latestDeliveryTime()
Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.
|
String |
latestDigestDeliveryError()
Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the
designated bucket.
|
Instant |
latestDigestDeliveryTime()
Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.
|
String |
latestNotificationAttemptSucceeded()
This field is deprecated.
|
String |
latestNotificationAttemptTime()
This field is deprecated.
|
String |
latestNotificationError()
Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification.
|
Instant |
latestNotificationTime()
Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file
to an account's Amazon S3 bucket.
|
static Class<? extends GetTrailStatusResponse.Builder> |
serializableBuilderClass() |
Instant |
startLoggingTime()
Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.
|
Instant |
stopLoggingTime()
Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.
|
String |
timeLoggingStarted()
This field is deprecated.
|
String |
timeLoggingStopped()
This field is deprecated.
|
GetTrailStatusResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Boolean isLogging()
Whether the CloudTrail is currently logging AWS API calls.
public String latestDeliveryError()
Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.
This error occurs only when there is a problem with the destination S3 bucket and will not occur for timeouts. To
resolve the issue, create a new bucket and call UpdateTrail
to specify the new bucket, or fix the
existing objects so that CloudTrail can again write to the bucket.
This error occurs only when there is a problem with the destination S3 bucket and will not occur for
timeouts. To resolve the issue, create a new bucket and call UpdateTrail
to specify the new
bucket, or fix the existing objects so that CloudTrail can again write to the bucket.
public String latestNotificationError()
Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the Amazon SNS Developer Guide.
public Instant latestDeliveryTime()
Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.
public Instant latestNotificationTime()
Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.
public Instant startLoggingTime()
Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.
public Instant stopLoggingTime()
Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.
public String latestCloudWatchLogsDeliveryError()
Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.
public Instant latestCloudWatchLogsDeliveryTime()
Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.
public Instant latestDigestDeliveryTime()
Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.
public String latestDigestDeliveryError()
Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.
This error occurs only when there is a problem with the destination S3 bucket and will not occur for timeouts. To
resolve the issue, create a new bucket and call UpdateTrail
to specify the new bucket, or fix the
existing objects so that CloudTrail can again write to the bucket.
This error occurs only when there is a problem with the destination S3 bucket and will not occur for
timeouts. To resolve the issue, create a new bucket and call UpdateTrail
to specify the new
bucket, or fix the existing objects so that CloudTrail can again write to the bucket.
public String latestDeliveryAttemptTime()
This field is deprecated.
public String latestNotificationAttemptTime()
This field is deprecated.
public String latestNotificationAttemptSucceeded()
This field is deprecated.
public String latestDeliveryAttemptSucceeded()
This field is deprecated.
public String timeLoggingStarted()
This field is deprecated.
public String timeLoggingStopped()
This field is deprecated.
public GetTrailStatusResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetTrailStatusResponse.Builder,GetTrailStatusResponse>
toBuilder
in class AwsResponse
public static GetTrailStatusResponse.Builder builder()
public static Class<? extends GetTrailStatusResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.