Class RedisLinkedServerWithPropertiesInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerWithPropertiesInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class RedisLinkedServerWithPropertiesInner extends com.azure.core.management.ProxyResource
Response to put/get linked server (with properties) for Redis cache.
  • Constructor Details

    • RedisLinkedServerWithPropertiesInner

      public RedisLinkedServerWithPropertiesInner()
      Creates an instance of RedisLinkedServerWithPropertiesInner class.
  • Method Details

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
      Returns:
      the provisioningState value.
    • linkedRedisCacheId

      public String linkedRedisCacheId()
      Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
      Returns:
      the linkedRedisCacheId value.
    • withLinkedRedisCacheId

      public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheId(String linkedRedisCacheId)
      Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
      Parameters:
      linkedRedisCacheId - the linkedRedisCacheId value to set.
      Returns:
      the RedisLinkedServerWithPropertiesInner object itself.
    • linkedRedisCacheLocation

      public String linkedRedisCacheLocation()
      Get the linkedRedisCacheLocation property: Location of the linked redis cache.
      Returns:
      the linkedRedisCacheLocation value.
    • withLinkedRedisCacheLocation

      public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
      Set the linkedRedisCacheLocation property: Location of the linked redis cache.
      Parameters:
      linkedRedisCacheLocation - the linkedRedisCacheLocation value to set.
      Returns:
      the RedisLinkedServerWithPropertiesInner object itself.
    • serverRole

      public ReplicationRole serverRole()
      Get the serverRole property: Role of the linked server.
      Returns:
      the serverRole value.
    • withServerRole

      public RedisLinkedServerWithPropertiesInner withServerRole(ReplicationRole serverRole)
      Set the serverRole property: Role of the linked server.
      Parameters:
      serverRole - the serverRole value to set.
      Returns:
      the RedisLinkedServerWithPropertiesInner object itself.
    • 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.
      Returns:
      the geoReplicatedPrimaryHostname 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.
      Returns:
      the primaryHostname value.
    • validate

      public void validate()
      Validates the instance.
      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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static RedisLinkedServerWithPropertiesInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RedisLinkedServerWithPropertiesInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RedisLinkedServerWithPropertiesInner 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 RedisLinkedServerWithPropertiesInner.