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

com.pulumi.azurenative.solutions.JitRequestArgs 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.solutions;

import com.pulumi.azurenative.solutions.inputs.JitAuthorizationPoliciesArgs;
import com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JitRequestArgs Empty = new JitRequestArgs();

    /**
     * The parent application id.
     * 
     */
    @Import(name="applicationResourceId", required=true)
    private Output applicationResourceId;

    /**
     * @return The parent application id.
     * 
     */
    public Output applicationResourceId() {
        return this.applicationResourceId;
    }

    /**
     * The JIT authorization policies.
     * 
     */
    @Import(name="jitAuthorizationPolicies", required=true)
    private Output> jitAuthorizationPolicies;

    /**
     * @return The JIT authorization policies.
     * 
     */
    public Output> jitAuthorizationPolicies() {
        return this.jitAuthorizationPolicies;
    }

    /**
     * The name of the JIT request.
     * 
     */
    @Import(name="jitRequestName")
    private @Nullable Output jitRequestName;

    /**
     * @return The name of the JIT request.
     * 
     */
    public Optional> jitRequestName() {
        return Optional.ofNullable(this.jitRequestName);
    }

    /**
     * The JIT request properties.
     * 
     */
    @Import(name="jitSchedulingPolicy", required=true)
    private Output jitSchedulingPolicy;

    /**
     * @return The JIT request properties.
     * 
     */
    public Output jitSchedulingPolicy() {
        return this.jitSchedulingPolicy;
    }

    /**
     * Resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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;
    }

    /**
     * Resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private JitRequestArgs() {}

    private JitRequestArgs(JitRequestArgs $) {
        this.applicationResourceId = $.applicationResourceId;
        this.jitAuthorizationPolicies = $.jitAuthorizationPolicies;
        this.jitRequestName = $.jitRequestName;
        this.jitSchedulingPolicy = $.jitSchedulingPolicy;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private JitRequestArgs $;

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

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

        /**
         * @param applicationResourceId The parent application id.
         * 
         * @return builder
         * 
         */
        public Builder applicationResourceId(Output applicationResourceId) {
            $.applicationResourceId = applicationResourceId;
            return this;
        }

        /**
         * @param applicationResourceId The parent application id.
         * 
         * @return builder
         * 
         */
        public Builder applicationResourceId(String applicationResourceId) {
            return applicationResourceId(Output.of(applicationResourceId));
        }

        /**
         * @param jitAuthorizationPolicies The JIT authorization policies.
         * 
         * @return builder
         * 
         */
        public Builder jitAuthorizationPolicies(Output> jitAuthorizationPolicies) {
            $.jitAuthorizationPolicies = jitAuthorizationPolicies;
            return this;
        }

        /**
         * @param jitAuthorizationPolicies The JIT authorization policies.
         * 
         * @return builder
         * 
         */
        public Builder jitAuthorizationPolicies(List jitAuthorizationPolicies) {
            return jitAuthorizationPolicies(Output.of(jitAuthorizationPolicies));
        }

        /**
         * @param jitAuthorizationPolicies The JIT authorization policies.
         * 
         * @return builder
         * 
         */
        public Builder jitAuthorizationPolicies(JitAuthorizationPoliciesArgs... jitAuthorizationPolicies) {
            return jitAuthorizationPolicies(List.of(jitAuthorizationPolicies));
        }

        /**
         * @param jitRequestName The name of the JIT request.
         * 
         * @return builder
         * 
         */
        public Builder jitRequestName(@Nullable Output jitRequestName) {
            $.jitRequestName = jitRequestName;
            return this;
        }

        /**
         * @param jitRequestName The name of the JIT request.
         * 
         * @return builder
         * 
         */
        public Builder jitRequestName(String jitRequestName) {
            return jitRequestName(Output.of(jitRequestName));
        }

        /**
         * @param jitSchedulingPolicy The JIT request properties.
         * 
         * @return builder
         * 
         */
        public Builder jitSchedulingPolicy(Output jitSchedulingPolicy) {
            $.jitSchedulingPolicy = jitSchedulingPolicy;
            return this;
        }

        /**
         * @param jitSchedulingPolicy The JIT request properties.
         * 
         * @return builder
         * 
         */
        public Builder jitSchedulingPolicy(JitSchedulingPolicyArgs jitSchedulingPolicy) {
            return jitSchedulingPolicy(Output.of(jitSchedulingPolicy));
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public JitRequestArgs build() {
            if ($.applicationResourceId == null) {
                throw new MissingRequiredPropertyException("JitRequestArgs", "applicationResourceId");
            }
            if ($.jitAuthorizationPolicies == null) {
                throw new MissingRequiredPropertyException("JitRequestArgs", "jitAuthorizationPolicies");
            }
            if ($.jitSchedulingPolicy == null) {
                throw new MissingRequiredPropertyException("JitRequestArgs", "jitSchedulingPolicy");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("JitRequestArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy