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

com.pulumi.azurenative.containerregistry.ScopeMapArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.containerregistry;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ScopeMapArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScopeMapArgs Empty = new ScopeMapArgs();

    /**
     * The list of scoped permissions for registry artifacts.
     * E.g. repositories/repository-name/content/read,
     * repositories/repository-name/metadata/write
     * 
     */
    @Import(name="actions", required=true)
    private Output> actions;

    /**
     * @return The list of scoped permissions for registry artifacts.
     * E.g. repositories/repository-name/content/read,
     * repositories/repository-name/metadata/write
     * 
     */
    public Output> actions() {
        return this.actions;
    }

    /**
     * The user friendly description of the scope map.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The user friendly description of the scope map.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the scope map.
     * 
     */
    @Import(name="scopeMapName")
    private @Nullable Output scopeMapName;

    /**
     * @return The name of the scope map.
     * 
     */
    public Optional> scopeMapName() {
        return Optional.ofNullable(this.scopeMapName);
    }

    private ScopeMapArgs() {}

    private ScopeMapArgs(ScopeMapArgs $) {
        this.actions = $.actions;
        this.description = $.description;
        this.registryName = $.registryName;
        this.resourceGroupName = $.resourceGroupName;
        this.scopeMapName = $.scopeMapName;
    }

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

    public static final class Builder {
        private ScopeMapArgs $;

        public Builder() {
            $ = new ScopeMapArgs();
        }

        public Builder(ScopeMapArgs defaults) {
            $ = new ScopeMapArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param actions The list of scoped permissions for registry artifacts.
         * E.g. repositories/repository-name/content/read,
         * repositories/repository-name/metadata/write
         * 
         * @return builder
         * 
         */
        public Builder actions(Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions The list of scoped permissions for registry artifacts.
         * E.g. repositories/repository-name/content/read,
         * repositories/repository-name/metadata/write
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions The list of scoped permissions for registry artifacts.
         * E.g. repositories/repository-name/content/read,
         * repositories/repository-name/metadata/write
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param description The user friendly description of the scope map.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The user friendly description of the scope map.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param scopeMapName The name of the scope map.
         * 
         * @return builder
         * 
         */
        public Builder scopeMapName(@Nullable Output scopeMapName) {
            $.scopeMapName = scopeMapName;
            return this;
        }

        /**
         * @param scopeMapName The name of the scope map.
         * 
         * @return builder
         * 
         */
        public Builder scopeMapName(String scopeMapName) {
            return scopeMapName(Output.of(scopeMapName));
        }

        public ScopeMapArgs build() {
            if ($.actions == null) {
                throw new MissingRequiredPropertyException("ScopeMapArgs", "actions");
            }
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("ScopeMapArgs", "registryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ScopeMapArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy