Class Exclusion.Builder (3.20.2)

public static class Exclusion.Builder

A builder for Exclusion objects.

Inheritance

java.lang.Object > Exclusion.Builder

Methods

build()

public Exclusion build()

Creates a Exclusion object.

Returns
Type Description
Exclusion

setCreateTime(Timestamp createTime)

public Exclusion.Builder setCreateTime(Timestamp createTime)

[Output only] The creation timestamp of the exclusion.

Parameter
Name Description
createTime Timestamp
Returns
Type Description
Exclusion.Builder

setDescription(String description)

public Exclusion.Builder setDescription(String description)

[Optional] A description of this exclusion.

Parameter
Name Description
description String
Returns
Type Description
Exclusion.Builder

setDisabled(boolean disabled)

public Exclusion.Builder setDisabled(boolean disabled)

[Optional] If set to True, then this exclusion is disabled and it does not exclude any log entries.

Parameter
Name Description
disabled boolean
Returns
Type Description
Exclusion.Builder

setFilter(String filter)

public Exclusion.Builder setFilter(String filter)

[Required] An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries.

Parameter
Name Description
filter String
Returns
Type Description
Exclusion.Builder

setName(String name)

public Exclusion.Builder setName(String name)

[Required] A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.

Parameter
Name Description
name String
Returns
Type Description
Exclusion.Builder

setUpdateTime(Timestamp updateTime)

public Exclusion.Builder setUpdateTime(Timestamp updateTime)

[Output only] The last update timestamp of the exclusion.

Parameter
Name Description
updateTime Timestamp
Returns
Type Description
Exclusion.Builder