Class ListInsightsMetricDataRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest
-
- software.amazon.awssdk.services.cloudtrail.model.ListInsightsMetricDataRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListInsightsMetricDataRequest.Builder,ListInsightsMetricDataRequest>
@Generated("software.amazon.awssdk:codegen") public final class ListInsightsMetricDataRequest extends CloudTrailRequest implements ToCopyableBuilder<ListInsightsMetricDataRequest.Builder,ListInsightsMetricDataRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListInsightsMetricDataRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListInsightsMetricDataRequest.Builderbuilder()InsightsMetricDataTypedataType()Type of datapoints to return.StringdataTypeAsString()Type of datapoints to return.InstantendTime()Specifies, in UTC, the end time for time-series data.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()Conditionally required if theInsightTypeparameter is set toApiErrorRateInsight.StringeventName()The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.StringeventSource()The Amazon Web Services service to which the request was made, such asiam.amazonaws.comors3.amazonaws.com.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InsightTypeinsightType()The type of CloudTrail Insights event, which is eitherApiCallRateInsightorApiErrorRateInsight.StringinsightTypeAsString()The type of CloudTrail Insights event, which is eitherApiCallRateInsightorApiErrorRateInsight.IntegermaxResults()The maximum number of datapoints to return.StringnextToken()Returned if all datapoints can't be returned in a single call.Integerperiod()Granularity of data to retrieve, in seconds.List<SdkField<?>>sdkFields()static Class<? extends ListInsightsMetricDataRequest.Builder>serializableBuilderClass()InstantstartTime()Specifies, in UTC, the start time for time-series data.ListInsightsMetricDataRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventSource
public final String eventSource()
The Amazon Web Services service to which the request was made, such as
iam.amazonaws.comors3.amazonaws.com.- Returns:
- The Amazon Web Services service to which the request was made, such as
iam.amazonaws.comors3.amazonaws.com.
-
eventName
public final String eventName()
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
- Returns:
- The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
-
insightType
public final InsightType insightType()
The type of CloudTrail Insights event, which is either
ApiCallRateInsightorApiErrorRateInsight. TheApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. TheApiErrorRateInsightInsights type analyzes management API calls that result in error codes.If the service returns an enum value that is not available in the current SDK version,
insightTypewill returnInsightType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominsightTypeAsString().- Returns:
- The type of CloudTrail Insights event, which is either
ApiCallRateInsightorApiErrorRateInsight. TheApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. TheApiErrorRateInsightInsights type analyzes management API calls that result in error codes. - See Also:
InsightType
-
insightTypeAsString
public final String insightTypeAsString()
The type of CloudTrail Insights event, which is either
ApiCallRateInsightorApiErrorRateInsight. TheApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. TheApiErrorRateInsightInsights type analyzes management API calls that result in error codes.If the service returns an enum value that is not available in the current SDK version,
insightTypewill returnInsightType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominsightTypeAsString().- Returns:
- The type of CloudTrail Insights event, which is either
ApiCallRateInsightorApiErrorRateInsight. TheApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. TheApiErrorRateInsightInsights type analyzes management API calls that result in error codes. - See Also:
InsightType
-
errorCode
public final String errorCode()
Conditionally required if the
InsightTypeparameter is set toApiErrorRateInsight.If returning metrics for the
ApiErrorRateInsightInsights type, this is the error to retrieve data for. For example,AccessDenied.- Returns:
- Conditionally required if the
InsightTypeparameter is set toApiErrorRateInsight.If returning metrics for the
ApiErrorRateInsightInsights type, this is the error to retrieve data for. For example,AccessDenied.
-
startTime
public final Instant startTime()
Specifies, in UTC, the start time for time-series data. The value specified is inclusive; results include data points with the specified time stamp.
The default is 90 days before the time of request.
- Returns:
- Specifies, in UTC, the start time for time-series data. The value specified is inclusive; results include
data points with the specified time stamp.
The default is 90 days before the time of request.
-
endTime
public final Instant endTime()
Specifies, in UTC, the end time for time-series data. The value specified is exclusive; results include data points up to the specified time stamp.
The default is the time of request.
- Returns:
- Specifies, in UTC, the end time for time-series data. The value specified is exclusive; results include
data points up to the specified time stamp.
The default is the time of request.
-
period
public final Integer period()
Granularity of data to retrieve, in seconds. Valid values are
60,300, and3600. If you specify any other value, you will get an error. The default is 3600 seconds.- Returns:
- Granularity of data to retrieve, in seconds. Valid values are
60,300, and3600. If you specify any other value, you will get an error. The default is 3600 seconds.
-
dataType
public final InsightsMetricDataType dataType()
Type of datapoints to return. Valid values are
NonZeroDataandFillWithZeros. The default isNonZeroData.If the service returns an enum value that is not available in the current SDK version,
dataTypewill returnInsightsMetricDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataTypeAsString().- Returns:
- Type of datapoints to return. Valid values are
NonZeroDataandFillWithZeros. The default isNonZeroData. - See Also:
InsightsMetricDataType
-
dataTypeAsString
public final String dataTypeAsString()
Type of datapoints to return. Valid values are
NonZeroDataandFillWithZeros. The default isNonZeroData.If the service returns an enum value that is not available in the current SDK version,
dataTypewill returnInsightsMetricDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataTypeAsString().- Returns:
- Type of datapoints to return. Valid values are
NonZeroDataandFillWithZeros. The default isNonZeroData. - See Also:
InsightsMetricDataType
-
maxResults
public final Integer maxResults()
The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value is 21600.
- Returns:
- The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value is 21600.
-
nextToken
public final String nextToken()
Returned if all datapoints can't be returned in a single call. For example, due to reaching
MaxResults.Add this parameter to the request to continue retrieving results starting from the last evaluated point.
- Returns:
- Returned if all datapoints can't be returned in a single call. For example, due to reaching
MaxResults.Add this parameter to the request to continue retrieving results starting from the last evaluated point.
-
toBuilder
public ListInsightsMetricDataRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListInsightsMetricDataRequest.Builder,ListInsightsMetricDataRequest>- Specified by:
toBuilderin classCloudTrailRequest
-
builder
public static ListInsightsMetricDataRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListInsightsMetricDataRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-