Record Class QueryInfo
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.QueryInfo
- Record Components:
queryId- query idqueryString- query textstatus- statuscreateTime- creation timelogGroupName- log group
public record QueryInfo(String queryId, String queryString, QueryStatus status, Optional<Instant> createTime, Optional<String> logGroupName)
extends Record
One Logs Insights query (
describeQueries).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreateTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogGroupNamerecord component.queryId()Returns the value of thequeryIdrecord component.Returns the value of thequeryStringrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryInfo
public QueryInfo(String queryId, String queryString, QueryStatus status, Optional<Instant> createTime, Optional<String> logGroupName) Normalises absent values (null lists become empty, null optionals empty).- Parameters:
queryId- query idqueryString- query textstatus- statuscreateTime- creation timelogGroupName- log group
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
queryId
Returns the value of thequeryIdrecord component.- Returns:
- the value of the
queryIdrecord component
-
queryString
Returns the value of thequeryStringrecord component.- Returns:
- the value of the
queryStringrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
createTime
Returns the value of thecreateTimerecord component.- Returns:
- the value of the
createTimerecord component
-
logGroupName
Returns the value of thelogGroupNamerecord component.- Returns:
- the value of the
logGroupNamerecord component
-