
com.azure.resourcemanager.netapp.fluent.models.OperationInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.OperationDisplay;
import com.azure.resourcemanager.netapp.models.ServiceSpecification;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Microsoft.NetApp REST API operation definition. */
@JsonFlatten
@Fluent
public class OperationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
/*
* Operation name: {provider}/{resource}/{operation}
*/
@JsonProperty(value = "name")
private String name;
/*
* Display metadata associated with the operation.
*/
@JsonProperty(value = "display")
private OperationDisplay display;
/*
* The origin of operations.
*/
@JsonProperty(value = "origin")
private String origin;
/*
* One property of operation, include metric specifications.
*/
@JsonProperty(value = "properties.serviceSpecification")
private ServiceSpecification serviceSpecification;
/**
* Get the name property: Operation name: {provider}/{resource}/{operation}.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: Operation name: {provider}/{resource}/{operation}.
*
* @param name the name value to set.
* @return the OperationInner object itself.
*/
public OperationInner withName(String name) {
this.name = name;
return this;
}
/**
* Get the display property: Display metadata associated with the operation.
*
* @return the display value.
*/
public OperationDisplay display() {
return this.display;
}
/**
* Set the display property: Display metadata associated with the operation.
*
* @param display the display value to set.
* @return the OperationInner object itself.
*/
public OperationInner withDisplay(OperationDisplay display) {
this.display = display;
return this;
}
/**
* Get the origin property: The origin of operations.
*
* @return the origin value.
*/
public String origin() {
return this.origin;
}
/**
* Set the origin property: The origin of operations.
*
* @param origin the origin value to set.
* @return the OperationInner object itself.
*/
public OperationInner withOrigin(String origin) {
this.origin = origin;
return this;
}
/**
* Get the serviceSpecification property: One property of operation, include metric specifications.
*
* @return the serviceSpecification value.
*/
public ServiceSpecification serviceSpecification() {
return this.serviceSpecification;
}
/**
* Set the serviceSpecification property: One property of operation, include metric specifications.
*
* @param serviceSpecification the serviceSpecification value to set.
* @return the OperationInner object itself.
*/
public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) {
this.serviceSpecification = serviceSpecification;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (display() != null) {
display().validate();
}
if (serviceSpecification() != null) {
serviceSpecification().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy