ReplicaInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. webpubsub. fluent. models. ReplicaInner
- com.
- com.
- com.
public final class ReplicaInner
extends Resource
A class represent a replica resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ReplicaInner() |
Creates an instance of Replica |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Replica |
fromJson(JsonReader jsonReader)
Reads an instance of Replica |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
|
Provisioning |
provisioningState()
Get the provisioning |
| String |
regionEndpointEnabled()
Get the region |
| String |
resourceStopped()
Get the resource |
|
Resource |
sku()
Get the sku property: The billing information of the resource. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Replica |
withLocation(String location) |
|
Replica |
withRegionEndpointEnabled(String regionEndpointEnabled)
Set the region |
|
Replica |
withResourceStopped(String resourceStopped)
Set the resource |
|
Replica |
withSku(ResourceSku sku)
Set the sku property: The billing information of the resource. |
|
Replica |
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:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ReplicaInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ReplicaInner.name()Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the resource.
Returns:
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:
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:
sku
public ResourceSku sku()
Get the sku property: The billing information of the resource.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ReplicaInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ReplicaInner.type()Returns:
validate
public void validate()
Validates the instance.
withLocation
public ReplicaInner withLocation(String location)
Overrides:
ReplicaInner.withLocation(String location)Parameters:
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:
Returns:
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:
Returns:
withSku
public ReplicaInner withSku(ResourceSku sku)
Set the sku property: The billing information of the resource.
Parameters:
Returns:
withTags
public ReplicaInner withTags(Map<String,String> tags)
Overrides:
ReplicaInner.withTags(Map<String,String> tags)Parameters: