Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.redis; import com.fasterxml.jackson.annotation.JsonProperty;
Specifies which Redis node(s) to reboot.
/** * Specifies which Redis node(s) to reboot. */
public class RedisRebootParameters {
Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'.
/** * Which Redis node(s) to reboot. Depending on this value data loss is * possible. Possible values include: 'PrimaryNode', 'SecondaryNode', * 'AllNodes'. */
@JsonProperty(value = "rebootType", required = true) private RebootType rebootType;
If clustering is enabled, the ID of the shard to be rebooted.
/** * If clustering is enabled, the ID of the shard to be rebooted. */
@JsonProperty(value = "shardId") private Integer shardId;
Get the rebootType value.
Returns:the rebootType value
/** * Get the rebootType value. * * @return the rebootType value */
public RebootType rebootType() { return this.rebootType; }
Set the rebootType value.
Params:
  • rebootType – the rebootType value to set
Returns:the RedisRebootParameters object itself.
/** * Set the rebootType value. * * @param rebootType the rebootType value to set * @return the RedisRebootParameters object itself. */
public RedisRebootParameters withRebootType(RebootType rebootType) { this.rebootType = rebootType; return this; }
Get the shardId value.
Returns:the shardId value
/** * Get the shardId value. * * @return the shardId value */
public Integer shardId() { return this.shardId; }
Set the shardId value.
Params:
  • shardId – the shardId value to set
Returns:the RedisRebootParameters object itself.
/** * Set the shardId value. * * @param shardId the shardId value to set * @return the RedisRebootParameters object itself. */
public RedisRebootParameters withShardId(Integer shardId) { this.shardId = shardId; return this; } }