ServiceSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ServiceSpecification
- com.
Implements
public final class ServiceSpecification
implements JsonSerializable<ServiceSpecification>
Resource metrics service provided by Microsoft.Insights resource provider.
Constructor Summary
Constructor | Description |
---|---|
ServiceSpecification() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
List<Log |
logSpecifications()
Get the log |
List<Metric |
metricSpecifications()
Get the metric |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Service |
withLogSpecifications(List<LogSpecification> logSpecifications)
Set the log |
Service |
withMetricSpecifications(List<MetricSpecification> metricSpecifications)
Set the metric |
Methods inherited from java.lang.Object
Constructor Details
ServiceSpecification
public ServiceSpecification()
Creates an instance of ServiceSpecification class.
Method Details
fromJson
public static ServiceSpecification fromJson(JsonReader jsonReader)
Reads an instance of ServiceSpecification from the JsonReader.
Parameters:
Returns:
Throws:
logSpecifications
public List
Get the logSpecifications property: The logSpecifications property.
Returns:
metricSpecifications
public List
Get the metricSpecifications property: The metricSpecifications property.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLogSpecifications
public ServiceSpecification withLogSpecifications(List
Set the logSpecifications property: The logSpecifications property.
Parameters:
Returns:
withMetricSpecifications
public ServiceSpecification withMetricSpecifications(List
Set the metricSpecifications property: The metricSpecifications property.
Parameters:
Returns:
Applies to
Azure SDK for Java