Package com.io7m.brooklime.api
Class BLStagingProfileRepository.Builder
java.lang.Object
com.io7m.brooklime.api.BLStagingProfileRepository.Builder
- Enclosing class:
BLStagingProfileRepository
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBLStagingProfileRepository.from(BLStagingProfileRepositoryType instance) Fill a builder with attribute values from the providedBLStagingProfileRepositoryTypeinstance.setCreated(OffsetDateTime created) Initializes the value for thecreatedattribute.setDescription(String description) Initializes the value for thedescriptionattribute.setIpAddress(String ipAddress) Initializes the value for theipAddressattribute.setNotifications(String notifications) Initializes the value for thenotificationsattribute.Initializes the value for thepolicyattribute.setProfileId(String profileId) Initializes the value for theprofileIdattribute.setProfileName(String profileName) Initializes the value for theprofileNameattribute.setProfileType(String profileType) Initializes the value for theprofileTypeattribute.setProvider(String provider) Initializes the value for theproviderattribute.setReleaseRepositoryId(String releaseRepositoryId) Initializes the value for thereleaseRepositoryIdattribute.setReleaseRepositoryName(String releaseRepositoryName) Initializes the value for thereleaseRepositoryNameattribute.setRepositoryId(String repositoryId) Initializes the value for therepositoryIdattribute.setRepositoryURI(URI repositoryURI) Initializes the value for therepositoryURIattribute.setTransitioning(boolean transitioning) Initializes the value for thetransitioningattribute.Initializes the value for thetypeattribute.setUpdated(OffsetDateTime updated) Initializes the value for theupdatedattribute.setUserAgent(String userAgent) Initializes the value for theuserAgentattribute.Initializes the value for theuserIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedBLStagingProfileRepositoryTypeinstance. 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:
thisbuilder for use in a chained invocation
-
setProfileId
Initializes the value for theprofileIdattribute.- Parameters:
profileId- The value for profileId- Returns:
thisbuilder for use in a chained invocation
-
setProfileName
Initializes the value for theprofileNameattribute.- Parameters:
profileName- The value for profileName- Returns:
thisbuilder for use in a chained invocation
-
setProfileType
Initializes the value for theprofileTypeattribute.- Parameters:
profileType- The value for profileType- Returns:
thisbuilder for use in a chained invocation
-
setRepositoryId
Initializes the value for therepositoryIdattribute.- Parameters:
repositoryId- The value for repositoryId- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setPolicy
Initializes the value for thepolicyattribute.- Parameters:
policy- The value for policy- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setUserAgent
Initializes the value for theuserAgentattribute.- Parameters:
userAgent- The value for userAgent- Returns:
thisbuilder for use in a chained invocation
-
setIpAddress
Initializes the value for theipAddressattribute.- Parameters:
ipAddress- The value for ipAddress- Returns:
thisbuilder for use in a chained invocation
-
setRepositoryURI
Initializes the value for therepositoryURIattribute.- Parameters:
repositoryURI- The value for repositoryURI- Returns:
thisbuilder for use in a chained invocation
-
setCreated
Initializes the value for thecreatedattribute.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
setUpdated
Initializes the value for theupdatedattribute.- Parameters:
updated- The value for updated- Returns:
thisbuilder for use in a chained invocation
-
setDescription
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
setProvider
Initializes the value for theproviderattribute.- Parameters:
provider- The value for provider- Returns:
thisbuilder for use in a chained invocation
-
setReleaseRepositoryId
Initializes the value for thereleaseRepositoryIdattribute.- Parameters:
releaseRepositoryId- The value for releaseRepositoryId- Returns:
thisbuilder for use in a chained invocation
-
setReleaseRepositoryName
public final BLStagingProfileRepository.Builder setReleaseRepositoryName(String releaseRepositoryName) Initializes the value for thereleaseRepositoryNameattribute.- Parameters:
releaseRepositoryName- The value for releaseRepositoryName- Returns:
thisbuilder for use in a chained invocation
-
setNotifications
Initializes the value for thenotificationsattribute.- Parameters:
notifications- The value for notifications- Returns:
thisbuilder for use in a chained invocation
-
setTransitioning
Initializes the value for thetransitioningattribute.- Parameters:
transitioning- The value for transitioning- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBLStagingProfileRepository.- Returns:
- An immutable instance of BLStagingProfileRepository
- Throws:
IllegalStateException- if any required attributes are missing
-