Class Exclusion.Builder (3.14.6)

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
TypeDescription
Exclusion

setCreateTime(Timestamp createTime)

public Exclusion.Builder setCreateTime(Timestamp createTime)

[Output only] The creation timestamp of the exclusion.

Parameter
NameDescription
createTimeTimestamp
Returns
TypeDescription
Exclusion.Builder

setDescription(String description)

public Exclusion.Builder setDescription(String description)

[Optional] A description of this exclusion.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
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
NameDescription
disabledboolean
Returns
TypeDescription
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
NameDescription
filterString
Returns
TypeDescription
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
NameDescription
nameString
Returns
TypeDescription
Exclusion.Builder

setUpdateTime(Timestamp updateTime)

public Exclusion.Builder setUpdateTime(Timestamp updateTime)

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

Parameter
NameDescription
updateTimeTimestamp
Returns
TypeDescription
Exclusion.Builder