Class RedisInstanceDetails
java.lang.Object
com.azure.resourcemanager.redis.models.RedisInstanceDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RedisInstanceDetails>
public final class RedisInstanceDetails
extends Object
implements com.azure.json.JsonSerializable<RedisInstanceDetails>
Details of single instance of redis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisInstanceDetails
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RedisInstanceDetails from the JsonReader.isMaster()
Get the isMaster property: Specifies whether the instance is a primary node.Get the isPrimary property: Specifies whether the instance is a primary node.Get the nonSslPort property: If enableNonSslPort is true, provides Redis instance Non-SSL port.shardId()
Get the shardId property: If clustering is enabled, the Shard ID of Redis Instance.sslPort()
Get the sslPort property: Redis instance SSL port.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.zone()
Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RedisInstanceDetails
public RedisInstanceDetails()Creates an instance of RedisInstanceDetails class.
-
-
Method Details
-
sslPort
Get the sslPort property: Redis instance SSL port.- Returns:
- the sslPort value.
-
nonSslPort
Get the nonSslPort property: If enableNonSslPort is true, provides Redis instance Non-SSL port.- Returns:
- the nonSslPort value.
-
zone
Get the zone property: If the Cache uses availability zones, specifies availability zone where this instance is located.- Returns:
- the zone value.
-
shardId
Get the shardId property: If clustering is enabled, the Shard ID of Redis Instance.- Returns:
- the shardId value.
-
isMaster
Get the isMaster property: Specifies whether the instance is a primary node.- Returns:
- the isMaster value.
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RedisInstanceDetails>
- Throws:
IOException
-
fromJson
public static RedisInstanceDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RedisInstanceDetails from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RedisInstanceDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RedisInstanceDetails.
-