
com.azure.resourcemanager.mixedreality.models.OperationDisplay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mixedreality Show documentation
Show all versions of azure-resourcemanager-mixedreality Show documentation
This package contains Microsoft Azure SDK for MixedReality Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Mixed Reality Client. Package tag package-2021-01.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mixedreality.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The object that represents the operation. */
@Fluent
public final class OperationDisplay {
/*
* Service provider: Microsoft.ResourceProvider
*/
@JsonProperty(value = "provider", required = true)
private String provider;
/*
* Resource on which the operation is performed: Profile, endpoint, etc.
*/
@JsonProperty(value = "resource", required = true)
private String resource;
/*
* Operation type: Read, write, delete, etc.
*/
@JsonProperty(value = "operation", required = true)
private String operation;
/*
* Description of operation
*/
@JsonProperty(value = "description", required = true)
private String description;
/** Creates an instance of OperationDisplay class. */
public OperationDisplay() {
}
/**
* Get the provider property: Service provider: Microsoft.ResourceProvider.
*
* @return the provider value.
*/
public String provider() {
return this.provider;
}
/**
* Set the provider property: Service provider: Microsoft.ResourceProvider.
*
* @param provider the provider value to set.
* @return the OperationDisplay object itself.
*/
public OperationDisplay withProvider(String provider) {
this.provider = provider;
return this;
}
/**
* Get the resource property: Resource on which the operation is performed: Profile, endpoint, etc.
*
* @return the resource value.
*/
public String resource() {
return this.resource;
}
/**
* Set the resource property: Resource on which the operation is performed: Profile, endpoint, etc.
*
* @param resource the resource value to set.
* @return the OperationDisplay object itself.
*/
public OperationDisplay withResource(String resource) {
this.resource = resource;
return this;
}
/**
* Get the operation property: Operation type: Read, write, delete, etc.
*
* @return the operation value.
*/
public String operation() {
return this.operation;
}
/**
* Set the operation property: Operation type: Read, write, delete, etc.
*
* @param operation the operation value to set.
* @return the OperationDisplay object itself.
*/
public OperationDisplay withOperation(String operation) {
this.operation = operation;
return this;
}
/**
* Get the description property: Description of operation.
*
* @return the description value.
*/
public String description() {
return this.description;
}
/**
* Set the description property: Description of operation.
*
* @param description the description value to set.
* @return the OperationDisplay object itself.
*/
public OperationDisplay withDescription(String description) {
this.description = description;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (provider() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property provider in model OperationDisplay"));
}
if (resource() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property resource in model OperationDisplay"));
}
if (operation() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property operation in model OperationDisplay"));
}
if (description() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property description in model OperationDisplay"));
}
}
private static final ClientLogger LOGGER = new ClientLogger(OperationDisplay.class);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy