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.
- Returns:
- the primaryHostname value.
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>fromJson(com.azure.json.JsonReader jsonReader) id()name()com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()voidvalidate()withLinkedRedisCacheId(String linkedRedisCacheId) withLinkedRedisCacheLocation(String linkedRedisCacheLocation) withServerRole(ReplicationRole serverRole) clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoJson, toJson, toJsonBytes, toJsonStringtype in class com.azure.core.management.ProxyResourcename in class com.azure.core.management.ProxyResourceid in class com.azure.core.management.ProxyResourcelinkedRedisCacheId - the linkedRedisCacheId value to set.linkedRedisCacheLocation - the linkedRedisCacheLocation value to set.serverRole - the serverRole value to set.IllegalArgumentException - thrown if the instance is not valid.toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>toJson in class com.azure.core.management.ProxyResourceIOExceptionjsonReader - The JsonReader being read.IllegalStateException - If the deserialized JSON object was missing any required properties.IOException - If an error occurs while reading the RedisLinkedServerWithPropertiesInner.