PermissionInner.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.fluent.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;
import java.util.List;
/** Role definition permissions. */
@Fluent
public final class PermissionInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PermissionInner.class);
/*
* Allowed actions.
*/
@JsonProperty(value = "actions")
private List<String> actions;
/*
* Denied actions.
*/
@JsonProperty(value = "notActions")
private List<String> notActions;
/*
* Allowed Data actions.
*/
@JsonProperty(value = "dataActions")
private List<String> dataActions;
/*
* Denied Data actions.
*/
@JsonProperty(value = "notDataActions")
private List<String> notDataActions;
/**
* Get the actions property: Allowed actions.
*
* @return the actions value.
*/
public List<String> actions() {
return this.actions;
}
/**
* Set the actions property: Allowed actions.
*
* @param actions the actions value to set.
* @return the PermissionInner object itself.
*/
public PermissionInner withActions(List<String> actions) {
this.actions = actions;
return this;
}
/**
* Get the notActions property: Denied actions.
*
* @return the notActions value.
*/
public List<String> notActions() {
return this.notActions;
}
/**
* Set the notActions property: Denied actions.
*
* @param notActions the notActions value to set.
* @return the PermissionInner object itself.
*/
public PermissionInner withNotActions(List<String> notActions) {
this.notActions = notActions;
return this;
}
/**
* Get the dataActions property: Allowed Data actions.
*
* @return the dataActions value.
*/
public List<String> dataActions() {
return this.dataActions;
}
/**
* Set the dataActions property: Allowed Data actions.
*
* @param dataActions the dataActions value to set.
* @return the PermissionInner object itself.
*/
public PermissionInner withDataActions(List<String> dataActions) {
this.dataActions = dataActions;
return this;
}
/**
* Get the notDataActions property: Denied Data actions.
*
* @return the notDataActions value.
*/
public List<String> notDataActions() {
return this.notDataActions;
}
/**
* Set the notDataActions property: Denied Data actions.
*
* @param notDataActions the notDataActions value to set.
* @return the PermissionInner object itself.
*/
public PermissionInner withNotDataActions(List<String> notDataActions) {
this.notDataActions = notDataActions;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}