Class RedisLinkedServerProperties
java.lang.Object
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerCreateProperties
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerProperties
Properties of a linked server to be returned in get/put response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RedisLinkedServerProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the provisioningState property: Terminal state of the link between primary and secondary redis cache.voidvalidate()Validates the instance.withLinkedRedisCacheId(String linkedRedisCacheId) Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.withLinkedRedisCacheLocation(String linkedRedisCacheLocation) Set the linkedRedisCacheLocation property: Location of the linked redis cache.withServerRole(ReplicationRole serverRole) Set the serverRole property: Role of the linked server.Methods inherited from class com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerCreateProperties
geoReplicatedPrimaryHostname, linkedRedisCacheId, linkedRedisCacheLocation, primaryHostname, serverRole
-
Constructor Details
-
RedisLinkedServerProperties
public RedisLinkedServerProperties()Creates an instance of RedisLinkedServerProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.- Returns:
- the provisioningState value.
-
withLinkedRedisCacheId
Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.- Overrides:
withLinkedRedisCacheIdin classRedisLinkedServerCreateProperties- Parameters:
linkedRedisCacheId- the linkedRedisCacheId value to set.- Returns:
- the RedisLinkedServerCreateProperties object itself.
-
withLinkedRedisCacheLocation
Set the linkedRedisCacheLocation property: Location of the linked redis cache.- Overrides:
withLinkedRedisCacheLocationin classRedisLinkedServerCreateProperties- Parameters:
linkedRedisCacheLocation- the linkedRedisCacheLocation value to set.- Returns:
- the RedisLinkedServerCreateProperties object itself.
-
withServerRole
Set the serverRole property: Role of the linked server.- Overrides:
withServerRolein classRedisLinkedServerCreateProperties- Parameters:
serverRole- the serverRole value to set.- Returns:
- the RedisLinkedServerCreateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRedisLinkedServerCreateProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-