@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutQueryDefinitionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutQueryDefinitionRequest() |
Modifier and Type | Method and Description |
---|---|
PutQueryDefinitionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice
because of a network error.
|
List<String> |
getLogGroupNames()
Use this parameter to include specific log groups as part of your query definition.
|
String |
getName()
A name for the query definition.
|
String |
getQueryDefinitionId()
If you are updating a query definition, use this parameter to specify the ID of the query definition that you
want to update.
|
String |
getQueryString()
The query string to use for this definition.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice
because of a network error.
|
void |
setLogGroupNames(Collection<String> logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
|
void |
setName(String name)
A name for the query definition.
|
void |
setQueryDefinitionId(String queryDefinitionId)
If you are updating a query definition, use this parameter to specify the ID of the query definition that you
want to update.
|
void |
setQueryString(String queryString)
The query string to use for this definition.
|
String |
toString()
Returns a string representation of this object.
|
PutQueryDefinitionRequest |
withClientToken(String clientToken)
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice
because of a network error.
|
PutQueryDefinitionRequest |
withLogGroupNames(Collection<String> logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
|
PutQueryDefinitionRequest |
withLogGroupNames(String... logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
|
PutQueryDefinitionRequest |
withName(String name)
A name for the query definition.
|
PutQueryDefinitionRequest |
withQueryDefinitionId(String queryDefinitionId)
If you are updating a query definition, use this parameter to specify the ID of the query definition that you
want to update.
|
PutQueryDefinitionRequest |
withQueryString(String queryString)
The query string to use for this definition.
|
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 setName(String name)
A name for the query definition. If you are saving numerous query definitions, we recommend that you name them.
This way, you can find the ones you want by using the first part of the name as a filter in the
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.
name
- A name for the query definition. If you are saving numerous query definitions, we recommend that you name
them. This way, you can find the ones you want by using the first part of the name as a filter in the
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.public String getName()
A name for the query definition. If you are saving numerous query definitions, we recommend that you name them.
This way, you can find the ones you want by using the first part of the name as a filter in the
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.public PutQueryDefinitionRequest withName(String name)
A name for the query definition. If you are saving numerous query definitions, we recommend that you name them.
This way, you can find the ones you want by using the first part of the name as a filter in the
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.
name
- A name for the query definition. If you are saving numerous query definitions, we recommend that you name
them. This way, you can find the ones you want by using the first part of the name as a filter in the
queryDefinitionNamePrefix
parameter of DescribeQueryDefinitions.public void setQueryDefinitionId(String queryDefinitionId)
If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
queryDefinitionId
- If you are updating a query definition, use this parameter to specify the ID of the query definition that
you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
public String getQueryDefinitionId()
If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
public PutQueryDefinitionRequest withQueryDefinitionId(String queryDefinitionId)
If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
queryDefinitionId
- If you are updating a query definition, use this parameter to specify the ID of the query definition that
you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.
If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.
public List<String> getLogGroupNames()
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
public void setLogGroupNames(Collection<String> logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
logGroupNames
- Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
public PutQueryDefinitionRequest withLogGroupNames(String... logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
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
- Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
public PutQueryDefinitionRequest withLogGroupNames(Collection<String> logGroupNames)
Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
logGroupNames
- Use this parameter to include specific log groups as part of your query definition.
If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.
public void setQueryString(String queryString)
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use for this definition. For more information, see CloudWatch Logs
Insights Query Syntax.public String getQueryString()
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
public PutQueryDefinitionRequest withQueryString(String queryString)
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use for this definition. For more information, see CloudWatch Logs
Insights Query Syntax.public void setClientToken(String clientToken)
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
clientToken
- Used as an idempotency token, to avoid returning an exception if the service receives the same request
twice because of a network error.public String getClientToken()
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
public PutQueryDefinitionRequest withClientToken(String clientToken)
Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
clientToken
- Used as an idempotency token, to avoid returning an exception if the service receives the same request
twice because of a network error.public String toString()
toString
in class Object
Object.toString()
public PutQueryDefinitionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()