Condividi tramite


ObjectReplicationPolicyPropertiesMetrics Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ObjectReplicationPolicyPropertiesMetrics

Implements

public final class ObjectReplicationPolicyPropertiesMetrics
implements JsonSerializable<ObjectReplicationPolicyPropertiesMetrics>

Optional. The object replication policy metrics feature options.

Constructor Summary

Constructor Description
ObjectReplicationPolicyPropertiesMetrics()

Creates an instance of ObjectReplicationPolicyPropertiesMetrics class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates whether object replication metrics feature is enabled for the policy.

static ObjectReplicationPolicyPropertiesMetrics fromJson(JsonReader jsonReader)

Reads an instance of ObjectReplicationPolicyPropertiesMetrics from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ObjectReplicationPolicyPropertiesMetrics withEnabled(Boolean enabled)

Set the enabled property: Indicates whether object replication metrics feature is enabled for the policy.

Methods inherited from java.lang.Object

Constructor Details

ObjectReplicationPolicyPropertiesMetrics

public ObjectReplicationPolicyPropertiesMetrics()

Creates an instance of ObjectReplicationPolicyPropertiesMetrics class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates whether object replication metrics feature is enabled for the policy.

Returns:

the enabled value.

fromJson

public static ObjectReplicationPolicyPropertiesMetrics fromJson(JsonReader jsonReader)

Reads an instance of ObjectReplicationPolicyPropertiesMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ObjectReplicationPolicyPropertiesMetrics.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ObjectReplicationPolicyPropertiesMetrics withEnabled(Boolean enabled)

Set the enabled property: Indicates whether object replication metrics feature is enabled for the policy.

Parameters:

enabled - the enabled value to set.

Returns:

the ObjectReplicationPolicyPropertiesMetrics object itself.

Applies to