Class ServiceSpecification
java.lang.Object
com.azure.resourcemanager.appservice.models.ServiceSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceSpecification>
public final class ServiceSpecification
extends Object
implements com.azure.json.JsonSerializable<ServiceSpecification>
Resource metrics service provided by Microsoft.Insights resource provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceSpecification from the JsonReader.Get the logSpecifications property: The logSpecifications property.Get the metricSpecifications property: The metricSpecifications property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLogSpecifications(List<LogSpecification> logSpecifications) Set the logSpecifications property: The logSpecifications property.withMetricSpecifications(List<MetricSpecification> metricSpecifications) Set the metricSpecifications property: The metricSpecifications property.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
-
ServiceSpecification
public ServiceSpecification()Creates an instance of ServiceSpecification class.
-
-
Method Details
-
metricSpecifications
Get the metricSpecifications property: The metricSpecifications property.- Returns:
- the metricSpecifications value.
-
withMetricSpecifications
public ServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications) Set the metricSpecifications property: The metricSpecifications property.- Parameters:
metricSpecifications- the metricSpecifications value to set.- Returns:
- the ServiceSpecification object itself.
-
logSpecifications
Get the logSpecifications property: The logSpecifications property.- Returns:
- the logSpecifications value.
-
withLogSpecifications
Set the logSpecifications property: The logSpecifications property.- Parameters:
logSpecifications- the logSpecifications value to set.- Returns:
- the ServiceSpecification 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<ServiceSpecification>- Throws:
IOException
-
fromJson
public static ServiceSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-