ApiOperationPropertiesServiceSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification

Implements

public final class ApiOperationPropertiesServiceSpecification
implements JsonSerializable<ApiOperationPropertiesServiceSpecification>

Specification of the all the metrics provided for a resource type.

Constructor Summary

Constructor Description
ApiOperationPropertiesServiceSpecification()

Creates an instance of ApiOperationPropertiesServiceSpecification class.

Method Summary

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

Reads an instance of ApiOperationPropertiesServiceSpecification from the JsonReader.

List<LogSpecification> logSpecifications()

Get the logSpecifications property: Details about operations related to logs.

List<MetricSpecification> metricSpecifications()

Get the metricSpecifications property: Details about operations related to metrics.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiOperationPropertiesServiceSpecification withLogSpecifications(List<LogSpecification> logSpecifications)

Set the logSpecifications property: Details about operations related to logs.

ApiOperationPropertiesServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications)

Set the metricSpecifications property: Details about operations related to metrics.

Methods inherited from java.lang.Object

Constructor Details

ApiOperationPropertiesServiceSpecification

public ApiOperationPropertiesServiceSpecification()

Creates an instance of ApiOperationPropertiesServiceSpecification class.

Method Details

fromJson

public static ApiOperationPropertiesServiceSpecification fromJson(JsonReader jsonReader)

Reads an instance of ApiOperationPropertiesServiceSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApiOperationPropertiesServiceSpecification 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 ApiOperationPropertiesServiceSpecification.

logSpecifications

public List logSpecifications()

Get the logSpecifications property: Details about operations related to logs.

Returns:

the logSpecifications value.

metricSpecifications

public List metricSpecifications()

Get the metricSpecifications property: Details about operations related to metrics.

Returns:

the metricSpecifications value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogSpecifications

public ApiOperationPropertiesServiceSpecification withLogSpecifications(List logSpecifications)

Set the logSpecifications property: Details about operations related to logs.

Parameters:

logSpecifications - the logSpecifications value to set.

Returns:

the ApiOperationPropertiesServiceSpecification object itself.

withMetricSpecifications

public ApiOperationPropertiesServiceSpecification withMetricSpecifications(List metricSpecifications)

Set the metricSpecifications property: Details about operations related to metrics.

Parameters:

metricSpecifications - the metricSpecifications value to set.

Returns:

the ApiOperationPropertiesServiceSpecification object itself.

Applies to

Azure SDK for Java

Preview