Class RedisRebootParameters
java.lang.Object
com.azure.resourcemanager.redis.models.RedisRebootParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RedisRebootParameters>
public final class RedisRebootParameters
extends Object
implements com.azure.json.JsonSerializable<RedisRebootParameters>
Specifies which Redis node(s) to reboot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisRebootParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RedisRebootParameters from the JsonReader.ports()
Get the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.Get the rebootType property: Which Redis node(s) to reboot.shardId()
Get the shardId property: If clustering is enabled, the ID of the shard to be rebooted.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.withRebootType
(RebootType rebootType) Set the rebootType property: Which Redis node(s) to reboot.withShardId
(Integer shardId) Set the shardId property: If clustering is enabled, the ID of the shard to be rebooted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RedisRebootParameters
public RedisRebootParameters()Creates an instance of RedisRebootParameters class.
-
-
Method Details
-
rebootType
Get the rebootType property: Which Redis node(s) to reboot. Depending on this value data loss is possible.- Returns:
- the rebootType value.
-
withRebootType
Set the rebootType property: Which Redis node(s) to reboot. Depending on this value data loss is possible.- Parameters:
rebootType
- the rebootType value to set.- Returns:
- the RedisRebootParameters object itself.
-
shardId
Get the shardId property: If clustering is enabled, the ID of the shard to be rebooted.- Returns:
- the shardId value.
-
withShardId
Set the shardId property: If clustering is enabled, the ID of the shard to be rebooted.- Parameters:
shardId
- the shardId value to set.- Returns:
- the RedisRebootParameters object itself.
-
ports
Get the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.- Returns:
- the ports value.
-
withPorts
Set the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.- Parameters:
ports
- the ports value to set.- Returns:
- the RedisRebootParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RedisRebootParameters>
- Throws:
IOException
-
fromJson
public static RedisRebootParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RedisRebootParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RedisRebootParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RedisRebootParameters.
-