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

com.pulumi.azure.storage.outputs.LocalUserPermissionScope Maven / Gradle / Ivy

// *** 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.azure.storage.outputs;

import com.pulumi.azure.storage.outputs.LocalUserPermissionScopePermissions;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class LocalUserPermissionScope {
    /**
     * @return A `permissions` block as defined below.
     * 
     */
    private LocalUserPermissionScopePermissions permissions;
    /**
     * @return The container name (when `service` is set to `blob`) or the file share name (when `service` is set to `file`), used by the Storage Account Local User.
     * 
     */
    private String resourceName;
    /**
     * @return The storage service used by this Storage Account Local User. Possible values are `blob` and `file`.
     * 
     */
    private String service;

    private LocalUserPermissionScope() {}
    /**
     * @return A `permissions` block as defined below.
     * 
     */
    public LocalUserPermissionScopePermissions permissions() {
        return this.permissions;
    }
    /**
     * @return The container name (when `service` is set to `blob`) or the file share name (when `service` is set to `file`), used by the Storage Account Local User.
     * 
     */
    public String resourceName() {
        return this.resourceName;
    }
    /**
     * @return The storage service used by this Storage Account Local User. Possible values are `blob` and `file`.
     * 
     */
    public String service() {
        return this.service;
    }

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

    public static Builder builder(LocalUserPermissionScope defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private LocalUserPermissionScopePermissions permissions;
        private String resourceName;
        private String service;
        public Builder() {}
        public Builder(LocalUserPermissionScope defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.permissions = defaults.permissions;
    	      this.resourceName = defaults.resourceName;
    	      this.service = defaults.service;
        }

        @CustomType.Setter
        public Builder permissions(LocalUserPermissionScopePermissions permissions) {
            if (permissions == null) {
              throw new MissingRequiredPropertyException("LocalUserPermissionScope", "permissions");
            }
            this.permissions = permissions;
            return this;
        }
        @CustomType.Setter
        public Builder resourceName(String resourceName) {
            if (resourceName == null) {
              throw new MissingRequiredPropertyException("LocalUserPermissionScope", "resourceName");
            }
            this.resourceName = resourceName;
            return this;
        }
        @CustomType.Setter
        public Builder service(String service) {
            if (service == null) {
              throw new MissingRequiredPropertyException("LocalUserPermissionScope", "service");
            }
            this.service = service;
            return this;
        }
        public LocalUserPermissionScope build() {
            final var _resultValue = new LocalUserPermissionScope();
            _resultValue.permissions = permissions;
            _resultValue.resourceName = resourceName;
            _resultValue.service = service;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy