Partager via


OperationPropertiesFormatServiceSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.OperationPropertiesFormatServiceSpecification

Implements

public final class OperationPropertiesFormatServiceSpecification
implements JsonSerializable<OperationPropertiesFormatServiceSpecification>

Specification of the service.

Constructor Summary

Constructor Description
OperationPropertiesFormatServiceSpecification()

Creates an instance of OperationPropertiesFormatServiceSpecification class.

Method Summary

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

Reads an instance of OperationPropertiesFormatServiceSpecification from the JsonReader.

List<LogSpecification> logSpecifications()

Get the logSpecifications property: Operation log specification.

List<MetricSpecification> metricSpecifications()

Get the metricSpecifications property: Operation service specification.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationPropertiesFormatServiceSpecification withLogSpecifications(List<LogSpecification> logSpecifications)

Set the logSpecifications property: Operation log specification.

OperationPropertiesFormatServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications)

Set the metricSpecifications property: Operation service specification.

Methods inherited from java.lang.Object

Constructor Details

OperationPropertiesFormatServiceSpecification

public OperationPropertiesFormatServiceSpecification()

Creates an instance of OperationPropertiesFormatServiceSpecification class.

Method Details

fromJson

public static OperationPropertiesFormatServiceSpecification fromJson(JsonReader jsonReader)

Reads an instance of OperationPropertiesFormatServiceSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logSpecifications

public List logSpecifications()

Get the logSpecifications property: Operation log specification.

Returns:

the logSpecifications value.

metricSpecifications

public List metricSpecifications()

Get the metricSpecifications property: Operation service specification.

Returns:

the metricSpecifications value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogSpecifications

public OperationPropertiesFormatServiceSpecification withLogSpecifications(List logSpecifications)

Set the logSpecifications property: Operation log specification.

Parameters:

logSpecifications - the logSpecifications value to set.

Returns:

the OperationPropertiesFormatServiceSpecification object itself.

withMetricSpecifications

public OperationPropertiesFormatServiceSpecification withMetricSpecifications(List metricSpecifications)

Set the metricSpecifications property: Operation service specification.

Parameters:

metricSpecifications - the metricSpecifications value to set.

Returns:

the OperationPropertiesFormatServiceSpecification object itself.

Applies to