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 java.lang.Object implements BLStagingRepositoryCreateType
A request to create a staging repository.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBLStagingRepositoryCreate.BuilderBuilds instances of typeBLStagingRepositoryCreate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BLStagingRepositoryCreate.Builderbuilder()Creates a builder forBLStagingRepositoryCreate.static BLStagingRepositoryCreatecopyOf(BLStagingRepositoryCreateType instance)Creates an immutable copy of aBLStagingRepositoryCreateTypevalue.java.lang.Stringdescription()booleanequals(java.lang.Object another)This instance is equal to all instances ofBLStagingRepositoryCreatethat have equal attribute values.inthashCode()Computes a hash code from attributes:stagingRepositories,description.java.util.List<java.lang.String>stagingRepositories()java.lang.StringtoString()Prints the immutable valueBLStagingRepositoryCreatewith attribute values.BLStagingRepositoryCreatewithDescription(java.lang.String value)Copy the current immutable object by setting a value for thedescriptionattribute.BLStagingRepositoryCreatewithStagingRepositories(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofstagingRepositories.BLStagingRepositoryCreatewithStagingRepositories(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofstagingRepositories.
-
-
-
Method Detail
-
stagingRepositories
public java.util.List<java.lang.String> stagingRepositories()
- Specified by:
stagingRepositoriesin interfaceBLStagingRepositoryBulkRequestType- Returns:
- The staging repositories
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceBLStagingRepositoryCreateType- Returns:
- The description of the staging repository
-
withStagingRepositories
public final BLStagingRepositoryCreate withStagingRepositories(java.lang.String... elements)
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
public final BLStagingRepositoryCreate withStagingRepositories(java.lang.Iterable<java.lang.String> elements)
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
public final BLStagingRepositoryCreate withDescription(java.lang.String value)
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
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofBLStagingRepositoryCreatethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:stagingRepositories,description.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueBLStagingRepositoryCreatewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static BLStagingRepositoryCreate copyOf(BLStagingRepositoryCreateType instance)
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
public static BLStagingRepositoryCreate.Builder builder()
Creates a builder forBLStagingRepositoryCreate.BLStagingRepositoryCreate.builder() .addStagingRepositories|addAllStagingRepositories(String) //stagingRepositorieselements .setDescription(String) // requireddescription.build();- Returns:
- A new BLStagingRepositoryCreate builder
-
-