Class RedisLinkedServerCreateParameters
- 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 Constructor Description RedisLinkedServerCreateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringlinkedRedisCacheId()Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.StringlinkedRedisCacheLocation()Get the linkedRedisCacheLocation property: Location of the linked redis cache.ReplicationRoleserverRole()Get the serverRole property: Role of the linked server.voidvalidate()Validates the instance.RedisLinkedServerCreateParameterswithLinkedRedisCacheId(String linkedRedisCacheId)Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.RedisLinkedServerCreateParameterswithLinkedRedisCacheLocation(String linkedRedisCacheLocation)Set the linkedRedisCacheLocation property: Location of the linked redis cache.RedisLinkedServerCreateParameterswithServerRole(ReplicationRole serverRole)Set the serverRole property: Role of the linked server.
-
-
-
Method Detail
-
linkedRedisCacheId
public String linkedRedisCacheId()
Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.- Returns:
- the linkedRedisCacheId value.
-
withLinkedRedisCacheId
public RedisLinkedServerCreateParameters withLinkedRedisCacheId(String linkedRedisCacheId)
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
public RedisLinkedServerCreateParameters withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
Set the linkedRedisCacheLocation property: Location of the linked redis cache.- Parameters:
linkedRedisCacheLocation- the linkedRedisCacheLocation value to set.- Returns:
- the RedisLinkedServerCreateParameters object itself.
-
serverRole
public ReplicationRole serverRole()
Get the serverRole property: Role of the linked server.- Returns:
- the serverRole value.
-
withServerRole
public RedisLinkedServerCreateParameters withServerRole(ReplicationRole serverRole)
Set the serverRole property: Role of the linked server.- Parameters:
serverRole- the serverRole value to set.- Returns:
- the RedisLinkedServerCreateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-