com.azure.resourcemanager.network.models.OperationPropertiesFormatServiceSpecification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Specification of the service.
*/
@Fluent
public final class OperationPropertiesFormatServiceSpecification {
/*
* Operation service specification.
*/
@JsonProperty(value = "metricSpecifications")
private List metricSpecifications;
/*
* Operation log specification.
*/
@JsonProperty(value = "logSpecifications")
private List logSpecifications;
/**
* Creates an instance of OperationPropertiesFormatServiceSpecification class.
*/
public OperationPropertiesFormatServiceSpecification() {
}
/**
* Get the metricSpecifications property: Operation service specification.
*
* @return the metricSpecifications value.
*/
public List metricSpecifications() {
return this.metricSpecifications;
}
/**
* Set the metricSpecifications property: Operation service specification.
*
* @param metricSpecifications the metricSpecifications value to set.
* @return the OperationPropertiesFormatServiceSpecification object itself.
*/
public OperationPropertiesFormatServiceSpecification
withMetricSpecifications(List metricSpecifications) {
this.metricSpecifications = metricSpecifications;
return this;
}
/**
* Get the logSpecifications property: Operation log specification.
*
* @return the logSpecifications value.
*/
public List logSpecifications() {
return this.logSpecifications;
}
/**
* Set the logSpecifications property: Operation log specification.
*
* @param logSpecifications the logSpecifications value to set.
* @return the OperationPropertiesFormatServiceSpecification object itself.
*/
public OperationPropertiesFormatServiceSpecification
withLogSpecifications(List logSpecifications) {
this.logSpecifications = logSpecifications;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (metricSpecifications() != null) {
metricSpecifications().forEach(e -> e.validate());
}
if (logSpecifications() != null) {
logSpecifications().forEach(e -> e.validate());
}
}
}