public static final class ImmutableMongoShellArguments.Builder extends Object
ImmutableMongoShellArguments.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableMongoShellArguments.Builder from(MongoShellArguments instance)
MongoShellArguments instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder addScriptParameters(String element)
scriptParameters list.element - A scriptParameters elementthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder addScriptParameters(String... elements)
scriptParameters list.elements - An array of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder scriptParameters(Iterable<String> elements)
scriptParameters list.elements - An iterable of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder addAllScriptParameters(Iterable<String> elements)
scriptParameters list.elements - An iterable of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder scriptName(String scriptName)
scriptName to scriptName.scriptName - The value for scriptNamethis builder for chained invocationpublic final ImmutableMongoShellArguments.Builder scriptName(Optional<String> scriptName)
scriptName to scriptName.scriptName - The value for scriptNamethis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder dbName(String dbName)
dbName to dbName.dbName - The value for dbNamethis builder for chained invocationpublic final ImmutableMongoShellArguments.Builder dbName(Optional<String> dbName)
dbName to dbName.dbName - The value for dbNamethis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder password(String password)
password to password.password - The value for passwordthis builder for chained invocationpublic final ImmutableMongoShellArguments.Builder password(Optional<String> password)
password to password.password - The value for passwordthis builder for use in a chained invocationpublic final ImmutableMongoShellArguments.Builder userName(String userName)
userName to userName.userName - The value for userNamethis builder for chained invocationpublic final ImmutableMongoShellArguments.Builder userName(Optional<String> userName)
userName to userName.userName - The value for userNamethis builder for use in a chained invocationpublic ImmutableMongoShellArguments build()
ImmutableMongoShellArguments.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.