@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListInsightsMetricDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ListInsightsMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
ListInsightsMetricDataRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDataType()
Type of datapoints to return.
|
Date |
getEndTime()
Specifies, in UTC, the end time for time-series data.
|
String |
getErrorCode()
Conditionally required if the
InsightType parameter is set to ApiErrorRateInsight . |
String |
getEventName()
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
|
String |
getEventSource()
The Amazon Web Services service to which the request was made, such as
iam.amazonaws.com or
s3.amazonaws.com . |
String |
getInsightType()
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
Integer |
getMaxResults()
The maximum number of datapoints to return.
|
String |
getNextToken()
Returned if all datapoints can't be returned in a single call.
|
Integer |
getPeriod()
Granularity of data to retrieve, in seconds.
|
Date |
getStartTime()
Specifies, in UTC, the start time for time-series data.
|
int |
hashCode() |
void |
setDataType(String dataType)
Type of datapoints to return.
|
void |
setEndTime(Date endTime)
Specifies, in UTC, the end time for time-series data.
|
void |
setErrorCode(String errorCode)
Conditionally required if the
InsightType parameter is set to ApiErrorRateInsight . |
void |
setEventName(String eventName)
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
|
void |
setEventSource(String eventSource)
The Amazon Web Services service to which the request was made, such as
iam.amazonaws.com or
s3.amazonaws.com . |
void |
setInsightType(String insightType)
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
void |
setMaxResults(Integer maxResults)
The maximum number of datapoints to return.
|
void |
setNextToken(String nextToken)
Returned if all datapoints can't be returned in a single call.
|
void |
setPeriod(Integer period)
Granularity of data to retrieve, in seconds.
|
void |
setStartTime(Date startTime)
Specifies, in UTC, the start time for time-series data.
|
String |
toString()
Returns a string representation of this object.
|
ListInsightsMetricDataRequest |
withDataType(InsightsMetricDataType dataType)
Type of datapoints to return.
|
ListInsightsMetricDataRequest |
withDataType(String dataType)
Type of datapoints to return.
|
ListInsightsMetricDataRequest |
withEndTime(Date endTime)
Specifies, in UTC, the end time for time-series data.
|
ListInsightsMetricDataRequest |
withErrorCode(String errorCode)
Conditionally required if the
InsightType parameter is set to ApiErrorRateInsight . |
ListInsightsMetricDataRequest |
withEventName(String eventName)
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
|
ListInsightsMetricDataRequest |
withEventSource(String eventSource)
The Amazon Web Services service to which the request was made, such as
iam.amazonaws.com or
s3.amazonaws.com . |
ListInsightsMetricDataRequest |
withInsightType(InsightType insightType)
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
ListInsightsMetricDataRequest |
withInsightType(String insightType)
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
ListInsightsMetricDataRequest |
withMaxResults(Integer maxResults)
The maximum number of datapoints to return.
|
ListInsightsMetricDataRequest |
withNextToken(String nextToken)
Returned if all datapoints can't be returned in a single call.
|
ListInsightsMetricDataRequest |
withPeriod(Integer period)
Granularity of data to retrieve, in seconds.
|
ListInsightsMetricDataRequest |
withStartTime(Date startTime)
Specifies, in UTC, the start time for time-series data.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setEventSource(String eventSource)
The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or
s3.amazonaws.com
.
eventSource
- The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or
s3.amazonaws.com
.public String getEventSource()
The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or
s3.amazonaws.com
.
iam.amazonaws.com
or
s3.amazonaws.com
.public ListInsightsMetricDataRequest withEventSource(String eventSource)
The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or
s3.amazonaws.com
.
eventSource
- The Amazon Web Services service to which the request was made, such as iam.amazonaws.com
or
s3.amazonaws.com
.public void setEventName(String eventName)
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
eventName
- The name of the event, typically the Amazon Web Services API on which unusual levels of activity were
recorded.public String getEventName()
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
public ListInsightsMetricDataRequest withEventName(String eventName)
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
eventName
- The name of the event, typically the Amazon Web Services API on which unusual levels of activity were
recorded.public void setInsightType(String insightType)
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
insightType
- The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.InsightType
public String getInsightType()
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.InsightType
public ListInsightsMetricDataRequest withInsightType(String insightType)
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
insightType
- The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.InsightType
public ListInsightsMetricDataRequest withInsightType(InsightType insightType)
The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.
insightType
- The type of CloudTrail Insights event, which is either ApiCallRateInsight
or
ApiErrorRateInsight
. The ApiCallRateInsight
Insights type analyzes write-only
management API calls that are aggregated per minute against a baseline API call volume. The
ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes.InsightType
public void setErrorCode(String errorCode)
Conditionally required if the InsightType
parameter is set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
errorCode
- Conditionally required if the InsightType
parameter is set to
ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve
data for. For example, AccessDenied
.
public String getErrorCode()
Conditionally required if the InsightType
parameter is set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
InsightType
parameter is set to
ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to
retrieve data for. For example, AccessDenied
.
public ListInsightsMetricDataRequest withErrorCode(String errorCode)
Conditionally required if the InsightType
parameter is set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
errorCode
- Conditionally required if the InsightType
parameter is set to
ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve
data for. For example, AccessDenied
.
public void setStartTime(Date 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.
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.
public Date getStartTime()
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.
The default is 90 days before the time of request.
public ListInsightsMetricDataRequest withStartTime(Date 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.
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.
public void setEndTime(Date 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.
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.
public Date getEndTime()
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.
The default is the time of request.
public ListInsightsMetricDataRequest withEndTime(Date 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.
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.
public void setPeriod(Integer period)
Granularity of data to retrieve, in seconds. Valid values are 60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.
period
- Granularity of data to retrieve, in seconds. Valid values are 60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.public Integer getPeriod()
Granularity of data to retrieve, in seconds. Valid values are 60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.
60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.public ListInsightsMetricDataRequest withPeriod(Integer period)
Granularity of data to retrieve, in seconds. Valid values are 60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.
period
- Granularity of data to retrieve, in seconds. Valid values are 60
, 300
, and
3600
. If you specify any other value, you will get an error. The default is 3600 seconds.public void setDataType(String dataType)
Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
. The
default is NonZeroData
.
dataType
- Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
.
The default is NonZeroData
.InsightsMetricDataType
public String getDataType()
Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
. The
default is NonZeroData
.
NonZeroData
and FillWithZeros
.
The default is NonZeroData
.InsightsMetricDataType
public ListInsightsMetricDataRequest withDataType(String dataType)
Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
. The
default is NonZeroData
.
dataType
- Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
.
The default is NonZeroData
.InsightsMetricDataType
public ListInsightsMetricDataRequest withDataType(InsightsMetricDataType dataType)
Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
. The
default is NonZeroData
.
dataType
- Type of datapoints to return. Valid values are NonZeroData
and FillWithZeros
.
The default is NonZeroData
.InsightsMetricDataType
public void setMaxResults(Integer maxResults)
The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value is 21600.
maxResults
- The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value
is 21600.public Integer getMaxResults()
The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value is 21600.
public ListInsightsMetricDataRequest withMaxResults(Integer maxResults)
The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value is 21600.
maxResults
- The maximum number of datapoints to return. Valid values are integers from 1 to 21600. The default value
is 21600.public void setNextToken(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.
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.
public String getNextToken()
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.
MaxResults
.
Add this parameter to the request to continue retrieving results starting from the last evaluated point.
public ListInsightsMetricDataRequest withNextToken(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.
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.
public String toString()
toString
in class Object
Object.toString()
public ListInsightsMetricDataRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()