RedisRebootParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.redis.models.RedisRebootParameters

public final class RedisRebootParameters

Specifies which Redis node(s) to reboot.

Constructor Summary

Constructor Description
RedisRebootParameters()

Creates an instance of RedisRebootParameters class.

Method Summary

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.

Methods inherited from java.lang.Object

Constructor Details

RedisRebootParameters

public RedisRebootParameters()

Creates an instance of RedisRebootParameters class.

Method Details

ports

public List 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.

rebootType

public RebootType rebootType()

Get the rebootType property: Which Redis node(s) to reboot. Depending on this value data loss is possible.

Returns:

the rebootType value.

shardId

public Integer shardId()

Get the shardId property: If clustering is enabled, the ID of the shard to be rebooted.

Returns:

the shardId value.

validate

public void validate()

Validates the instance.

withPorts

public RedisRebootParameters withPorts(List ports)

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.

withRebootType

public RedisRebootParameters withRebootType(RebootType rebootType)

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.

withShardId

public RedisRebootParameters withShardId(Integer shardId)

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.

Applies to