public final class ImmutableMongoImportConfig extends Object implements MongoImportConfig
MongoImportConfig.
Use the builder to create immutable instances:
ImmutableMongoImportConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoImportConfig.Builder
Builds instances of type
ImmutableMongoImportConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMongoImportConfig.Builder |
builder()
Creates a builder for
ImmutableMongoImportConfig. |
MongoCmdOptions |
cmdOptions() |
static ImmutableMongoImportConfig |
copyOf(MongoImportConfig instance)
Creates an immutable copy of a
MongoImportConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoImportConfig that have equal attribute values. |
String |
getCollectionName() |
String |
getDatabaseName() |
String |
getImportFile() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, databaseName, collectionName, importFile, type, isHeaderline, isJsonArray, isDropCollection, isUpsertDocuments, pidFile, supportConfig. |
boolean |
isDropCollection() |
boolean |
isHeaderline() |
boolean |
isJsonArray() |
boolean |
isUpsertDocuments() |
Net |
net() |
String |
password() |
String |
pidFile() |
OptionalLong |
stopTimeoutInMillis() |
de.flapdoodle.embed.process.config.SupportConfig |
supportConfig() |
Timeout |
timeout() |
String |
toString()
Prints the immutable value
MongoImportConfig with attribute values. |
String |
userName() |
IFeatureAwareVersion |
version() |
ImmutableMongoImportConfig |
withCmdOptions(MongoCmdOptions value)
Copy the current immutable object by setting a value for the
cmdOptions attribute. |
ImmutableMongoImportConfig |
withCollectionName(String value)
Copy the current immutable object by setting a value for the
collectionName attribute. |
ImmutableMongoImportConfig |
withDatabaseName(String value)
Copy the current immutable object by setting a value for the
databaseName attribute. |
ImmutableMongoImportConfig |
withImportFile(String value)
Copy the current immutable object by setting a value for the
importFile attribute. |
ImmutableMongoImportConfig |
withIsDropCollection(boolean value)
Copy the current immutable object by setting a value for the
isDropCollection attribute. |
ImmutableMongoImportConfig |
withIsHeaderline(boolean value)
Copy the current immutable object by setting a value for the
isHeaderline attribute. |
ImmutableMongoImportConfig |
withIsJsonArray(boolean value)
Copy the current immutable object by setting a value for the
isJsonArray attribute. |
ImmutableMongoImportConfig |
withIsUpsertDocuments(boolean value)
Copy the current immutable object by setting a value for the
isUpsertDocuments attribute. |
ImmutableMongoImportConfig |
withNet(Net value)
Copy the current immutable object by setting a value for the
net attribute. |
ImmutableMongoImportConfig |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableMongoImportConfig |
withPidFile(String value)
Copy the current immutable object by setting a value for the
pidFile attribute. |
ImmutableMongoImportConfig |
withStopTimeoutInMillis(long value)
Copy the current immutable object by setting a present value for the optional
stopTimeoutInMillis attribute. |
ImmutableMongoImportConfig |
withStopTimeoutInMillis(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
stopTimeoutInMillis attribute. |
ImmutableMongoImportConfig |
withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableMongoImportConfig |
withTimeout(Timeout value)
Copy the current immutable object by setting a value for the
timeout attribute. |
ImmutableMongoImportConfig |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableMongoImportConfig |
withUserName(String value)
Copy the current immutable object by setting a value for the
userName attribute. |
ImmutableMongoImportConfig |
withVersion(IFeatureAwareVersion value)
Copy the current immutable object by setting a value for the
version attribute. |
public OptionalLong stopTimeoutInMillis()
stopTimeoutInMillis in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigstopTimeoutInMillis attributepublic IFeatureAwareVersion version()
version in interface MongoCommonConfigversion in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigversion attributepublic Timeout timeout()
timeout in interface MongoCommonConfigtimeout attributepublic Net net()
net in interface MongoCommonConfignet attributepublic MongoCmdOptions cmdOptions()
cmdOptions in interface MongoCommonConfigcmdOptions attributepublic String password()
password in interface MongoCommonConfigpassword attributepublic String userName()
userName in interface MongoCommonConfiguserName attributepublic String getDatabaseName()
getDatabaseName in interface MongoImportConfigdatabaseName attributepublic String getCollectionName()
getCollectionName in interface MongoImportConfigcollectionName attributepublic String getImportFile()
getImportFile in interface MongoImportConfigimportFile attributepublic String getType()
getType in interface MongoImportConfigtype attributepublic boolean isHeaderline()
isHeaderline in interface MongoImportConfigisHeaderline attributepublic boolean isJsonArray()
isJsonArray in interface MongoImportConfigisJsonArray attributepublic boolean isDropCollection()
isDropCollection in interface MongoImportConfigisDropCollection attributepublic boolean isUpsertDocuments()
isUpsertDocuments in interface MongoImportConfigisUpsertDocuments attributepublic String pidFile()
pidFile in interface MongoCommonConfigpidFile in interface MongoImportConfigpidFile attributepublic de.flapdoodle.embed.process.config.SupportConfig supportConfig()
supportConfig in interface MongoImportConfigsupportConfig in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigsupportConfig attributepublic final ImmutableMongoImportConfig withStopTimeoutInMillis(long value)
stopTimeoutInMillis attribute.value - The value for stopTimeoutInMillisthis objectpublic final ImmutableMongoImportConfig withStopTimeoutInMillis(OptionalLong optional)
stopTimeoutInMillis attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for stopTimeoutInMillisthis objectpublic final ImmutableMongoImportConfig withVersion(IFeatureAwareVersion value)
version attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableMongoImportConfig withTimeout(Timeout value)
timeout attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for timeoutthis objectpublic final ImmutableMongoImportConfig withNet(Net value)
net attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for netthis objectpublic final ImmutableMongoImportConfig withCmdOptions(MongoCmdOptions value)
cmdOptions attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for cmdOptionsthis objectpublic final ImmutableMongoImportConfig withPassword(String value)
password attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for passwordthis objectpublic final ImmutableMongoImportConfig withUserName(String value)
userName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for userNamethis objectpublic final ImmutableMongoImportConfig withDatabaseName(String value)
databaseName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for databaseNamethis objectpublic final ImmutableMongoImportConfig withCollectionName(String value)
collectionName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for collectionNamethis objectpublic final ImmutableMongoImportConfig withImportFile(String value)
importFile attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for importFilethis objectpublic final ImmutableMongoImportConfig withType(String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableMongoImportConfig withIsHeaderline(boolean value)
isHeaderline attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isHeaderlinethis objectpublic final ImmutableMongoImportConfig withIsJsonArray(boolean value)
isJsonArray attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isJsonArraythis objectpublic final ImmutableMongoImportConfig withIsDropCollection(boolean value)
isDropCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDropCollectionthis objectpublic final ImmutableMongoImportConfig withIsUpsertDocuments(boolean value)
isUpsertDocuments attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isUpsertDocumentsthis objectpublic final ImmutableMongoImportConfig withPidFile(String value)
pidFile attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for pidFilethis objectpublic final ImmutableMongoImportConfig withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
supportConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for supportConfigthis objectpublic boolean equals(Object another)
ImmutableMongoImportConfig that have equal attribute values.public int hashCode()
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, databaseName, collectionName, importFile, type, isHeaderline, isJsonArray, isDropCollection, isUpsertDocuments, pidFile, supportConfig.public String toString()
MongoImportConfig with attribute values.public static ImmutableMongoImportConfig copyOf(MongoImportConfig instance)
MongoImportConfig 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 ImmutableMongoImportConfig.Builder builder()
ImmutableMongoImportConfig.
ImmutableMongoImportConfig.builder()
.stopTimeoutInMillis(long) // optional stopTimeoutInMillis
.version(de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion) // required version
.timeout(de.flapdoodle.embed.mongo.config.Timeout) // optional timeout
.net(de.flapdoodle.embed.mongo.config.Net) // optional net
.cmdOptions(de.flapdoodle.embed.mongo.config.MongoCmdOptions) // optional cmdOptions
.password(String) // optional password
.userName(String) // optional userName
.databaseName(String) // required databaseName
.collectionName(String) // required collectionName
.importFile(String) // required importFile
.type(String) // optional type
.isHeaderline(boolean) // optional isHeaderline
.isJsonArray(boolean) // required isJsonArray
.isDropCollection(boolean) // required isDropCollection
.isUpsertDocuments(boolean) // required isUpsertDocuments
.pidFile(String) // optional pidFile
.supportConfig(de.flapdoodle.embed.process.config.SupportConfig) // optional supportConfig
.build();
builder in interface MongoImportConfigCopyright © 2022. All rights reserved.