All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.outputs.ResourceProviderRequiredPermissionsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.securityinsights.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceProviderRequiredPermissionsResponse {
    /**
     * @return Gets or sets a value indicating whether the permission is custom actions (POST).
     * 
     */
    private @Nullable Boolean action;
    /**
     * @return Gets or sets a value indicating whether the permission is delete action (DELETE).
     * 
     */
    private @Nullable Boolean delete;
    /**
     * @return Gets or sets a value indicating whether the permission is read action (GET).
     * 
     */
    private @Nullable Boolean read;
    /**
     * @return Gets or sets a value indicating whether the permission is write action (PUT or PATCH).
     * 
     */
    private @Nullable Boolean write;

    private ResourceProviderRequiredPermissionsResponse() {}
    /**
     * @return Gets or sets a value indicating whether the permission is custom actions (POST).
     * 
     */
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return Gets or sets a value indicating whether the permission is delete action (DELETE).
     * 
     */
    public Optional delete() {
        return Optional.ofNullable(this.delete);
    }
    /**
     * @return Gets or sets a value indicating whether the permission is read action (GET).
     * 
     */
    public Optional read() {
        return Optional.ofNullable(this.read);
    }
    /**
     * @return Gets or sets a value indicating whether the permission is write action (PUT or PATCH).
     * 
     */
    public Optional write() {
        return Optional.ofNullable(this.write);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ResourceProviderRequiredPermissionsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean action;
        private @Nullable Boolean delete;
        private @Nullable Boolean read;
        private @Nullable Boolean write;
        public Builder() {}
        public Builder(ResourceProviderRequiredPermissionsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.delete = defaults.delete;
    	      this.read = defaults.read;
    	      this.write = defaults.write;
        }

        @CustomType.Setter
        public Builder action(@Nullable Boolean action) {

            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder delete(@Nullable Boolean delete) {

            this.delete = delete;
            return this;
        }
        @CustomType.Setter
        public Builder read(@Nullable Boolean read) {

            this.read = read;
            return this;
        }
        @CustomType.Setter
        public Builder write(@Nullable Boolean write) {

            this.write = write;
            return this;
        }
        public ResourceProviderRequiredPermissionsResponse build() {
            final var _resultValue = new ResourceProviderRequiredPermissionsResponse();
            _resultValue.action = action;
            _resultValue.delete = delete;
            _resultValue.read = read;
            _resultValue.write = write;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy