Package com.google.cloud.logging
Class Exclusion.Builder
- java.lang.Object
-
- com.google.cloud.logging.Exclusion.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exclusion
build()
Creates aExclusion
object.Exclusion.Builder
setCreateTime(com.google.protobuf.Timestamp createTime)
[Output only] The creation timestamp of the exclusion.Exclusion.Builder
setDescription(String description)
[Optional] A description of this exclusion.Exclusion.Builder
setDisabled(boolean disabled)
[Optional] If set to True, then this exclusion is disabled and it does not exclude any log entries.Exclusion.Builder
setFilter(String filter)
[Required] An advanced logs filter that matches the log entries to be excluded.Exclusion.Builder
setName(String name)
[Required] A client-assigned identifier, such as "load-balancer-exclusion".Exclusion.Builder
setUpdateTime(com.google.protobuf.Timestamp updateTime)
[Output only] The last update timestamp of the exclusion.
-
-
-
Method Detail
-
setName
@CanIgnoreReturnValue 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.
-
setDescription
@CanIgnoreReturnValue public Exclusion.Builder setDescription(String description)
[Optional] A description of this exclusion.
-
setFilter
@CanIgnoreReturnValue 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.
-
setDisabled
@CanIgnoreReturnValue public Exclusion.Builder setDisabled(boolean disabled)
[Optional] If set to True, then this exclusion is disabled and it does not exclude any log entries.
-
setCreateTime
@CanIgnoreReturnValue public Exclusion.Builder setCreateTime(com.google.protobuf.Timestamp createTime)
[Output only] The creation timestamp of the exclusion.
-
setUpdateTime
@CanIgnoreReturnValue public Exclusion.Builder setUpdateTime(com.google.protobuf.Timestamp updateTime)
[Output only] The last update timestamp of the exclusion.
-
build
public Exclusion build()
Creates aExclusion
object.
-
-