Class Exclusion.Builder

java.lang.Object
com.google.cloud.logging.Exclusion.Builder
Enclosing class:
Exclusion

public static class Exclusion.Builder extends Object
A builder for Exclusion objects.
  • Method Details

    • 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 a Exclusion object.