@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartQueryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
StartQueryRequest() |
Modifier and Type | Method and Description |
---|---|
StartQueryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getEndTime()
The end of the time range to query.
|
Integer |
getLimit()
The maximum number of log events to return in the query.
|
List<String> |
getLogGroupIdentifiers()
The list of log groups to query.
|
String |
getLogGroupName()
The log group on which to perform the query.
|
List<String> |
getLogGroupNames()
The list of log groups to be queried.
|
String |
getQueryString()
The query string to use.
|
Long |
getStartTime()
The beginning of the time range to query.
|
int |
hashCode() |
void |
setEndTime(Long endTime)
The end of the time range to query.
|
void |
setLimit(Integer limit)
The maximum number of log events to return in the query.
|
void |
setLogGroupIdentifiers(Collection<String> logGroupIdentifiers)
The list of log groups to query.
|
void |
setLogGroupName(String logGroupName)
The log group on which to perform the query.
|
void |
setLogGroupNames(Collection<String> logGroupNames)
The list of log groups to be queried.
|
void |
setQueryString(String queryString)
The query string to use.
|
void |
setStartTime(Long startTime)
The beginning of the time range to query.
|
String |
toString()
Returns a string representation of this object.
|
StartQueryRequest |
withEndTime(Long endTime)
The end of the time range to query.
|
StartQueryRequest |
withLimit(Integer limit)
The maximum number of log events to return in the query.
|
StartQueryRequest |
withLogGroupIdentifiers(Collection<String> logGroupIdentifiers)
The list of log groups to query.
|
StartQueryRequest |
withLogGroupIdentifiers(String... logGroupIdentifiers)
The list of log groups to query.
|
StartQueryRequest |
withLogGroupName(String logGroupName)
The log group on which to perform the query.
|
StartQueryRequest |
withLogGroupNames(Collection<String> logGroupNames)
The list of log groups to be queried.
|
StartQueryRequest |
withLogGroupNames(String... logGroupNames)
The list of log groups to be queried.
|
StartQueryRequest |
withQueryString(String queryString)
The query string to use.
|
StartQueryRequest |
withStartTime(Long startTime)
The beginning of the time range to query.
|
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 setLogGroupName(String logGroupName)
The log group on which to perform the query.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupName
- The log group on which to perform the query.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public String getLogGroupName()
The log group on which to perform the query.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public StartQueryRequest withLogGroupName(String logGroupName)
The log group on which to perform the query.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupName
- The log group on which to perform the query.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public List<String> getLogGroupNames()
The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public void setLogGroupNames(Collection<String> logGroupNames)
The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupNames
- The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public StartQueryRequest withLogGroupNames(String... logGroupNames)
The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
NOTE: This method appends the values to the existing list (if any). Use
setLogGroupNames(java.util.Collection)
or withLogGroupNames(java.util.Collection)
if you want
to override the existing values.
logGroupNames
- The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public StartQueryRequest withLogGroupNames(Collection<String> logGroupNames)
The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupNames
- The list of log groups to be queried. You can include up to 50 log groups.
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public List<String> getLogGroupIdentifiers()
The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public void setLogGroupIdentifiers(Collection<String> logGroupIdentifiers)
The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupIdentifiers
- The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public StartQueryRequest withLogGroupIdentifiers(String... logGroupIdentifiers)
The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
NOTE: This method appends the values to the existing list (if any). Use
setLogGroupIdentifiers(java.util.Collection)
or withLogGroupIdentifiers(java.util.Collection)
if you want to override the existing values.
logGroupIdentifiers
- The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public StartQueryRequest withLogGroupIdentifiers(Collection<String> logGroupIdentifiers)
The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
logGroupIdentifiers
- The list of log groups to query. You can include up to 50 log groups.
You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.
If you specify an ARN, the ARN can't end with an asterisk (*).
A StartQuery
operation must include exactly one of the following parameters:
logGroupName
, logGroupNames
, or logGroupIdentifiers
.
public void setStartTime(Long startTime)
The beginning of the time range to query. The range is inclusive, so the specified start time is included in the
query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
startTime
- The beginning of the time range to query. The range is inclusive, so the specified start time is included
in the query. Specified as epoch time, the number of seconds since
January 1, 1970, 00:00:00 UTC
.public Long getStartTime()
The beginning of the time range to query. The range is inclusive, so the specified start time is included in the
query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
January 1, 1970, 00:00:00 UTC
.public StartQueryRequest withStartTime(Long startTime)
The beginning of the time range to query. The range is inclusive, so the specified start time is included in the
query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
startTime
- The beginning of the time range to query. The range is inclusive, so the specified start time is included
in the query. Specified as epoch time, the number of seconds since
January 1, 1970, 00:00:00 UTC
.public void setEndTime(Long endTime)
The end of the time range to query. The range is inclusive, so the specified end time is included in the query.
Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
endTime
- The end of the time range to query. The range is inclusive, so the specified end time is included in the
query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.public Long getEndTime()
The end of the time range to query. The range is inclusive, so the specified end time is included in the query.
Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
January 1, 1970, 00:00:00 UTC
.public StartQueryRequest withEndTime(Long endTime)
The end of the time range to query. The range is inclusive, so the specified end time is included in the query.
Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.
endTime
- The end of the time range to query. The range is inclusive, so the specified end time is included in the
query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC
.public void setQueryString(String queryString)
The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use. For more information, see CloudWatch Logs
Insights Query Syntax.public String getQueryString()
The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
public StartQueryRequest withQueryString(String queryString)
The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use. For more information, see CloudWatch Logs
Insights Query Syntax.public void setLimit(Integer limit)
The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned. The default is 1000.
limit
- The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned. The default is 1000.public Integer getLimit()
The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned. The default is 1000.
fields
command, only the specified fields and their values are returned. The default is 1000.public StartQueryRequest withLimit(Integer limit)
The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned. The default is 1000.
limit
- The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned. The default is 1000.public String toString()
toString
in class Object
Object.toString()
public StartQueryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()