Class QueryInfo
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.QueryInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QueryInfo.Builder,QueryInfo>
@Generated("software.amazon.awssdk:codegen") public final class QueryInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QueryInfo.Builder,QueryInfo>
Information about one CloudWatch Logs Insights query that matches the request in a
DescribeQueriesoperation.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQueryInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryInfo.Builderbuilder()LongcreateTime()The date and time that this query was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlogGroupName()The name of the log group scanned by this query.StringqueryId()The unique ID number of this query.StringqueryString()The query string used in this query.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends QueryInfo.Builder>serializableBuilderClass()QueryStatusstatus()The status of this query.StringstatusAsString()The status of this query.QueryInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
queryId
public final String queryId()
The unique ID number of this query.
- Returns:
- The unique ID number of this query.
-
queryString
public final String queryString()
The query string used in this query.
- Returns:
- The query string used in this query.
-
status
public final QueryStatus status()
The status of this query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled, andUnknown.If the service returns an enum value that is not available in the current SDK version,
statuswill returnQueryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of this query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled, andUnknown. - See Also:
QueryStatus
-
statusAsString
public final String statusAsString()
The status of this query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled, andUnknown.If the service returns an enum value that is not available in the current SDK version,
statuswill returnQueryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of this query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled, andUnknown. - See Also:
QueryStatus
-
createTime
public final Long createTime()
The date and time that this query was created.
- Returns:
- The date and time that this query was created.
-
logGroupName
public final String logGroupName()
The name of the log group scanned by this query.
- Returns:
- The name of the log group scanned by this query.
-
toBuilder
public QueryInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryInfo.Builder,QueryInfo>
-
builder
public static QueryInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends QueryInfo.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-