Class RedisLinkedServerWithPropertiesInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.redis.fluent.models.RedisLinkedServerWithPropertiesInner
public final class RedisLinkedServerWithPropertiesInner
extends com.azure.core.management.ProxyResource
Response to put/get linked server (with properties) for Redis cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.Get the linkedRedisCacheLocation property: Location of the linked redis cache.Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.Get the serverRole property: Role of the linked server.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.core.management.ProxyResource
id, name, type
-
Constructor Details
-
RedisLinkedServerWithPropertiesInner
public RedisLinkedServerWithPropertiesInner()
-
-
Method Details
-
provisioningState
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.- Returns:
- the provisioningState value.
-
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 RedisLinkedServerWithPropertiesInner object itself.
-
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
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 RedisLinkedServerWithPropertiesInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-