OperationServiceSpecificationDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. OperationServiceSpecificationDefinition
- com.
Implements
public final class OperationServiceSpecificationDefinition
implements JsonSerializable<OperationServiceSpecificationDefinition>
The definition of Azure Monitoring list.
Constructor Summary
Constructor | Description |
---|---|
OperationServiceSpecificationDefinition() |
Creates an instance of Operation |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
List<Operation |
logSpecifications()
Get the log |
List<Operation |
metricSpecifications()
Get the metric |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications)
Set the log |
Operation |
withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications)
Set the metric |
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:
Returns:
Throws:
logSpecifications
public List
Get the logSpecifications property: A list of Azure Monitoring log definitions.
Returns:
metricSpecifications
public List
Get the metricSpecifications property: A list of Azure Monitoring metrics definition.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLogSpecifications
public OperationServiceSpecificationDefinition withLogSpecifications(List
Set the logSpecifications property: A list of Azure Monitoring log definitions.
Parameters:
Returns:
withMetricSpecifications
public OperationServiceSpecificationDefinition withMetricSpecifications(List
Set the metricSpecifications property: A list of Azure Monitoring metrics definition.
Parameters:
Returns:
Applies to
Azure SDK for Java