public final class ImmutableMongoImportArguments extends MongoImportArguments
MongoImportArguments.
Use the builder to create immutable instances:
ImmutableMongoImportArguments.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoImportArguments.Builder
Builds instances of type
ImmutableMongoImportArguments. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMongoImportArguments.Builder |
builder()
Creates a builder for
ImmutableMongoImportArguments. |
Optional<String> |
collectionName() |
static ImmutableMongoImportArguments |
copyOf(MongoImportArguments instance)
Creates an immutable copy of a
MongoImportArguments value. |
Optional<String> |
databaseName() |
boolean |
dropCollection() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoImportArguments that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
verbose, databaseName, collectionName, importFile, type, isHeaderline, isJsonArray, dropCollection, upsertDocuments. |
Optional<String> |
importFile() |
boolean |
isHeaderline() |
boolean |
isJsonArray() |
String |
toString()
Prints the immutable value
MongoImportArguments with attribute values. |
Optional<String> |
type() |
boolean |
upsertDocuments() |
boolean |
verbose() |
ImmutableMongoImportArguments |
withCollectionName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
collectionName attribute. |
ImmutableMongoImportArguments |
withCollectionName(String value)
Copy the current immutable object by setting a present value for the optional
collectionName attribute. |
ImmutableMongoImportArguments |
withDatabaseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
databaseName attribute. |
ImmutableMongoImportArguments |
withDatabaseName(String value)
Copy the current immutable object by setting a present value for the optional
databaseName attribute. |
ImmutableMongoImportArguments |
withDropCollection(boolean value)
Copy the current immutable object by setting a value for the
dropCollection attribute. |
ImmutableMongoImportArguments |
withImportFile(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
importFile attribute. |
ImmutableMongoImportArguments |
withImportFile(String value)
Copy the current immutable object by setting a present value for the optional
importFile attribute. |
ImmutableMongoImportArguments |
withIsHeaderline(boolean value)
Copy the current immutable object by setting a value for the
isHeaderline attribute. |
ImmutableMongoImportArguments |
withIsJsonArray(boolean value)
Copy the current immutable object by setting a value for the
isJsonArray attribute. |
ImmutableMongoImportArguments |
withType(Optional<String> value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableMongoImportArguments |
withUpsertDocuments(boolean value)
Copy the current immutable object by setting a value for the
upsertDocuments attribute. |
ImmutableMongoImportArguments |
withVerbose(boolean value)
Copy the current immutable object by setting a value for the
verbose attribute. |
asArguments, defaultspublic boolean verbose()
verbose in class MongoImportArgumentsverbose attributepublic Optional<String> databaseName()
databaseName in class MongoImportArgumentsdatabaseName attributepublic Optional<String> collectionName()
collectionName in class MongoImportArgumentscollectionName attributepublic Optional<String> importFile()
importFile in class MongoImportArgumentsimportFile attributepublic Optional<String> type()
type in class MongoImportArgumentstype attributepublic boolean isHeaderline()
isHeaderline in class MongoImportArgumentsisHeaderline attributepublic boolean isJsonArray()
isJsonArray in class MongoImportArgumentsisJsonArray attributepublic boolean dropCollection()
dropCollection in class MongoImportArgumentsdropCollection attributepublic boolean upsertDocuments()
upsertDocuments in class MongoImportArgumentsupsertDocuments attributepublic final ImmutableMongoImportArguments withVerbose(boolean value)
verbose attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for verbosethis objectpublic final ImmutableMongoImportArguments withDatabaseName(String value)
databaseName attribute.value - The value for databaseNamethis objectpublic final ImmutableMongoImportArguments withDatabaseName(Optional<String> optional)
databaseName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for databaseNamethis objectpublic final ImmutableMongoImportArguments withCollectionName(String value)
collectionName attribute.value - The value for collectionNamethis objectpublic final ImmutableMongoImportArguments withCollectionName(Optional<String> optional)
collectionName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for collectionNamethis objectpublic final ImmutableMongoImportArguments withImportFile(String value)
importFile attribute.value - The value for importFilethis objectpublic final ImmutableMongoImportArguments withImportFile(Optional<String> optional)
importFile attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for importFilethis objectpublic final ImmutableMongoImportArguments withType(Optional<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 ImmutableMongoImportArguments 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 ImmutableMongoImportArguments 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 ImmutableMongoImportArguments withDropCollection(boolean value)
dropCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for dropCollectionthis objectpublic final ImmutableMongoImportArguments withUpsertDocuments(boolean value)
upsertDocuments attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for upsertDocumentsthis objectpublic boolean equals(Object another)
ImmutableMongoImportArguments that have equal attribute values.public int hashCode()
verbose, databaseName, collectionName, importFile, type, isHeaderline, isJsonArray, dropCollection, upsertDocuments.public String toString()
MongoImportArguments with attribute values.public static ImmutableMongoImportArguments copyOf(MongoImportArguments instance)
MongoImportArguments 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 ImmutableMongoImportArguments.Builder builder()
ImmutableMongoImportArguments.
ImmutableMongoImportArguments.builder()
.verbose(boolean) // optional verbose
.databaseName(String) // optional databaseName
.collectionName(String) // optional collectionName
.importFile(String) // optional importFile
.type(Optional<String>) // optional type
.isHeaderline(boolean) // optional isHeaderline
.isJsonArray(boolean) // optional isJsonArray
.dropCollection(boolean) // optional dropCollection
.upsertDocuments(boolean) // optional upsertDocuments
.build();
Copyright © 2022. All rights reserved.