Class RedisInstanceDetails
- java.lang.Object
-
- com.azure.resourcemanager.redis.models.RedisInstanceDetails
-
public final class RedisInstanceDetails extends Object
Details of single instance of redis.
-
-
Constructor Summary
Constructors Constructor Description RedisInstanceDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanisMaster()Get the isMaster property: Specifies whether the instance is a primary node.BooleanisPrimary()Get the isPrimary property: Specifies whether the instance is a primary node.IntegernonSslPort()Get the nonSslPort property: If enableNonSslPort is true, provides Redis instance Non-SSL port.IntegershardId()Get the shardId property: If clustering is enabled, the Shard ID of Redis Instance.IntegersslPort()Get the sslPort property: Redis instance SSL port.voidvalidate()Validates the instance.Stringzone()Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located.
-
-
-
Method Detail
-
sslPort
public Integer sslPort()
Get the sslPort property: Redis instance SSL port.- Returns:
- the sslPort value.
-
nonSslPort
public Integer nonSslPort()
Get the nonSslPort property: If enableNonSslPort is true, provides Redis instance Non-SSL port.- Returns:
- the nonSslPort value.
-
zone
public String zone()
Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located.- Returns:
- the zone value.
-
shardId
public Integer shardId()
Get the shardId property: If clustering is enabled, the Shard ID of Redis Instance.- Returns:
- the shardId value.
-
isMaster
public Boolean isMaster()
Get the isMaster property: Specifies whether the instance is a primary node.- Returns:
- the isMaster value.
-
isPrimary
public Boolean isPrimary()
Get the isPrimary property: Specifies whether the instance is a primary node.- Returns:
- the isPrimary value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-