java.lang.Object
com.azure.resourcemanager.redis.models.RedisLinkedServerCreateParameters
public final class RedisLinkedServerCreateParameters
extends Object
Parameter required for creating a linked server to redis cache.
Constructor Summary
Constructors
Creates an instance of RedisLinkedServerCreateParameters class.
Method Summary
All Methods Instance Methods Concrete Methods
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 linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Get the linkedRedisCacheLocation property: Location of the linked redis cache.
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 serverRole property: Role of the linked server.
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
Constructor Details
RedisLinkedServerCreateParameters
public RedisLinkedServerCreateParameters ()
Creates an instance of RedisLinkedServerCreateParameters class.
Method Details
linkedRedisCacheId
public String linkedRedisCacheId ()
Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Returns:
the linkedRedisCacheId value.
withLinkedRedisCacheId
Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Parameters:
linkedRedisCacheId - the linkedRedisCacheId value to set.
Returns:
the RedisLinkedServerCreateParameters object itself.
linkedRedisCacheLocation
public String linkedRedisCacheLocation ()
Get the linkedRedisCacheLocation property: Location of the linked redis cache.
Returns:
the linkedRedisCacheLocation value.
withLinkedRedisCacheLocation
Set the linkedRedisCacheLocation property: Location of the linked redis cache.
Parameters:
linkedRedisCacheLocation - the linkedRedisCacheLocation value to set.
Returns:
the RedisLinkedServerCreateParameters object itself.
serverRole
Get the serverRole property: Role of the linked server.
Returns:
the serverRole value.
withServerRole
Set the serverRole property: Role of the linked server.
Parameters:
serverRole - the serverRole value to set.
Returns:
the RedisLinkedServerCreateParameters 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.