Constructor Summary
Constructors
Creates an instance of RedisLinkedServerProperties class.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
fromJson (com.azure.json.JsonReader jsonReader)
Reads an instance of RedisLinkedServerProperties from the JsonReader.
Get the geoReplicatedPrimaryHostname property: The unchanging DNS name which will always point to current
geo-primary cache among the linked redis caches for seamless Geo Failover experience.
Get the primaryHostname property: The changing DNS name that resolves to the current geo-primary cache among the
linked redis caches before or after the Geo Failover.
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
com.azure.json.JsonWriter
toJson (com.azure.json.JsonWriter jsonWriter)
void
Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Set the linkedRedisCacheLocation property: Location of the linked redis cache.
Set the serverRole property: Role of the linked server.
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
RedisLinkedServerProperties
public RedisLinkedServerProperties ()
Creates an instance of RedisLinkedServerProperties class.
Method Details
provisioningState
public String provisioningState ()
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
Returns:
the provisioningState value.
primaryHostname
public String primaryHostname ()
Get the primaryHostname property: The changing DNS name that resolves to the current geo-primary cache among the
linked redis caches before or after the Geo Failover.
Overrides:
primaryHostname
in class RedisLinkedServerCreateProperties
Returns:
the primaryHostname value.
geoReplicatedPrimaryHostname
public String geoReplicatedPrimaryHostname ()
Get the geoReplicatedPrimaryHostname property: The unchanging DNS name which will always point to current
geo-primary cache among the linked redis caches for seamless Geo Failover experience.
Overrides:
geoReplicatedPrimaryHostname
in class RedisLinkedServerCreateProperties
Returns:
the geoReplicatedPrimaryHostname value.
withLinkedRedisCacheId
Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Overrides:
withLinkedRedisCacheId
in class RedisLinkedServerCreateProperties
Parameters:
linkedRedisCacheId
- the linkedRedisCacheId value to set.
Returns:
the RedisLinkedServerCreateProperties object itself.
withLinkedRedisCacheLocation
Set the linkedRedisCacheLocation property: Location of the linked redis cache.
Overrides:
withLinkedRedisCacheLocation
in class RedisLinkedServerCreateProperties
Parameters:
linkedRedisCacheLocation
- the linkedRedisCacheLocation value to set.
Returns:
the RedisLinkedServerCreateProperties object itself.
withServerRole
Set the serverRole property: Role of the linked server.
Overrides:
withServerRole
in class RedisLinkedServerCreateProperties
Parameters:
serverRole
- the serverRole value to set.
Returns:
the RedisLinkedServerCreateProperties object itself.
fromJson
Reads an instance of RedisLinkedServerProperties from the JsonReader.
Parameters:
jsonReader
- The JsonReader being read.
Returns:
An instance of RedisLinkedServerProperties if the JsonReader was pointing to an instance of it, or null
if it was pointing to JSON null.
Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.
IOException
- If an error occurs while reading the RedisLinkedServerProperties.