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