Class BLStagingProfileRepository.Builder

java.lang.Object
com.io7m.brooklime.api.BLStagingProfileRepository.Builder
Enclosing class:
BLStagingProfileRepository

public static final class BLStagingProfileRepository.Builder extends Object
Builds instances of type BLStagingProfileRepository. 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

      Fill a builder with attribute values from the provided BLStagingProfileRepositoryType 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
    • setProfileId

      public final BLStagingProfileRepository.Builder setProfileId(String profileId)
      Initializes the value for the profileId attribute.
      Parameters:
      profileId - The value for profileId
      Returns:
      this builder for use in a chained invocation
    • setProfileName

      public final BLStagingProfileRepository.Builder setProfileName(String profileName)
      Initializes the value for the profileName attribute.
      Parameters:
      profileName - The value for profileName
      Returns:
      this builder for use in a chained invocation
    • setProfileType

      public final BLStagingProfileRepository.Builder setProfileType(String profileType)
      Initializes the value for the profileType attribute.
      Parameters:
      profileType - The value for profileType
      Returns:
      this builder for use in a chained invocation
    • setRepositoryId

      public final BLStagingProfileRepository.Builder setRepositoryId(String repositoryId)
      Initializes the value for the repositoryId attribute.
      Parameters:
      repositoryId - The value for repositoryId
      Returns:
      this builder for use in a chained invocation
    • setType

      public final BLStagingProfileRepository.Builder setType(String type)
      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setPolicy

      public final BLStagingProfileRepository.Builder setPolicy(String policy)
      Initializes the value for the policy attribute.
      Parameters:
      policy - The value for policy
      Returns:
      this builder for use in a chained invocation
    • setUserId

      public final BLStagingProfileRepository.Builder setUserId(String userId)
      Initializes the value for the userId attribute.
      Parameters:
      userId - The value for userId
      Returns:
      this builder for use in a chained invocation
    • setUserAgent

      public final BLStagingProfileRepository.Builder setUserAgent(String userAgent)
      Initializes the value for the userAgent attribute.
      Parameters:
      userAgent - The value for userAgent
      Returns:
      this builder for use in a chained invocation
    • setIpAddress

      public final BLStagingProfileRepository.Builder setIpAddress(String ipAddress)
      Initializes the value for the ipAddress attribute.
      Parameters:
      ipAddress - The value for ipAddress
      Returns:
      this builder for use in a chained invocation
    • setRepositoryURI

      public final BLStagingProfileRepository.Builder setRepositoryURI(URI repositoryURI)
      Initializes the value for the repositoryURI attribute.
      Parameters:
      repositoryURI - The value for repositoryURI
      Returns:
      this builder for use in a chained invocation
    • setCreated

      public final BLStagingProfileRepository.Builder setCreated(OffsetDateTime created)
      Initializes the value for the created attribute.
      Parameters:
      created - The value for created
      Returns:
      this builder for use in a chained invocation
    • setUpdated

      public final BLStagingProfileRepository.Builder setUpdated(OffsetDateTime updated)
      Initializes the value for the updated attribute.
      Parameters:
      updated - The value for updated
      Returns:
      this builder for use in a chained invocation
    • setDescription

      public final BLStagingProfileRepository.Builder setDescription(String description)
      Initializes the value for the description attribute.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • setProvider

      public final BLStagingProfileRepository.Builder setProvider(String provider)
      Initializes the value for the provider attribute.
      Parameters:
      provider - The value for provider
      Returns:
      this builder for use in a chained invocation
    • setReleaseRepositoryId

      public final BLStagingProfileRepository.Builder setReleaseRepositoryId(String releaseRepositoryId)
      Initializes the value for the releaseRepositoryId attribute.
      Parameters:
      releaseRepositoryId - The value for releaseRepositoryId
      Returns:
      this builder for use in a chained invocation
    • setReleaseRepositoryName

      public final BLStagingProfileRepository.Builder setReleaseRepositoryName(String releaseRepositoryName)
      Initializes the value for the releaseRepositoryName attribute.
      Parameters:
      releaseRepositoryName - The value for releaseRepositoryName
      Returns:
      this builder for use in a chained invocation
    • setNotifications

      public final BLStagingProfileRepository.Builder setNotifications(String notifications)
      Initializes the value for the notifications attribute.
      Parameters:
      notifications - The value for notifications
      Returns:
      this builder for use in a chained invocation
    • setTransitioning

      public final BLStagingProfileRepository.Builder setTransitioning(boolean transitioning)
      Initializes the value for the transitioning attribute.
      Parameters:
      transitioning - The value for transitioning
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of BLStagingProfileRepository
      Throws:
      IllegalStateException - if any required attributes are missing