public class JsonGetArgs extends Object implements CompositeArgument
JsonGetArgs
is a mutable object and instances should be used only once to avoid shared mutable state.
Modifier and Type | Class and Description |
---|---|
static class |
JsonGetArgs.Builder
Builder entry points for
JsonGetArgs . |
Constructor and Description |
---|
JsonGetArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
JsonGetArgs |
defaults()
Set empty arguments.
|
JsonGetArgs |
indent(String indent)
Set the string used for indentation.
|
JsonGetArgs |
newline(String newline)
Set the string used for newline.
|
JsonGetArgs |
space(String space)
Set the string used for spacing.
|
public JsonGetArgs indent(String indent)
this
.public JsonGetArgs newline(String newline)
this
.public JsonGetArgs space(String space)
this
.public JsonGetArgs defaults()
this
.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgument
CommandArgs
.
Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
build
in interface CompositeArgument
K
- Key type.V
- Value type.args
- the command arguments, must not be null
.Copyright © 2025 lettuce.io. All rights reserved.