com.pulumi.azurenative.documentdb.outputs.PermissionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.documentdb.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class PermissionResponse {
/**
* @return An array of data actions that are allowed.
*
*/
private @Nullable List dataActions;
/**
* @return An array of data actions that are denied.
*
*/
private @Nullable List notDataActions;
private PermissionResponse() {}
/**
* @return An array of data actions that are allowed.
*
*/
public List dataActions() {
return this.dataActions == null ? List.of() : this.dataActions;
}
/**
* @return An array of data actions that are denied.
*
*/
public List notDataActions() {
return this.notDataActions == null ? List.of() : this.notDataActions;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PermissionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dataActions;
private @Nullable List notDataActions;
public Builder() {}
public Builder(PermissionResponse defaults) {
Objects.requireNonNull(defaults);
this.dataActions = defaults.dataActions;
this.notDataActions = defaults.notDataActions;
}
@CustomType.Setter
public Builder dataActions(@Nullable List dataActions) {
this.dataActions = dataActions;
return this;
}
public Builder dataActions(String... dataActions) {
return dataActions(List.of(dataActions));
}
@CustomType.Setter
public Builder notDataActions(@Nullable List notDataActions) {
this.notDataActions = notDataActions;
return this;
}
public Builder notDataActions(String... notDataActions) {
return notDataActions(List.of(notDataActions));
}
public PermissionResponse build() {
final var _resultValue = new PermissionResponse();
_resultValue.dataActions = dataActions;
_resultValue.notDataActions = notDataActions;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy