ProviderOperation.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Operation. */
@Fluent
public final class ProviderOperation {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ProviderOperation.class);
/*
* The operation name.
*/
@JsonProperty(value = "name")
private String name;
/*
* The operation display name.
*/
@JsonProperty(value = "displayName")
private String displayName;
/*
* The operation description.
*/
@JsonProperty(value = "description")
private String description;
/*
* The operation origin.
*/
@JsonProperty(value = "origin")
private String origin;
/*
* The operation properties.
*/
@JsonProperty(value = "properties")
private Object properties;
/*
* The dataAction flag to specify the operation type.
*/
@JsonProperty(value = "isDataAction")
private Boolean isDataAction;
/**
* Get the name property: The operation name.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: The operation name.
*
* @param name the name value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withName(String name) {
this.name = name;
return this;
}
/**
* Get the displayName property: The operation display name.
*
* @return the displayName value.
*/
public String displayName() {
return this.displayName;
}
/**
* Set the displayName property: The operation display name.
*
* @param displayName the displayName value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get the description property: The operation description.
*
* @return the description value.
*/
public String description() {
return this.description;
}
/**
* Set the description property: The operation description.
*
* @param description the description value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withDescription(String description) {
this.description = description;
return this;
}
/**
* Get the origin property: The operation origin.
*
* @return the origin value.
*/
public String origin() {
return this.origin;
}
/**
* Set the origin property: The operation origin.
*
* @param origin the origin value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withOrigin(String origin) {
this.origin = origin;
return this;
}
/**
* Get the properties property: The operation properties.
*
* @return the properties value.
*/
public Object properties() {
return this.properties;
}
/**
* Set the properties property: The operation properties.
*
* @param properties the properties value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withProperties(Object properties) {
this.properties = properties;
return this;
}
/**
* Get the isDataAction property: The dataAction flag to specify the operation type.
*
* @return the isDataAction value.
*/
public Boolean isDataAction() {
return this.isDataAction;
}
/**
* Set the isDataAction property: The dataAction flag to specify the operation type.
*
* @param isDataAction the isDataAction value to set.
* @return the ProviderOperation object itself.
*/
public ProviderOperation withIsDataAction(Boolean isDataAction) {
this.isDataAction = isDataAction;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}