Class BLStagingProfileRepository

java.lang.Object
com.io7m.brooklime.api.BLStagingProfileRepository
All Implemented Interfaces:
BLStagingProfileRepositoryType

public final class BLStagingProfileRepository extends Object implements BLStagingProfileRepositoryType
A description of a staging repository.
  • Method Details

    • profileId

      public String profileId()
      Specified by:
      profileId in interface BLStagingProfileRepositoryType
      Returns:
      The staging profile ID
    • profileName

      public String profileName()
      Specified by:
      profileName in interface BLStagingProfileRepositoryType
      Returns:
      The staging profile name
    • profileType

      public String profileType()
      Specified by:
      profileType in interface BLStagingProfileRepositoryType
      Returns:
      The staging profile type
    • repositoryId

      public String repositoryId()
      Specified by:
      repositoryId in interface BLStagingProfileRepositoryType
      Returns:
      The staging repository ID
    • type

      public String type()
      Specified by:
      type in interface BLStagingProfileRepositoryType
      Returns:
      The type (?)
    • policy

      public String policy()
      Specified by:
      policy in interface BLStagingProfileRepositoryType
      Returns:
      The staging profile policy
    • userId

      public String userId()
      Specified by:
      userId in interface BLStagingProfileRepositoryType
      Returns:
      The requesting user ID
    • userAgent

      public String userAgent()
      Specified by:
      userAgent in interface BLStagingProfileRepositoryType
      Returns:
      The requesting user agent
    • ipAddress

      public String ipAddress()
      Specified by:
      ipAddress in interface BLStagingProfileRepositoryType
      Returns:
      The requesting IP address
    • repositoryURI

      public URI repositoryURI()
      Specified by:
      repositoryURI in interface BLStagingProfileRepositoryType
      Returns:
      The repository URI
    • created

      public OffsetDateTime created()
      Specified by:
      created in interface BLStagingProfileRepositoryType
      Returns:
      The creation time of the repository
    • updated

      public OffsetDateTime updated()
      Specified by:
      updated in interface BLStagingProfileRepositoryType
      Returns:
      The modification time of the repository
    • description

      public String description()
      Specified by:
      description in interface BLStagingProfileRepositoryType
      Returns:
      The repository description
    • provider

      public String provider()
      Specified by:
      provider in interface BLStagingProfileRepositoryType
      Returns:
      The repository provider
    • releaseRepositoryId

      public String releaseRepositoryId()
      Specified by:
      releaseRepositoryId in interface BLStagingProfileRepositoryType
      Returns:
      The release repository ID
    • releaseRepositoryName

      public String releaseRepositoryName()
      Specified by:
      releaseRepositoryName in interface BLStagingProfileRepositoryType
      Returns:
      The release repository name
    • notifications

      public String notifications()
      Specified by:
      notifications in interface BLStagingProfileRepositoryType
      Returns:
      The notifications, if any
    • transitioning

      public boolean transitioning()
      Specified by:
      transitioning in interface BLStagingProfileRepositoryType
      Returns:
      true if the repository state is currently in transition
    • withProfileId

      public final BLStagingProfileRepository withProfileId(String value)
      Copy the current immutable object by setting a value for the profileId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for profileId
      Returns:
      A modified copy of the this object
    • withProfileName

      public final BLStagingProfileRepository withProfileName(String value)
      Copy the current immutable object by setting a value for the profileName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for profileName
      Returns:
      A modified copy of the this object
    • withProfileType

      public final BLStagingProfileRepository withProfileType(String value)
      Copy the current immutable object by setting a value for the profileType attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for profileType
      Returns:
      A modified copy of the this object
    • withRepositoryId

      public final BLStagingProfileRepository withRepositoryId(String value)
      Copy the current immutable object by setting a value for the repositoryId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for repositoryId
      Returns:
      A modified copy of the this object
    • withType

      public final BLStagingProfileRepository withType(String value)
      Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy of the this object
    • withPolicy

      public final BLStagingProfileRepository withPolicy(String value)
      Copy the current immutable object by setting a value for the policy attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for policy
      Returns:
      A modified copy of the this object
    • withUserId

      public final BLStagingProfileRepository withUserId(String value)
      Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userId
      Returns:
      A modified copy of the this object
    • withUserAgent

      public final BLStagingProfileRepository withUserAgent(String value)
      Copy the current immutable object by setting a value for the userAgent attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userAgent
      Returns:
      A modified copy of the this object
    • withIpAddress

      public final BLStagingProfileRepository withIpAddress(String value)
      Copy the current immutable object by setting a value for the ipAddress attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ipAddress
      Returns:
      A modified copy of the this object
    • withRepositoryURI

      public final BLStagingProfileRepository withRepositoryURI(URI value)
      Copy the current immutable object by setting a value for the repositoryURI attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for repositoryURI
      Returns:
      A modified copy of the this object
    • withCreated

      public final BLStagingProfileRepository withCreated(OffsetDateTime value)
      Copy the current immutable object by setting a value for the created attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for created
      Returns:
      A modified copy of the this object
    • withUpdated

      public final BLStagingProfileRepository withUpdated(OffsetDateTime value)
      Copy the current immutable object by setting a value for the updated attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for updated
      Returns:
      A modified copy of the this object
    • withDescription

      public final BLStagingProfileRepository withDescription(String value)
      Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for description
      Returns:
      A modified copy of the this object
    • withProvider

      public final BLStagingProfileRepository withProvider(String value)
      Copy the current immutable object by setting a value for the provider attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for provider
      Returns:
      A modified copy of the this object
    • withReleaseRepositoryId

      public final BLStagingProfileRepository withReleaseRepositoryId(String value)
      Copy the current immutable object by setting a value for the releaseRepositoryId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for releaseRepositoryId
      Returns:
      A modified copy of the this object
    • withReleaseRepositoryName

      public final BLStagingProfileRepository withReleaseRepositoryName(String value)
      Copy the current immutable object by setting a value for the releaseRepositoryName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for releaseRepositoryName
      Returns:
      A modified copy of the this object
    • withNotifications

      public final BLStagingProfileRepository withNotifications(String value)
      Copy the current immutable object by setting a value for the notifications attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for notifications
      Returns:
      A modified copy of the this object
    • withTransitioning

      public final BLStagingProfileRepository withTransitioning(boolean value)
      Copy the current immutable object by setting a value for the transitioning attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for transitioning
      Returns:
      A modified copy of the this object
    • equals

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

      public int hashCode()
      Computes a hash code from attributes: profileId, profileName, profileType, repositoryId, type, policy, userId, userAgent, ipAddress, repositoryURI, created, updated, description, provider, releaseRepositoryId, releaseRepositoryName, notifications, transitioning.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a BLStagingProfileRepositoryType 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 BLStagingProfileRepository instance
    • builder

      public static BLStagingProfileRepository.Builder builder()
      Creates a builder for BLStagingProfileRepository.
       BLStagingProfileRepository.builder()
          .setProfileId(String) // required profileId
          .setProfileName(String) // required profileName
          .setProfileType(String) // required profileType
          .setRepositoryId(String) // required repositoryId
          .setType(String) // required type
          .setPolicy(String) // required policy
          .setUserId(String) // required userId
          .setUserAgent(String) // required userAgent
          .setIpAddress(String) // required ipAddress
          .setRepositoryURI(java.net.URI) // required repositoryURI
          .setCreated(java.time.OffsetDateTime) // required created
          .setUpdated(java.time.OffsetDateTime) // required updated
          .setDescription(String) // required description
          .setProvider(String) // required provider
          .setReleaseRepositoryId(String) // required releaseRepositoryId
          .setReleaseRepositoryName(String) // required releaseRepositoryName
          .setNotifications(String) // required notifications
          .setTransitioning(boolean) // required transitioning
          .build();
       
      Returns:
      A new BLStagingProfileRepository builder