public final class RedisRebootParameters extends Object
| Constructor and Description |
|---|
RedisRebootParameters() |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
ports()
Get the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL
ports.
|
RebootType |
rebootType()
Get the rebootType property: Which Redis node(s) to reboot.
|
Integer |
shardId()
Get the shardId property: If clustering is enabled, the ID of the shard to be rebooted.
|
void |
validate()
Validates the instance.
|
RedisRebootParameters |
withPorts(List<Integer> ports)
Set the ports property: A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL
ports.
|
RedisRebootParameters |
withRebootType(RebootType rebootType)
Set the rebootType property: Which Redis node(s) to reboot.
|
RedisRebootParameters |
withShardId(Integer shardId)
Set the shardId property: If clustering is enabled, the ID of the shard to be rebooted.
|
public RebootType rebootType()
public RedisRebootParameters withRebootType(RebootType rebootType)
rebootType - the rebootType value to set.public Integer shardId()
public RedisRebootParameters withShardId(Integer shardId)
shardId - the shardId value to set.public List<Integer> ports()
public RedisRebootParameters withPorts(List<Integer> ports)
ports - the ports value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.