ReplicaInner Class

public final class ReplicaInner
extends Resource

A class represent a replica resource.

Constructor Summary

Constructor Description
ReplicaInner()

Creates an instance of ReplicaInner class.

Method Summary

Modifier and Type Method and Description
static ReplicaInner fromJson(JsonReader jsonReader)

Reads an instance of ReplicaInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

String regionEndpointEnabled()

Get the regionEndpointEnabled property: Enable or disable the regional endpoint.

String resourceStopped()

Get the resourceStopped property: Stop or start the resource.

ResourceSku sku()

Get the sku property: The billing information of the resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ReplicaInner withLocation(String location)
ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled)

Set the regionEndpointEnabled property: Enable or disable the regional endpoint.

ReplicaInner withResourceStopped(String resourceStopped)

Set the resourceStopped property: Stop or start the resource.

ReplicaInner withSku(ResourceSku sku)

Set the sku property: The billing information of the resource.

ReplicaInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ReplicaInner

public ReplicaInner()

Creates an instance of ReplicaInner class.

Method Details

fromJson

public static ReplicaInner fromJson(JsonReader jsonReader)

Reads an instance of ReplicaInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ReplicaInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ReplicaInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ReplicaInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

regionEndpointEnabled

public String regionEndpointEnabled()

Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.

Returns:

the regionEndpointEnabled value.

resourceStopped

public String resourceStopped()

Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.

Returns:

the resourceStopped value.

sku

public ResourceSku sku()

Get the sku property: The billing information of the resource.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ReplicaInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ReplicaInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public ReplicaInner withLocation(String location)

Overrides:

ReplicaInner.withLocation(String location)

Parameters:

location

withRegionEndpointEnabled

public ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled)

Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.

Parameters:

regionEndpointEnabled - the regionEndpointEnabled value to set.

Returns:

the ReplicaInner object itself.

withResourceStopped

public ReplicaInner withResourceStopped(String resourceStopped)

Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.

Parameters:

resourceStopped - the resourceStopped value to set.

Returns:

the ReplicaInner object itself.

withSku

public ReplicaInner withSku(ResourceSku sku)

Set the sku property: The billing information of the resource.

Parameters:

sku - the sku value to set.

Returns:

the ReplicaInner object itself.

withTags

public ReplicaInner withTags(Map<String,String> tags)

Overrides:

ReplicaInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to