Package com.io7m.brooklime.api
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBLStagingProfileRepository. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forBLStagingProfileRepository.static BLStagingProfileRepositorycopyOf(BLStagingProfileRepositoryType instance) Creates an immutable copy of aBLStagingProfileRepositoryTypevalue.created()booleanThis instance is equal to all instances ofBLStagingProfileRepositorythat have equal attribute values.inthashCode()Computes a hash code from attributes:profileId,profileName,profileType,repositoryId,type,policy,userId,userAgent,ipAddress,repositoryURI,created,updated,description,provider,releaseRepositoryId,releaseRepositoryName,notifications,transitioning.policy()provider()toString()Prints the immutable valueBLStagingProfileRepositorywith attribute values.booleantype()updated()userId()withCreated(OffsetDateTime value) Copy the current immutable object by setting a value for thecreatedattribute.withDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.withIpAddress(String value) Copy the current immutable object by setting a value for theipAddressattribute.withNotifications(String value) Copy the current immutable object by setting a value for thenotificationsattribute.withPolicy(String value) Copy the current immutable object by setting a value for thepolicyattribute.withProfileId(String value) Copy the current immutable object by setting a value for theprofileIdattribute.withProfileName(String value) Copy the current immutable object by setting a value for theprofileNameattribute.withProfileType(String value) Copy the current immutable object by setting a value for theprofileTypeattribute.withProvider(String value) Copy the current immutable object by setting a value for theproviderattribute.withReleaseRepositoryId(String value) Copy the current immutable object by setting a value for thereleaseRepositoryIdattribute.withReleaseRepositoryName(String value) Copy the current immutable object by setting a value for thereleaseRepositoryNameattribute.withRepositoryId(String value) Copy the current immutable object by setting a value for therepositoryIdattribute.withRepositoryURI(URI value) Copy the current immutable object by setting a value for therepositoryURIattribute.withTransitioning(boolean value) Copy the current immutable object by setting a value for thetransitioningattribute.Copy the current immutable object by setting a value for thetypeattribute.withUpdated(OffsetDateTime value) Copy the current immutable object by setting a value for theupdatedattribute.withUserAgent(String value) Copy the current immutable object by setting a value for theuserAgentattribute.withUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
profileId
- Specified by:
profileIdin interfaceBLStagingProfileRepositoryType- Returns:
- The staging profile ID
-
profileName
- Specified by:
profileNamein interfaceBLStagingProfileRepositoryType- Returns:
- The staging profile name
-
profileType
- Specified by:
profileTypein interfaceBLStagingProfileRepositoryType- Returns:
- The staging profile type
-
repositoryId
- Specified by:
repositoryIdin interfaceBLStagingProfileRepositoryType- Returns:
- The staging repository ID
-
type
- Specified by:
typein interfaceBLStagingProfileRepositoryType- Returns:
- The type (?)
-
policy
- Specified by:
policyin interfaceBLStagingProfileRepositoryType- Returns:
- The staging profile policy
-
userId
- Specified by:
userIdin interfaceBLStagingProfileRepositoryType- Returns:
- The requesting user ID
-
userAgent
- Specified by:
userAgentin interfaceBLStagingProfileRepositoryType- Returns:
- The requesting user agent
-
ipAddress
- Specified by:
ipAddressin interfaceBLStagingProfileRepositoryType- Returns:
- The requesting IP address
-
repositoryURI
- Specified by:
repositoryURIin interfaceBLStagingProfileRepositoryType- Returns:
- The repository URI
-
created
- Specified by:
createdin interfaceBLStagingProfileRepositoryType- Returns:
- The creation time of the repository
-
updated
- Specified by:
updatedin interfaceBLStagingProfileRepositoryType- Returns:
- The modification time of the repository
-
description
- Specified by:
descriptionin interfaceBLStagingProfileRepositoryType- Returns:
- The repository description
-
provider
- Specified by:
providerin interfaceBLStagingProfileRepositoryType- Returns:
- The repository provider
-
releaseRepositoryId
- Specified by:
releaseRepositoryIdin interfaceBLStagingProfileRepositoryType- Returns:
- The release repository ID
-
releaseRepositoryName
- Specified by:
releaseRepositoryNamein interfaceBLStagingProfileRepositoryType- Returns:
- The release repository name
-
notifications
- Specified by:
notificationsin interfaceBLStagingProfileRepositoryType- Returns:
- The notifications, if any
-
transitioning
public boolean transitioning()- Specified by:
transitioningin interfaceBLStagingProfileRepositoryType- Returns:
trueif the repository state is currently in transition
-
withProfileId
Copy the current immutable object by setting a value for theprofileIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for profileId- Returns:
- A modified copy of the
thisobject
-
withProfileName
Copy the current immutable object by setting a value for theprofileNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for profileName- Returns:
- A modified copy of the
thisobject
-
withProfileType
Copy the current immutable object by setting a value for theprofileTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for profileType- Returns:
- A modified copy of the
thisobject
-
withRepositoryId
Copy the current immutable object by setting a value for therepositoryIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repositoryId- Returns:
- A modified copy of the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withPolicy
Copy the current immutable object by setting a value for thepolicyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for policy- Returns:
- A modified copy of the
thisobject
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy of the
thisobject
-
withUserAgent
Copy the current immutable object by setting a value for theuserAgentattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userAgent- Returns:
- A modified copy of the
thisobject
-
withIpAddress
Copy the current immutable object by setting a value for theipAddressattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ipAddress- Returns:
- A modified copy of the
thisobject
-
withRepositoryURI
Copy the current immutable object by setting a value for therepositoryURIattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repositoryURI- Returns:
- A modified copy of the
thisobject
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy of the
thisobject
-
withUpdated
Copy the current immutable object by setting a value for theupdatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updated- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description- Returns:
- A modified copy of the
thisobject
-
withProvider
Copy the current immutable object by setting a value for theproviderattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for provider- Returns:
- A modified copy of the
thisobject
-
withReleaseRepositoryId
Copy the current immutable object by setting a value for thereleaseRepositoryIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for releaseRepositoryId- Returns:
- A modified copy of the
thisobject
-
withReleaseRepositoryName
Copy the current immutable object by setting a value for thereleaseRepositoryNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for releaseRepositoryName- Returns:
- A modified copy of the
thisobject
-
withNotifications
Copy the current immutable object by setting a value for thenotificationsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for notifications- Returns:
- A modified copy of the
thisobject
-
withTransitioning
Copy the current immutable object by setting a value for thetransitioningattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for transitioning- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofBLStagingProfileRepositorythat have equal attribute values. -
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. -
toString
Prints the immutable valueBLStagingProfileRepositorywith attribute values. -
copyOf
Creates an immutable copy of aBLStagingProfileRepositoryTypevalue. 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
Creates a builder forBLStagingProfileRepository.BLStagingProfileRepository.builder() .setProfileId(String) // requiredprofileId.setProfileName(String) // requiredprofileName.setProfileType(String) // requiredprofileType.setRepositoryId(String) // requiredrepositoryId.setType(String) // requiredtype.setPolicy(String) // requiredpolicy.setUserId(String) // requireduserId.setUserAgent(String) // requireduserAgent.setIpAddress(String) // requiredipAddress.setRepositoryURI(java.net.URI) // requiredrepositoryURI.setCreated(java.time.OffsetDateTime) // requiredcreated.setUpdated(java.time.OffsetDateTime) // requiredupdated.setDescription(String) // requireddescription.setProvider(String) // requiredprovider.setReleaseRepositoryId(String) // requiredreleaseRepositoryId.setReleaseRepositoryName(String) // requiredreleaseRepositoryName.setNotifications(String) // requirednotifications.setTransitioning(boolean) // requiredtransitioning.build();- Returns:
- A new BLStagingProfileRepository builder
-