@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListInsightsMetricDataResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListInsightsMetricDataResult() |
Modifier and Type | Method and Description |
---|---|
ListInsightsMetricDataResult |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
Only returned if
InsightType parameter was 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 . |
String |
getNextToken()
Only returned if the full results could not be returned in a single query.
|
List<Date> |
getTimestamps()
List of timestamps at intervals corresponding to the specified time period.
|
List<Double> |
getValues()
List of values representing the API call rate or error rate at each timestamp.
|
int |
hashCode() |
void |
setErrorCode(String errorCode)
Only returned if
InsightType parameter was 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 |
setNextToken(String nextToken)
Only returned if the full results could not be returned in a single query.
|
void |
setTimestamps(Collection<Date> timestamps)
List of timestamps at intervals corresponding to the specified time period.
|
void |
setValues(Collection<Double> values)
List of values representing the API call rate or error rate at each timestamp.
|
String |
toString()
Returns a string representation of this object.
|
ListInsightsMetricDataResult |
withErrorCode(String errorCode)
Only returned if
InsightType parameter was set to ApiErrorRateInsight . |
ListInsightsMetricDataResult |
withEventName(String eventName)
The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
|
ListInsightsMetricDataResult |
withEventSource(String eventSource)
The Amazon Web Services service to which the request was made, such as
iam.amazonaws.com or
s3.amazonaws.com . |
ListInsightsMetricDataResult |
withInsightType(InsightType insightType)
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
ListInsightsMetricDataResult |
withInsightType(String insightType)
The type of CloudTrail Insights event, which is either
ApiCallRateInsight or
ApiErrorRateInsight . |
ListInsightsMetricDataResult |
withNextToken(String nextToken)
Only returned if the full results could not be returned in a single query.
|
ListInsightsMetricDataResult |
withTimestamps(Collection<Date> timestamps)
List of timestamps at intervals corresponding to the specified time period.
|
ListInsightsMetricDataResult |
withTimestamps(Date... timestamps)
List of timestamps at intervals corresponding to the specified time period.
|
ListInsightsMetricDataResult |
withValues(Collection<Double> values)
List of values representing the API call rate or error rate at each timestamp.
|
ListInsightsMetricDataResult |
withValues(Double... values)
List of values representing the API call rate or error rate at each timestamp.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 ListInsightsMetricDataResult 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 ListInsightsMetricDataResult 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 ListInsightsMetricDataResult 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 ListInsightsMetricDataResult 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)
Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
errorCode
- Only returned if InsightType
parameter was 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()
Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to
retrieve data for. For example, AccessDenied
.
public ListInsightsMetricDataResult withErrorCode(String errorCode)
Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve data
for. For example, AccessDenied
.
errorCode
- Only returned if InsightType
parameter was set to ApiErrorRateInsight
.
If returning metrics for the ApiErrorRateInsight
Insights type, this is the error to retrieve
data for. For example, AccessDenied
.
public List<Date> getTimestamps()
List of timestamps at intervals corresponding to the specified time period.
public void setTimestamps(Collection<Date> timestamps)
List of timestamps at intervals corresponding to the specified time period.
timestamps
- List of timestamps at intervals corresponding to the specified time period.public ListInsightsMetricDataResult withTimestamps(Date... timestamps)
List of timestamps at intervals corresponding to the specified time period.
NOTE: This method appends the values to the existing list (if any). Use
setTimestamps(java.util.Collection)
or withTimestamps(java.util.Collection)
if you want to
override the existing values.
timestamps
- List of timestamps at intervals corresponding to the specified time period.public ListInsightsMetricDataResult withTimestamps(Collection<Date> timestamps)
List of timestamps at intervals corresponding to the specified time period.
timestamps
- List of timestamps at intervals corresponding to the specified time period.public List<Double> getValues()
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
public void setValues(Collection<Double> values)
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
values
- List of values representing the API call rate or error rate at each timestamp. The number of values is
equal to the number of timestamps.public ListInsightsMetricDataResult withValues(Double... values)
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- List of values representing the API call rate or error rate at each timestamp. The number of values is
equal to the number of timestamps.public ListInsightsMetricDataResult withValues(Collection<Double> values)
List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
values
- List of values representing the API call rate or error rate at each timestamp. The number of values is
equal to the number of timestamps.public void setNextToken(String nextToken)
Only returned if the full results could not be returned in a single query. You can set the NextToken
parameter in the next request to this value to continue retrieval.
nextToken
- Only returned if the full results could not be returned in a single query. You can set the
NextToken
parameter in the next request to this value to continue retrieval.public String getNextToken()
Only returned if the full results could not be returned in a single query. You can set the NextToken
parameter in the next request to this value to continue retrieval.
NextToken
parameter in the next request to this value to continue retrieval.public ListInsightsMetricDataResult withNextToken(String nextToken)
Only returned if the full results could not be returned in a single query. You can set the NextToken
parameter in the next request to this value to continue retrieval.
nextToken
- Only returned if the full results could not be returned in a single query. You can set the
NextToken
parameter in the next request to this value to continue retrieval.public String toString()
toString
in class Object
Object.toString()
public ListInsightsMetricDataResult clone()