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

com.pulumi.azurenative.security.inputs.JitNetworkAccessRequestArgs 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.azurenative.security.inputs;

import com.pulumi.azurenative.security.inputs.JitNetworkAccessRequestVirtualMachineArgs;
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 JitNetworkAccessRequestArgs extends com.pulumi.resources.ResourceArgs {

    public static final JitNetworkAccessRequestArgs Empty = new JitNetworkAccessRequestArgs();

    /**
     * The justification for making the initiate request
     * 
     */
    @Import(name="justification")
    private @Nullable Output justification;

    /**
     * @return The justification for making the initiate request
     * 
     */
    public Optional> justification() {
        return Optional.ofNullable(this.justification);
    }

    /**
     * The identity of the person who made the request
     * 
     */
    @Import(name="requestor", required=true)
    private Output requestor;

    /**
     * @return The identity of the person who made the request
     * 
     */
    public Output requestor() {
        return this.requestor;
    }

    /**
     * The start time of the request in UTC
     * 
     */
    @Import(name="startTimeUtc", required=true)
    private Output startTimeUtc;

    /**
     * @return The start time of the request in UTC
     * 
     */
    public Output startTimeUtc() {
        return this.startTimeUtc;
    }

    @Import(name="virtualMachines", required=true)
    private Output> virtualMachines;

    public Output> virtualMachines() {
        return this.virtualMachines;
    }

    private JitNetworkAccessRequestArgs() {}

    private JitNetworkAccessRequestArgs(JitNetworkAccessRequestArgs $) {
        this.justification = $.justification;
        this.requestor = $.requestor;
        this.startTimeUtc = $.startTimeUtc;
        this.virtualMachines = $.virtualMachines;
    }

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

    public static final class Builder {
        private JitNetworkAccessRequestArgs $;

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

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

        /**
         * @param justification The justification for making the initiate request
         * 
         * @return builder
         * 
         */
        public Builder justification(@Nullable Output justification) {
            $.justification = justification;
            return this;
        }

        /**
         * @param justification The justification for making the initiate request
         * 
         * @return builder
         * 
         */
        public Builder justification(String justification) {
            return justification(Output.of(justification));
        }

        /**
         * @param requestor The identity of the person who made the request
         * 
         * @return builder
         * 
         */
        public Builder requestor(Output requestor) {
            $.requestor = requestor;
            return this;
        }

        /**
         * @param requestor The identity of the person who made the request
         * 
         * @return builder
         * 
         */
        public Builder requestor(String requestor) {
            return requestor(Output.of(requestor));
        }

        /**
         * @param startTimeUtc The start time of the request in UTC
         * 
         * @return builder
         * 
         */
        public Builder startTimeUtc(Output startTimeUtc) {
            $.startTimeUtc = startTimeUtc;
            return this;
        }

        /**
         * @param startTimeUtc The start time of the request in UTC
         * 
         * @return builder
         * 
         */
        public Builder startTimeUtc(String startTimeUtc) {
            return startTimeUtc(Output.of(startTimeUtc));
        }

        public Builder virtualMachines(Output> virtualMachines) {
            $.virtualMachines = virtualMachines;
            return this;
        }

        public Builder virtualMachines(List virtualMachines) {
            return virtualMachines(Output.of(virtualMachines));
        }

        public Builder virtualMachines(JitNetworkAccessRequestVirtualMachineArgs... virtualMachines) {
            return virtualMachines(List.of(virtualMachines));
        }

        public JitNetworkAccessRequestArgs build() {
            if ($.requestor == null) {
                throw new MissingRequiredPropertyException("JitNetworkAccessRequestArgs", "requestor");
            }
            if ($.startTimeUtc == null) {
                throw new MissingRequiredPropertyException("JitNetworkAccessRequestArgs", "startTimeUtc");
            }
            if ($.virtualMachines == null) {
                throw new MissingRequiredPropertyException("JitNetworkAccessRequestArgs", "virtualMachines");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy