public final class ImmutableMongoShellProcessArguments extends MongoShellProcessArguments
MongoShellProcessArguments.
Use the builder to create immutable instances:
ImmutableMongoShellProcessArguments.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoShellProcessArguments.Builder
Builds instances of type
ImmutableMongoShellProcessArguments. |
| Modifier and Type | Method and Description |
|---|---|
de.flapdoodle.reverse.StateID<MongoShellArguments> |
arguments() |
static ImmutableMongoShellProcessArguments.Builder |
builder()
Creates a builder for
ImmutableMongoShellProcessArguments. |
static ImmutableMongoShellProcessArguments |
copyOf(MongoShellProcessArguments instance)
Creates an immutable copy of a
MongoShellProcessArguments value. |
de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoShellProcessArguments that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, serverAddress, arguments. |
de.flapdoodle.reverse.StateID<ServerAddress> |
serverAddress() |
String |
toString()
Prints the immutable value
MongoShellProcessArguments with attribute values. |
ImmutableMongoShellProcessArguments |
withArguments(de.flapdoodle.reverse.StateID<MongoShellArguments> value)
Copy the current immutable object by setting a value for the
arguments attribute. |
ImmutableMongoShellProcessArguments |
withDestination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableMongoShellProcessArguments |
withServerAddress(de.flapdoodle.reverse.StateID<ServerAddress> value)
Copy the current immutable object by setting a value for the
serverAddress attribute. |
transitionLabel, withDefaultsresult, sourcespublic de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> destination()
destination in interface de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.types.ProcessArguments>destination in class MongoToolsProcessArguments<MongoShellArguments>destination attributepublic de.flapdoodle.reverse.StateID<ServerAddress> serverAddress()
serverAddress in class MongoToolsProcessArguments<MongoShellArguments>serverAddress attributepublic de.flapdoodle.reverse.StateID<MongoShellArguments> arguments()
arguments in interface CommandProcessArguments<MongoShellArguments>arguments in class MongoShellProcessArgumentsarguments attributepublic final ImmutableMongoShellProcessArguments withDestination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableMongoShellProcessArguments withServerAddress(de.flapdoodle.reverse.StateID<ServerAddress> value)
serverAddress attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for serverAddressthis objectpublic final ImmutableMongoShellProcessArguments withArguments(de.flapdoodle.reverse.StateID<MongoShellArguments> value)
arguments attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for argumentsthis objectpublic boolean equals(Object another)
ImmutableMongoShellProcessArguments that have equal attribute values.public int hashCode()
destination, serverAddress, arguments.public String toString()
MongoShellProcessArguments with attribute values.public static ImmutableMongoShellProcessArguments copyOf(MongoShellProcessArguments instance)
MongoShellProcessArguments value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableMongoShellProcessArguments.Builder builder()
ImmutableMongoShellProcessArguments.
ImmutableMongoShellProcessArguments.builder()
.destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments>) // optional destination
.serverAddress(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.mongo.commands.ServerAddress>) // optional serverAddress
.arguments(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.mongo.commands.MongoShellArguments>) // optional arguments
.build();
Copyright © 2022. All rights reserved.