Package com.io7m.brooklime.api
Class BLStagingRepositoryCreate
java.lang.Object
com.io7m.brooklime.api.BLStagingRepositoryCreate
- All Implemented Interfaces:
BLStagingRepositoryBulkRequestType,BLStagingRepositoryCreateType
public final class BLStagingRepositoryCreate
extends Object
implements BLStagingRepositoryCreateType
A request to create a staging repository.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBLStagingRepositoryCreate. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forBLStagingRepositoryCreate.static BLStagingRepositoryCreatecopyOf(BLStagingRepositoryCreateType instance) Creates an immutable copy of aBLStagingRepositoryCreateTypevalue.booleanThis instance is equal to all instances ofBLStagingRepositoryCreatethat have equal attribute values.inthashCode()Computes a hash code from attributes:stagingRepositories,description.toString()Prints the immutable valueBLStagingRepositoryCreatewith attribute values.withDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.withStagingRepositories(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofstagingRepositories.withStagingRepositories(String... elements) Copy the current immutable object with elements that replace the content ofstagingRepositories.
-
Method Details
-
stagingRepositories
- Specified by:
stagingRepositoriesin interfaceBLStagingRepositoryBulkRequestType- Returns:
- The staging repositories
-
description
- Specified by:
descriptionin interfaceBLStagingRepositoryCreateType- Returns:
- The description of the staging repository
-
withStagingRepositories
Copy the current immutable object with elements that replace the content ofstagingRepositories.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withStagingRepositories
Copy the current immutable object with elements that replace the content ofstagingRepositories. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of stagingRepositories elements to set- Returns:
- A modified copy of
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
-
equals
This instance is equal to all instances ofBLStagingRepositoryCreatethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:stagingRepositories,description. -
toString
Prints the immutable valueBLStagingRepositoryCreatewith attribute values. -
copyOf
Creates an immutable copy of aBLStagingRepositoryCreateTypevalue. 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 BLStagingRepositoryCreate instance
-
builder
Creates a builder forBLStagingRepositoryCreate.BLStagingRepositoryCreate.builder() .addStagingRepositories|addAllStagingRepositories(String) //stagingRepositorieselements .setDescription(String) // requireddescription.build();- Returns:
- A new BLStagingRepositoryCreate builder
-