ServiceSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ServiceSpecification

Implements

public final class ServiceSpecification
implements JsonSerializable<ServiceSpecification>

Resource metrics service provided by Microsoft.Insights resource provider.

Constructor Summary

Constructor Description
ServiceSpecification()

Creates an instance of ServiceSpecification class.

Method Summary

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

Reads an instance of ServiceSpecification from the JsonReader.

List<LogSpecification> logSpecifications()

Get the logSpecifications property: The logSpecifications property.

List<MetricSpecification> metricSpecifications()

Get the metricSpecifications property: The metricSpecifications property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceSpecification withLogSpecifications(List<LogSpecification> logSpecifications)

Set the logSpecifications property: The logSpecifications property.

ServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications)

Set the metricSpecifications property: The metricSpecifications property.

Methods inherited from java.lang.Object

Constructor Details

ServiceSpecification

public ServiceSpecification()

Creates an instance of ServiceSpecification class.

Method Details

fromJson

public static ServiceSpecification fromJson(JsonReader jsonReader)

Reads an instance of ServiceSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logSpecifications

public List logSpecifications()

Get the logSpecifications property: The logSpecifications property.

Returns:

the logSpecifications value.

metricSpecifications

public List metricSpecifications()

Get the metricSpecifications property: The metricSpecifications property.

Returns:

the metricSpecifications value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogSpecifications

public ServiceSpecification withLogSpecifications(List logSpecifications)

Set the logSpecifications property: The logSpecifications property.

Parameters:

logSpecifications - the logSpecifications value to set.

Returns:

the ServiceSpecification object itself.

withMetricSpecifications

public ServiceSpecification withMetricSpecifications(List metricSpecifications)

Set the metricSpecifications property: The metricSpecifications property.

Parameters:

metricSpecifications - the metricSpecifications value to set.

Returns:

the ServiceSpecification object itself.

Applies to