Class LogQuery.Builder (2.0.0)

public static final class LogQuery.Builder

Contains static creation methods for LogQuery.

Inheritance

java.lang.Object > LogQuery.Builder

Static Methods

withBatchSize(int batchSize)

public static LogQuery withBatchSize(int batchSize)

Create a LogQuery with the given batch size. Shorthand for LogQuery.Builder.withDefaults().batchSize(batchSize);. Please read the LogQuery class javadoc for an explanation of how batch size is used.

Parameter
Name Description
batchSize int

the batch size to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withDefaults()

public static LogQuery withDefaults()

Helper method for creating a LogQuery instance with default values. Please read the LogQuery class javadoc for an explanation of the defaults.

Returns
Type Description
LogQuery

withEndTimeMillis(long endTimeMillis)

public static LogQuery withEndTimeMillis(long endTimeMillis)

Create a LogQuery with the given end time. Shorthand for LogQuery.Builder.withDefaults().endTimeMillis(endTimeMillis);. Please read the LogQuery class javadoc for an explanation of how end time is used.

Parameter
Name Description
endTimeMillis long

the end time to use, in milliseconds.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withEndTimeUsec(long endTimeUsec)

public static LogQuery withEndTimeUsec(long endTimeUsec)

Create a LogQuery with the given end time. Shorthand for LogQuery.Builder.withDefaults().endTimeUsec(endTimeUsec);. Please read the LogQuery class javadoc for an explanation of how end time is used.

Parameter
Name Description
endTimeUsec long

the start time to use, in microseconds.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withIncludeAppLogs(boolean includeAppLogs)

public static LogQuery withIncludeAppLogs(boolean includeAppLogs)

Create a LogQuery with include application logs set. Shorthand for LogQuery.Builder.withDefaults().includeAppLogs(includeAppLogs);. Please read the LogQuery class javadoc for an explanation of the include application logs setting.

Parameter
Name Description
includeAppLogs boolean

the inclusion value to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withIncludeIncomplete(boolean includeIncomplete)

public static LogQuery withIncludeIncomplete(boolean includeIncomplete)

Create a LogQuery with the given include incomplete setting. Shorthand for LogQuery.Builder.withDefaults().includeIncomplete(includeIncomplete);. Please read the LogQuery class javadoc for an explanation of how include incomplete is used.

Parameter
Name Description
includeIncomplete boolean

the inclusion value to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withMajorVersionIds(List<String> versionIds)

public static LogQuery withMajorVersionIds(List<String> versionIds)

Create a LogQuery with the given major version IDs. Shorthand for LogQuery.Builder.withDefaults().majorVersionIds(versionIds);. Please read the LogQuery class javadoc for an explanation of how the list of major version ids is used.

Parameter
Name Description
versionIds List<String>

the major version id list to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withMinLogLevel(LogService.LogLevel minLogLevel)

public static LogQuery withMinLogLevel(LogService.LogLevel minLogLevel)

Create a LogQuery with the given minimum log level. Shorthand for LogQuery.Builder.withDefaults().minLogLevel(minLogLevel);. Please read the LogQuery class javadoc for an explanation of how minimum log level is used.

Parameter
Name Description
minLogLevel LogService.LogLevel

the minimum log level to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withOffset(String offset)

public static LogQuery withOffset(String offset)

Create a LogQuery with the given offset. Shorthand for LogQuery.Builder.withDefaults().offset(offset);. Please read the LogQuery class javadoc for an explanation of how offsets are used.

Parameter
Name Description
offset String

the offset to use.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withRequestIds(List<String> requestIds)

public static LogQuery withRequestIds(List<String> requestIds)

Create a LogQuery with the given request IDs. Shorthand for LogQuery.Builder.withDefaults().requestIds(requestIds);. See the LogQuery class javadoc for an explanation of how the list of request ids is used.

Parameter
Name Description
requestIds List<String>

the request id list to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withStartTimeMillis(long startTimeMillis)

public static LogQuery withStartTimeMillis(long startTimeMillis)

Create a LogQuery with the given start time. Shorthand for LogQuery.Builder.withDefaults().startTimeMillis(startTimeMillis);. Please read the LogQuery class javadoc for an explanation of how start time is used.

Parameter
Name Description
startTimeMillis long

the start time to use, in milliseconds.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withStartTimeUsec(long startTimeUsec)

public static LogQuery withStartTimeUsec(long startTimeUsec)

Create a LogQuery with the given start time. Shorthand for LogQuery.Builder.withDefaults().startTimeUsec(startTimeUsec);. Please read the LogQuery class javadoc for an explanation of how start time is used.

Parameter
Name Description
startTimeUsec long

the start time to use, in microseconds.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

withVersions(List<LogQuery.Version> versions)

public static LogQuery withVersions(List<LogQuery.Version> versions)

Create a LogQuery with the given Version values. Shorthand for LogQuery.Builder.withDefaults().versions(versions);. Please read the LogQuery class javadoc for usage information.

Parameter
Name Description
versions List<Version>

the list to set.

Returns
Type Description
LogQuery

The newly created LogQuery instance.

Constructors

Builder()

public Builder()