Class RedisLinkedServerProperties
- java.lang.Object
-
- com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerCreateProperties
-
- com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerProperties
-
public final class RedisLinkedServerProperties extends RedisLinkedServerCreateProperties
Properties of a linked server to be returned in get/put response.
-
-
Constructor Summary
Constructors Constructor Description RedisLinkedServerProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprovisioningState()Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.voidvalidate()Validates the instance.RedisLinkedServerPropertieswithLinkedRedisCacheId(String linkedRedisCacheId)Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.RedisLinkedServerPropertieswithLinkedRedisCacheLocation(String linkedRedisCacheLocation)Set the linkedRedisCacheLocation property: Location of the linked redis cache.RedisLinkedServerPropertieswithServerRole(ReplicationRole serverRole)Set the serverRole property: Role of the linked server.-
Methods inherited from class com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerCreateProperties
linkedRedisCacheId, linkedRedisCacheLocation, serverRole
-
-
-
-
Method Detail
-
provisioningState
public String provisioningState()
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.- Returns:
- the provisioningState value.
-
withLinkedRedisCacheId
public RedisLinkedServerProperties withLinkedRedisCacheId(String linkedRedisCacheId)
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
public RedisLinkedServerProperties withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
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
public RedisLinkedServerProperties withServerRole(ReplicationRole serverRole)
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.
-
-