Package io.resys.thena.api.actions
Class ImmutableTenantCommitResult
java.lang.Object
io.resys.thena.api.actions.ImmutableTenantCommitResult
- All Implemented Interfaces:
TenantActions.TenantCommitResult,ThenaEnvelope
@Generated(from="TenantActions.TenantCommitResult",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableTenantCommitResult
extends Object
implements TenantActions.TenantCommitResult
Immutable implementation of
TenantActions.TenantCommitResult.
Use the builder to create immutable instances:
ImmutableTenantCommitResult.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableTenantCommitResult. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTenantCommitResult.static ImmutableTenantCommitResultcopyOf(TenantActions.TenantCommitResult instance) Creates an immutable copy of aTenantActions.TenantCommitResultvalue.booleanThis instance is equal to all instances ofImmutableTenantCommitResultthat have equal attribute values.com.google.common.collect.ImmutableList<Message> getRepo()inthashCode()Computes a hash code from attributes:repo,status,messages.toString()Prints the immutable valueTenantCommitResultwith attribute values.withMessages(Message... elements) Copy the current immutable object with elements that replace the content ofmessages.withMessages(Iterable<? extends Message> elements) Copy the current immutable object with elements that replace the content ofmessages.Copy the current immutable object by setting a value for therepoattribute.Copy the current immutable object by setting a value for thestatusattribute.
-
Method Details
-
getRepo
- Specified by:
getRepoin interfaceTenantActions.TenantCommitResult- Returns:
- The value of the
repoattribute
-
getStatus
- Specified by:
getStatusin interfaceTenantActions.TenantCommitResult- Returns:
- The value of the
statusattribute
-
getMessages
- Specified by:
getMessagesin interfaceTenantActions.TenantCommitResult- Returns:
- The value of the
messagesattribute
-
withRepo
Copy the current immutable object by setting a value for therepoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repo (can benull)- Returns:
- A modified copy or the
thisobject
-
withStatus
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy or the
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of messages elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableTenantCommitResultthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:repo,status,messages. -
toString
Prints the immutable valueTenantCommitResultwith attribute values. -
copyOf
Creates an immutable copy of aTenantActions.TenantCommitResultvalue. 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 TenantCommitResult instance
-
builder
Creates a builder forImmutableTenantCommitResult.ImmutableTenantCommitResult.builder() .repo(io.resys.thena.api.entities.Tenant | null) // nullablerepo.status(io.resys.thena.api.actions.TenantActions.CommitStatus) // requiredstatus.addMessages|addAllMessages(io.resys.thena.api.envelope.Message) //messageselements .build();- Returns:
- A new ImmutableTenantCommitResult builder
-