Module Class
- java.
lang. Object - com.
azure. resourcemanager. redisenterprise. models. Module
- com.
Implements
public final class Module
implements JsonSerializable<Module>
Module settings Specifies configuration of a redis module.
Constructor Summary
| Constructor | Description |
|---|---|
| Module() |
Creates an instance of Module class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
args()
Get the args property: Configuration options for the module, e. |
| static Module |
fromJson(JsonReader jsonReader)
Reads an instance of Module from the Json |
| String |
name()
Get the name property: The name of the module, e. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
version()
Get the version property: The version of the module, e. |
| Module |
withArgs(String args)
Set the args property: Configuration options for the module, e. |
| Module |
withName(String name)
Set the name property: The name of the module, e. |
Methods inherited from java.lang.Object
Constructor Details
Module
public Module()
Creates an instance of Module class.
Method Details
args
public String args()
Get the args property: Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
Returns:
fromJson
public static Module fromJson(JsonReader jsonReader)
Reads an instance of Module from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: The version of the module, e.g. '1.0'.
Returns:
withArgs
public Module withArgs(String args)
Set the args property: Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'.
Parameters:
Returns:
withName
public Module withName(String name)
Set the name property: The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries'.
Parameters:
Returns: