RedisLinkedServerWithPropertiesInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. redis. fluent. models. RedisLinkedServerWithPropertiesInner
- com.
- com.
public final class RedisLinkedServerWithPropertiesInner
extends ProxyResource
Response to put/get linked server (with properties) for Redis cache.
Constructor Summary
Constructor | Description |
---|---|
RedisLinkedServerWithPropertiesInner() |
Creates an instance of Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Redis |
fromJson(JsonReader jsonReader)
Reads an instance of Redis |
String |
geoReplicatedPrimaryHostname()
Get the geo |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
linkedRedisCacheId()
Get the linked |
String |
linkedRedisCacheLocation()
Get the linked |
String |
name()
Get the name property: The name of the resource. |
String |
primaryHostname()
Get the primary |
String |
provisioningState()
Get the provisioning |
Replication |
serverRole()
Get the server |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Redis |
withLinkedRedisCacheId(String linkedRedisCacheId)
Set the linked |
Redis |
withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
Set the linked |
Redis |
withServerRole(ReplicationRole serverRole)
Set the server |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
RedisLinkedServerWithPropertiesInner
public RedisLinkedServerWithPropertiesInner()
Creates an instance of RedisLinkedServerWithPropertiesInner class.
Method Details
fromJson
public static RedisLinkedServerWithPropertiesInner fromJson(JsonReader jsonReader)
Reads an instance of RedisLinkedServerWithPropertiesInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RedisLinkedServerWithPropertiesInner.id()Returns:
linkedRedisCacheId
public String linkedRedisCacheId()
Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Returns:
linkedRedisCacheLocation
public String linkedRedisCacheLocation()
Get the linkedRedisCacheLocation property: Location of the linked redis cache.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RedisLinkedServerWithPropertiesInner.name()Returns:
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:
provisioningState
public String provisioningState()
Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
Returns:
serverRole
public ReplicationRole serverRole()
Get the serverRole property: Role of the linked server.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RedisLinkedServerWithPropertiesInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RedisLinkedServerWithPropertiesInner.type()Returns:
validate
public void validate()
Validates the instance.
withLinkedRedisCacheId
public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheId(String linkedRedisCacheId)
Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
Parameters:
Returns:
withLinkedRedisCacheLocation
public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheLocation(String linkedRedisCacheLocation)
Set the linkedRedisCacheLocation property: Location of the linked redis cache.
Parameters:
Returns:
withServerRole
public RedisLinkedServerWithPropertiesInner withServerRole(ReplicationRole serverRole)
Set the serverRole property: Role of the linked server.
Parameters:
Returns:
Applies to
Azure SDK for Java