Class OperationServiceSpecificationDefinition
java.lang.Object
com.azure.resourcemanager.containerregistry.models.OperationServiceSpecificationDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationServiceSpecificationDefinition>
public final class OperationServiceSpecificationDefinition
extends Object
implements com.azure.json.JsonSerializable<OperationServiceSpecificationDefinition>
The definition of Azure Monitoring list.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationServiceSpecificationDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationServiceSpecificationDefinition from the JsonReader.Get the logSpecifications property: A list of Azure Monitoring log definitions.Get the metricSpecifications property: A list of Azure Monitoring metrics definition.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications) Set the logSpecifications property: A list of Azure Monitoring log definitions.withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications) Set the metricSpecifications property: A list of Azure Monitoring metrics definition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationServiceSpecificationDefinition
public OperationServiceSpecificationDefinition()Creates an instance of OperationServiceSpecificationDefinition class.
-
-
Method Details
-
metricSpecifications
Get the metricSpecifications property: A list of Azure Monitoring metrics definition.- Returns:
- the metricSpecifications value.
-
withMetricSpecifications
public OperationServiceSpecificationDefinition withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications) Set the metricSpecifications property: A list of Azure Monitoring metrics definition.- Parameters:
metricSpecifications- the metricSpecifications value to set.- Returns:
- the OperationServiceSpecificationDefinition object itself.
-
logSpecifications
Get the logSpecifications property: A list of Azure Monitoring log definitions.- Returns:
- the logSpecifications value.
-
withLogSpecifications
public OperationServiceSpecificationDefinition withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications) Set the logSpecifications property: A list of Azure Monitoring log definitions.- Parameters:
logSpecifications- the logSpecifications value to set.- Returns:
- the OperationServiceSpecificationDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationServiceSpecificationDefinition>- Throws:
IOException
-
fromJson
public static OperationServiceSpecificationDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-