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
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.

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

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.

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