RedisInstanceDetails Class
- java.
lang. Object - com.
azure. resourcemanager. redis. models. RedisInstanceDetails
- com.
Implements
public final class RedisInstanceDetails
implements JsonSerializable<RedisInstanceDetails>
Details of single instance of redis.
Constructor Summary
Constructor | Description |
---|---|
RedisInstanceDetails() |
Creates an instance of Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Redis |
fromJson(JsonReader jsonReader)
Reads an instance of Redis |
Boolean |
isMaster()
Get the is |
Boolean |
isPrimary()
Get the is |
Integer |
nonSslPort()
Get the non |
Integer |
shardId()
Get the shard |
Integer |
sslPort()
Get the ssl |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
zone()
Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located. |
Methods inherited from java.lang.Object
Constructor Details
RedisInstanceDetails
public RedisInstanceDetails()
Creates an instance of RedisInstanceDetails class.
Method Details
fromJson
public static RedisInstanceDetails fromJson(JsonReader jsonReader)
Reads an instance of RedisInstanceDetails from the JsonReader.
Parameters:
Returns:
Throws:
isMaster
public Boolean isMaster()
Get the isMaster property: Specifies whether the instance is a primary node.
Returns:
isPrimary
public Boolean isPrimary()
Get the isPrimary property: Specifies whether the instance is a primary node.
Returns:
nonSslPort
public Integer nonSslPort()
Get the nonSslPort property: If enableNonSslPort is true, provides Redis instance Non-SSL port.
Returns:
shardId
public Integer shardId()
Get the shardId property: If clustering is enabled, the Shard ID of Redis Instance.
Returns:
sslPort
public Integer sslPort()
Get the sslPort property: Redis instance SSL port.
Returns:
toJson
validate
public void validate()
Validates the instance.
zone
public String zone()
Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located.
Returns:
Applies to
Azure SDK for Java