Class ImmutableGitFileReload.Builder

java.lang.Object
io.resys.hdes.client.spi.ImmutableGitFileReload.Builder
Enclosing class:
ImmutableGitFileReload

@NotThreadSafe
public static final class ImmutableGitFileReload.Builder
extends Object
Builds instances of type ImmutableGitFileReload. 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 ImmutableGitFileReload.Builder from​(GitConfig.GitFileReload instance)
      Fill a builder with attribute values from the provided GitFileReload 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
    • treeValue

      @CanIgnoreReturnValue public final ImmutableGitFileReload.Builder treeValue​(String treeValue)
      Initializes the value for the treeValue attribute.
      Parameters:
      treeValue - The value for treeValue
      Returns:
      this builder for use in a chained invocation
    • id

      @CanIgnoreReturnValue public final ImmutableGitFileReload.Builder id​(String id)
      Initializes the value for the id attribute.
      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • bodyType

      @CanIgnoreReturnValue public final ImmutableGitFileReload.Builder bodyType​(AstBody.AstBodyType bodyType)
      Initializes the value for the bodyType attribute.
      Parameters:
      bodyType - The value for bodyType
      Returns:
      this builder for use in a chained invocation
    • file

      @CanIgnoreReturnValue public final ImmutableGitFileReload.Builder file​(GitConfig.GitFile file)
      Initializes the optional value file to file.
      Parameters:
      file - The value for file
      Returns:
      this builder for chained invocation
    • file

      @CanIgnoreReturnValue public final ImmutableGitFileReload.Builder file​(Optional<? extends GitConfig.GitFile> file)
      Initializes the optional value file to file.
      Parameters:
      file - The value for file
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableGitFileReload build()
      Returns:
      An immutable instance of GitFileReload
      Throws:
      IllegalStateException - if any required attributes are missing