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

com.pulumi.azurenative.security.outputs.JitNetworkAccessRequestResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.security.outputs;

import com.pulumi.azurenative.security.outputs.JitNetworkAccessRequestVirtualMachineResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class JitNetworkAccessRequestResponse {
    /**
     * @return The justification for making the initiate request
     * 
     */
    private @Nullable String justification;
    /**
     * @return The identity of the person who made the request
     * 
     */
    private String requestor;
    /**
     * @return The start time of the request in UTC
     * 
     */
    private String startTimeUtc;
    private List virtualMachines;

    private JitNetworkAccessRequestResponse() {}
    /**
     * @return The justification for making the initiate request
     * 
     */
    public Optional justification() {
        return Optional.ofNullable(this.justification);
    }
    /**
     * @return The identity of the person who made the request
     * 
     */
    public String requestor() {
        return this.requestor;
    }
    /**
     * @return The start time of the request in UTC
     * 
     */
    public String startTimeUtc() {
        return this.startTimeUtc;
    }
    public List virtualMachines() {
        return this.virtualMachines;
    }

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

    public static Builder builder(JitNetworkAccessRequestResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String justification;
        private String requestor;
        private String startTimeUtc;
        private List virtualMachines;
        public Builder() {}
        public Builder(JitNetworkAccessRequestResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.justification = defaults.justification;
    	      this.requestor = defaults.requestor;
    	      this.startTimeUtc = defaults.startTimeUtc;
    	      this.virtualMachines = defaults.virtualMachines;
        }

        @CustomType.Setter
        public Builder justification(@Nullable String justification) {

            this.justification = justification;
            return this;
        }
        @CustomType.Setter
        public Builder requestor(String requestor) {
            if (requestor == null) {
              throw new MissingRequiredPropertyException("JitNetworkAccessRequestResponse", "requestor");
            }
            this.requestor = requestor;
            return this;
        }
        @CustomType.Setter
        public Builder startTimeUtc(String startTimeUtc) {
            if (startTimeUtc == null) {
              throw new MissingRequiredPropertyException("JitNetworkAccessRequestResponse", "startTimeUtc");
            }
            this.startTimeUtc = startTimeUtc;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachines(List virtualMachines) {
            if (virtualMachines == null) {
              throw new MissingRequiredPropertyException("JitNetworkAccessRequestResponse", "virtualMachines");
            }
            this.virtualMachines = virtualMachines;
            return this;
        }
        public Builder virtualMachines(JitNetworkAccessRequestVirtualMachineResponse... virtualMachines) {
            return virtualMachines(List.of(virtualMachines));
        }
        public JitNetworkAccessRequestResponse build() {
            final var _resultValue = new JitNetworkAccessRequestResponse();
            _resultValue.justification = justification;
            _resultValue.requestor = requestor;
            _resultValue.startTimeUtc = startTimeUtc;
            _resultValue.virtualMachines = virtualMachines;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy