Class ImmutableTagDiff.Builder

java.lang.Object
io.resys.hdes.client.api.diff.ImmutableTagDiff.Builder
Enclosing class:
ImmutableTagDiff

@NotThreadSafe public static final class ImmutableTagDiff.Builder extends Object
Builds instances of type ImmutableTagDiff. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder from(TagDiff instance)
      Fill a builder with attribute values from the provided TagDiff instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • baseName

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder baseName(String baseName)
      Initializes the value for the baseName attribute.
      Parameters:
      baseName - The value for baseName
      Returns:
      this builder for use in a chained invocation
    • targetName

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder targetName(String targetName)
      Initializes the value for the targetName attribute.
      Parameters:
      targetName - The value for targetName
      Returns:
      this builder for use in a chained invocation
    • baseId

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder baseId(String baseId)
      Initializes the value for the baseId attribute.
      Parameters:
      baseId - The value for baseId
      Returns:
      this builder for use in a chained invocation
    • targetId

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder targetId(String targetId)
      Initializes the value for the targetId attribute.
      Parameters:
      targetId - The value for targetId
      Returns:
      this builder for use in a chained invocation
    • created

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder created(LocalDateTime created)
      Initializes the value for the created attribute.
      Parameters:
      created - The value for created
      Returns:
      this builder for use in a chained invocation
    • body

      @CanIgnoreReturnValue public final ImmutableTagDiff.Builder body(String body)
      Initializes the value for the body attribute.
      Parameters:
      body - The value for body
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableTagDiff build()
      Builds a new ImmutableTagDiff.
      Returns:
      An immutable instance of TagDiff
      Throws:
      IllegalStateException - if any required attributes are missing