com.microsoft.azure.management.redis.RedisRebootParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-redis Show documentation
Show all versions of azure-mgmt-redis Show documentation
This package contains Microsoft Azure Redis Cache SDK.
/**
* 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.
*/
public class RedisRebootParameters {
/**
* 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.
*/
@JsonProperty(value = "shardId")
private Integer shardId;
/**
* Get the rebootType value.
*
* @return the rebootType value
*/
public RebootType rebootType() {
return this.rebootType;
}
/**
* 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.
*
* @return the shardId value
*/
public Integer shardId() {
return this.shardId;
}
/**
* 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy