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

com.pulumi.azurenative.timeseriesinsights.AccessPolicyArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.timeseriesinsights.enums.AccessPolicyRole;
import com.pulumi.core.Either;
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 AccessPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccessPolicyArgs Empty = new AccessPolicyArgs();

    /**
     * Name of the access policy.
     * 
     */
    @Import(name="accessPolicyName")
    private @Nullable Output accessPolicyName;

    /**
     * @return Name of the access policy.
     * 
     */
    public Optional> accessPolicyName() {
        return Optional.ofNullable(this.accessPolicyName);
    }

    /**
     * An description of the access policy.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return An description of the access policy.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the Time Series Insights environment associated with the specified resource group.
     * 
     */
    @Import(name="environmentName", required=true)
    private Output environmentName;

    /**
     * @return The name of the Time Series Insights environment associated with the specified resource group.
     * 
     */
    public Output environmentName() {
        return this.environmentName;
    }

    /**
     * The objectId of the principal in Azure Active Directory.
     * 
     */
    @Import(name="principalObjectId")
    private @Nullable Output principalObjectId;

    /**
     * @return The objectId of the principal in Azure Active Directory.
     * 
     */
    public Optional> principalObjectId() {
        return Optional.ofNullable(this.principalObjectId);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The list of roles the principal is assigned on the environment.
     * 
     */
    @Import(name="roles")
    private @Nullable Output>> roles;

    /**
     * @return The list of roles the principal is assigned on the environment.
     * 
     */
    public Optional>>> roles() {
        return Optional.ofNullable(this.roles);
    }

    private AccessPolicyArgs() {}

    private AccessPolicyArgs(AccessPolicyArgs $) {
        this.accessPolicyName = $.accessPolicyName;
        this.description = $.description;
        this.environmentName = $.environmentName;
        this.principalObjectId = $.principalObjectId;
        this.resourceGroupName = $.resourceGroupName;
        this.roles = $.roles;
    }

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

    public static final class Builder {
        private AccessPolicyArgs $;

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

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

        /**
         * @param accessPolicyName Name of the access policy.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(@Nullable Output accessPolicyName) {
            $.accessPolicyName = accessPolicyName;
            return this;
        }

        /**
         * @param accessPolicyName Name of the access policy.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(String accessPolicyName) {
            return accessPolicyName(Output.of(accessPolicyName));
        }

        /**
         * @param description An description of the access policy.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description An description of the access policy.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param environmentName The name of the Time Series Insights environment associated with the specified resource group.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(Output environmentName) {
            $.environmentName = environmentName;
            return this;
        }

        /**
         * @param environmentName The name of the Time Series Insights environment associated with the specified resource group.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(String environmentName) {
            return environmentName(Output.of(environmentName));
        }

        /**
         * @param principalObjectId The objectId of the principal in Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder principalObjectId(@Nullable Output principalObjectId) {
            $.principalObjectId = principalObjectId;
            return this;
        }

        /**
         * @param principalObjectId The objectId of the principal in Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder principalObjectId(String principalObjectId) {
            return principalObjectId(Output.of(principalObjectId));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param roles The list of roles the principal is assigned on the environment.
         * 
         * @return builder
         * 
         */
        public Builder roles(@Nullable Output>> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles The list of roles the principal is assigned on the environment.
         * 
         * @return builder
         * 
         */
        public Builder roles(List> roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles The list of roles the principal is assigned on the environment.
         * 
         * @return builder
         * 
         */
        public Builder roles(Either... roles) {
            return roles(List.of(roles));
        }

        public AccessPolicyArgs build() {
            if ($.environmentName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyArgs", "environmentName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy