Class BLStagingRepositoryRelease

java.lang.Object
com.io7m.brooklime.api.BLStagingRepositoryRelease
All Implemented Interfaces:
BLStagingRepositoryBulkRequestType, BLStagingRepositoryReleaseType

public final class BLStagingRepositoryRelease
extends java.lang.Object
implements BLStagingRepositoryReleaseType
A request to release a set of staging repositories.
  • Method Details

    • stagingRepositories

      public java.util.List<java.lang.String> stagingRepositories()
      Specified by:
      stagingRepositories in interface BLStagingRepositoryBulkRequestType
      Specified by:
      stagingRepositories in interface BLStagingRepositoryReleaseType
      Returns:
      The value of the stagingRepositories attribute
    • withStagingRepositories

      public final BLStagingRepositoryRelease withStagingRepositories​(java.lang.String... elements)
      Copy the current immutable object with elements that replace the content of stagingRepositories.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withStagingRepositories

      public final BLStagingRepositoryRelease withStagingRepositories​(java.lang.Iterable<java.lang.String> elements)
      Copy the current immutable object with elements that replace the content of stagingRepositories. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of stagingRepositories elements to set
      Returns:
      A modified copy of this object
    • equals

      public boolean equals​(java.lang.Object another)
      This instance is equal to all instances of BLStagingRepositoryRelease that have equal attribute values.
      Overrides:
      equals in class java.lang.Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: stagingRepositories.
      Overrides:
      hashCode in class java.lang.Object
      Returns:
      hashCode value
    • toString

      public java.lang.String toString()
      Prints the immutable value BLStagingRepositoryRelease with attribute values.
      Overrides:
      toString in class java.lang.Object
      Returns:
      A string representation of the value
    • copyOf

      public static BLStagingRepositoryRelease copyOf​(BLStagingRepositoryReleaseType instance)
      Creates an immutable copy of a BLStagingRepositoryReleaseType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable BLStagingRepositoryRelease instance
    • builder

      public static BLStagingRepositoryRelease.Builder builder()
      Creates a builder for BLStagingRepositoryRelease.
       BLStagingRepositoryRelease.builder()
          .addStagingRepositories|addAllStagingRepositories(String) // stagingRepositories elements
          .build();
       
      Returns:
      A new BLStagingRepositoryRelease builder