Compartilhar via


OperationServiceSpecificationDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.OperationServiceSpecificationDefinition

Implements

public final class OperationServiceSpecificationDefinition
implements JsonSerializable<OperationServiceSpecificationDefinition>

The definition of Azure Monitoring list.

Constructor Summary

Constructor Description
OperationServiceSpecificationDefinition()

Creates an instance of OperationServiceSpecificationDefinition class.

Method Summary

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

Reads an instance of OperationServiceSpecificationDefinition from the JsonReader.

List<OperationLogSpecificationDefinition> logSpecifications()

Get the logSpecifications property: A list of Azure Monitoring log definitions.

List<OperationMetricSpecificationDefinition> metricSpecifications()

Get the metricSpecifications property: A list of Azure Monitoring metrics definition.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationServiceSpecificationDefinition withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications)

Set the logSpecifications property: A list of Azure Monitoring log definitions.

OperationServiceSpecificationDefinition withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications)

Set the metricSpecifications property: A list of Azure Monitoring metrics definition.

Methods inherited from java.lang.Object

Constructor Details

OperationServiceSpecificationDefinition

public OperationServiceSpecificationDefinition()

Creates an instance of OperationServiceSpecificationDefinition class.

Method Details

fromJson

public static OperationServiceSpecificationDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationServiceSpecificationDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logSpecifications

public List logSpecifications()

Get the logSpecifications property: A list of Azure Monitoring log definitions.

Returns:

the logSpecifications value.

metricSpecifications

public List metricSpecifications()

Get the metricSpecifications property: A list of Azure Monitoring metrics definition.

Returns:

the metricSpecifications value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLogSpecifications

public OperationServiceSpecificationDefinition withLogSpecifications(List logSpecifications)

Set the logSpecifications property: A list of Azure Monitoring log definitions.

Parameters:

logSpecifications - the logSpecifications value to set.

Returns:

the OperationServiceSpecificationDefinition object itself.

withMetricSpecifications

public OperationServiceSpecificationDefinition withMetricSpecifications(List metricSpecifications)

Set the metricSpecifications property: A list of Azure Monitoring metrics definition.

Parameters:

metricSpecifications - the metricSpecifications value to set.

Returns:

the OperationServiceSpecificationDefinition object itself.

Applies to