Package io.thestencil.client.api
Class ImmutableStencilConfig
- java.lang.Object
-
- io.thestencil.client.api.ImmutableStencilConfig
-
- All Implemented Interfaces:
StencilConfig
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableStencilConfig extends Object implements StencilConfig
Immutable implementation ofStencilConfig.Use the builder to create immutable instances:
ImmutableStencilConfig.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableStencilConfig.BuilderBuilds instances of typeImmutableStencilConfig.-
Nested classes/interfaces inherited from interface io.thestencil.client.api.StencilConfig
StencilConfig.AuthorProvider, StencilConfig.Commands, StencilConfig.Deserializer, StencilConfig.EntityState<T extends StencilClient.EntityBody>, StencilConfig.GidProvider, StencilConfig.Serializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableStencilConfig.Builderbuilder()Creates a builder forImmutableStencilConfig.static ImmutableStencilConfigcopyOf(StencilConfig instance)Creates an immutable copy of aStencilConfigvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableStencilConfigthat have equal attribute values.StencilConfig.AuthorProvidergetAuthorProvider()io.resys.thena.docdb.api.DocDBgetClient()StencilConfig.DeserializergetDeserializer()StencilConfig.GidProvidergetGidProvider()StringgetHeadName()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()StringgetRepoName()StencilConfig.SerializergetSerializer()inthashCode()Computes a hash code from attributes:client,repoName,headName,authorProvider,objectMapper,serializer,deserializer,gidProvider.StringtoString()Prints the immutable valueStencilConfigwith attribute values.ImmutableStencilConfigwithAuthorProvider(StencilConfig.AuthorProvider value)Copy the current immutable object by setting a value for theauthorProviderattribute.ImmutableStencilConfigwithClient(io.resys.thena.docdb.api.DocDB value)Copy the current immutable object by setting a value for theclientattribute.ImmutableStencilConfigwithDeserializer(StencilConfig.Deserializer value)Copy the current immutable object by setting a value for thedeserializerattribute.ImmutableStencilConfigwithGidProvider(StencilConfig.GidProvider value)Copy the current immutable object by setting a value for thegidProviderattribute.ImmutableStencilConfigwithHeadName(String value)Copy the current immutable object by setting a value for theheadNameattribute.ImmutableStencilConfigwithObjectMapper(com.fasterxml.jackson.databind.ObjectMapper value)Copy the current immutable object by setting a value for theobjectMapperattribute.ImmutableStencilConfigwithRepoName(String value)Copy the current immutable object by setting a value for therepoNameattribute.ImmutableStencilConfigwithSerializer(StencilConfig.Serializer value)Copy the current immutable object by setting a value for theserializerattribute.
-
-
-
Method Detail
-
getClient
public io.resys.thena.docdb.api.DocDB getClient()
- Specified by:
getClientin interfaceStencilConfig- Returns:
- The value of the
clientattribute
-
getRepoName
public String getRepoName()
- Specified by:
getRepoNamein interfaceStencilConfig- Returns:
- The value of the
repoNameattribute
-
getHeadName
public String getHeadName()
- Specified by:
getHeadNamein interfaceStencilConfig- Returns:
- The value of the
headNameattribute
-
getAuthorProvider
public StencilConfig.AuthorProvider getAuthorProvider()
- Specified by:
getAuthorProviderin interfaceStencilConfig- Returns:
- The value of the
authorProviderattribute
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
- Specified by:
getObjectMapperin interfaceStencilConfig- Returns:
- The value of the
objectMapperattribute
-
getSerializer
public StencilConfig.Serializer getSerializer()
- Specified by:
getSerializerin interfaceStencilConfig- Returns:
- The value of the
serializerattribute
-
getDeserializer
public StencilConfig.Deserializer getDeserializer()
- Specified by:
getDeserializerin interfaceStencilConfig- Returns:
- The value of the
deserializerattribute
-
getGidProvider
public StencilConfig.GidProvider getGidProvider()
- Specified by:
getGidProviderin interfaceStencilConfig- Returns:
- The value of the
gidProviderattribute
-
withClient
public final ImmutableStencilConfig withClient(io.resys.thena.docdb.api.DocDB value)
Copy the current immutable object by setting a value for theclientattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for client- Returns:
- A modified copy of the
thisobject
-
withRepoName
public final ImmutableStencilConfig withRepoName(String value)
Copy the current immutable object by setting a value for therepoNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repoName- Returns:
- A modified copy of the
thisobject
-
withHeadName
public final ImmutableStencilConfig withHeadName(String value)
Copy the current immutable object by setting a value for theheadNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for headName- Returns:
- A modified copy of the
thisobject
-
withAuthorProvider
public final ImmutableStencilConfig withAuthorProvider(StencilConfig.AuthorProvider value)
Copy the current immutable object by setting a value for theauthorProviderattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authorProvider- Returns:
- A modified copy of the
thisobject
-
withObjectMapper
public final ImmutableStencilConfig withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper value)
Copy the current immutable object by setting a value for theobjectMapperattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for objectMapper- Returns:
- A modified copy of the
thisobject
-
withSerializer
public final ImmutableStencilConfig withSerializer(StencilConfig.Serializer value)
Copy the current immutable object by setting a value for theserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serializer- Returns:
- A modified copy of the
thisobject
-
withDeserializer
public final ImmutableStencilConfig withDeserializer(StencilConfig.Deserializer value)
Copy the current immutable object by setting a value for thedeserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deserializer- Returns:
- A modified copy of the
thisobject
-
withGidProvider
public final ImmutableStencilConfig withGidProvider(StencilConfig.GidProvider value)
Copy the current immutable object by setting a value for thegidProviderattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gidProvider- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableStencilConfigthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:client,repoName,headName,authorProvider,objectMapper,serializer,deserializer,gidProvider.
-
toString
public String toString()
Prints the immutable valueStencilConfigwith attribute values.
-
copyOf
public static ImmutableStencilConfig copyOf(StencilConfig instance)
Creates an immutable copy of aStencilConfigvalue. 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 StencilConfig instance
-
builder
public static ImmutableStencilConfig.Builder builder()
Creates a builder forImmutableStencilConfig.ImmutableStencilConfig.builder() .client(io.resys.thena.docdb.api.DocDB) // requiredclient.repoName(String) // requiredrepoName.headName(String) // requiredheadName.authorProvider(io.thestencil.client.api.StencilConfig.AuthorProvider) // requiredauthorProvider.objectMapper(com.fasterxml.jackson.databind.ObjectMapper) // requiredobjectMapper.serializer(io.thestencil.client.api.StencilConfig.Serializer) // requiredserializer.deserializer(io.thestencil.client.api.StencilConfig.Deserializer) // requireddeserializer.gidProvider(io.thestencil.client.api.StencilConfig.GidProvider) // requiredgidProvider.build();- Returns:
- A new ImmutableStencilConfig builder
-
-