Class RedisLinkedServerProperties

java.lang.Object
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerCreateProperties
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<RedisLinkedServerCreateProperties>

public final class RedisLinkedServerProperties extends RedisLinkedServerCreateProperties
Properties of a linked server to be returned in get/put response.
  • 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

      public RedisLinkedServerProperties withLinkedRedisCacheId(String linkedRedisCacheId)
      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

      public RedisLinkedServerProperties withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
      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

      public RedisLinkedServerProperties withServerRole(ReplicationRole serverRole)
      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.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class RedisLinkedServerCreateProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RedisLinkedServerCreateProperties>
      Overrides:
      toJson in class RedisLinkedServerCreateProperties
      Throws:
      IOException
    • fromJson

      public static RedisLinkedServerProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.