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

com.pulumi.azurenative.network.BastionHostArgs 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.network;

import com.pulumi.azurenative.network.inputs.BastionHostIPConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SkuArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
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 BastionHostArgs extends com.pulumi.resources.ResourceArgs {

    public static final BastionHostArgs Empty = new BastionHostArgs();

    /**
     * The name of the Bastion Host.
     * 
     */
    @Import(name="bastionHostName")
    private @Nullable Output bastionHostName;

    /**
     * @return The name of the Bastion Host.
     * 
     */
    public Optional> bastionHostName() {
        return Optional.ofNullable(this.bastionHostName);
    }

    /**
     * Enable/Disable Copy/Paste feature of the Bastion Host resource.
     * 
     */
    @Import(name="disableCopyPaste")
    private @Nullable Output disableCopyPaste;

    /**
     * @return Enable/Disable Copy/Paste feature of the Bastion Host resource.
     * 
     */
    public Optional> disableCopyPaste() {
        return Optional.ofNullable(this.disableCopyPaste);
    }

    /**
     * FQDN for the endpoint on which bastion host is accessible.
     * 
     */
    @Import(name="dnsName")
    private @Nullable Output dnsName;

    /**
     * @return FQDN for the endpoint on which bastion host is accessible.
     * 
     */
    public Optional> dnsName() {
        return Optional.ofNullable(this.dnsName);
    }

    /**
     * Enable/Disable File Copy feature of the Bastion Host resource.
     * 
     */
    @Import(name="enableFileCopy")
    private @Nullable Output enableFileCopy;

    /**
     * @return Enable/Disable File Copy feature of the Bastion Host resource.
     * 
     */
    public Optional> enableFileCopy() {
        return Optional.ofNullable(this.enableFileCopy);
    }

    /**
     * Enable/Disable IP Connect feature of the Bastion Host resource.
     * 
     */
    @Import(name="enableIpConnect")
    private @Nullable Output enableIpConnect;

    /**
     * @return Enable/Disable IP Connect feature of the Bastion Host resource.
     * 
     */
    public Optional> enableIpConnect() {
        return Optional.ofNullable(this.enableIpConnect);
    }

    /**
     * Enable/Disable Kerberos feature of the Bastion Host resource.
     * 
     */
    @Import(name="enableKerberos")
    private @Nullable Output enableKerberos;

    /**
     * @return Enable/Disable Kerberos feature of the Bastion Host resource.
     * 
     */
    public Optional> enableKerberos() {
        return Optional.ofNullable(this.enableKerberos);
    }

    /**
     * Enable/Disable Shareable Link of the Bastion Host resource.
     * 
     */
    @Import(name="enableShareableLink")
    private @Nullable Output enableShareableLink;

    /**
     * @return Enable/Disable Shareable Link of the Bastion Host resource.
     * 
     */
    public Optional> enableShareableLink() {
        return Optional.ofNullable(this.enableShareableLink);
    }

    /**
     * Enable/Disable Tunneling feature of the Bastion Host resource.
     * 
     */
    @Import(name="enableTunneling")
    private @Nullable Output enableTunneling;

    /**
     * @return Enable/Disable Tunneling feature of the Bastion Host resource.
     * 
     */
    public Optional> enableTunneling() {
        return Optional.ofNullable(this.enableTunneling);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

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

    /**
     * IP configuration of the Bastion Host resource.
     * 
     */
    @Import(name="ipConfigurations")
    private @Nullable Output> ipConfigurations;

    /**
     * @return IP configuration of the Bastion Host resource.
     * 
     */
    public Optional>> ipConfigurations() {
        return Optional.ofNullable(this.ipConfigurations);
    }

    /**
     * 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.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

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

    /**
     * The scale units for the Bastion Host resource.
     * 
     */
    @Import(name="scaleUnits")
    private @Nullable Output scaleUnits;

    /**
     * @return The scale units for the Bastion Host resource.
     * 
     */
    public Optional> scaleUnits() {
        return Optional.ofNullable(this.scaleUnits);
    }

    /**
     * The sku of this Bastion Host.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The sku of this Bastion Host.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    private BastionHostArgs() {}

    private BastionHostArgs(BastionHostArgs $) {
        this.bastionHostName = $.bastionHostName;
        this.disableCopyPaste = $.disableCopyPaste;
        this.dnsName = $.dnsName;
        this.enableFileCopy = $.enableFileCopy;
        this.enableIpConnect = $.enableIpConnect;
        this.enableKerberos = $.enableKerberos;
        this.enableShareableLink = $.enableShareableLink;
        this.enableTunneling = $.enableTunneling;
        this.id = $.id;
        this.ipConfigurations = $.ipConfigurations;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.scaleUnits = $.scaleUnits;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private BastionHostArgs $;

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

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

        /**
         * @param bastionHostName The name of the Bastion Host.
         * 
         * @return builder
         * 
         */
        public Builder bastionHostName(@Nullable Output bastionHostName) {
            $.bastionHostName = bastionHostName;
            return this;
        }

        /**
         * @param bastionHostName The name of the Bastion Host.
         * 
         * @return builder
         * 
         */
        public Builder bastionHostName(String bastionHostName) {
            return bastionHostName(Output.of(bastionHostName));
        }

        /**
         * @param disableCopyPaste Enable/Disable Copy/Paste feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder disableCopyPaste(@Nullable Output disableCopyPaste) {
            $.disableCopyPaste = disableCopyPaste;
            return this;
        }

        /**
         * @param disableCopyPaste Enable/Disable Copy/Paste feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder disableCopyPaste(Boolean disableCopyPaste) {
            return disableCopyPaste(Output.of(disableCopyPaste));
        }

        /**
         * @param dnsName FQDN for the endpoint on which bastion host is accessible.
         * 
         * @return builder
         * 
         */
        public Builder dnsName(@Nullable Output dnsName) {
            $.dnsName = dnsName;
            return this;
        }

        /**
         * @param dnsName FQDN for the endpoint on which bastion host is accessible.
         * 
         * @return builder
         * 
         */
        public Builder dnsName(String dnsName) {
            return dnsName(Output.of(dnsName));
        }

        /**
         * @param enableFileCopy Enable/Disable File Copy feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableFileCopy(@Nullable Output enableFileCopy) {
            $.enableFileCopy = enableFileCopy;
            return this;
        }

        /**
         * @param enableFileCopy Enable/Disable File Copy feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableFileCopy(Boolean enableFileCopy) {
            return enableFileCopy(Output.of(enableFileCopy));
        }

        /**
         * @param enableIpConnect Enable/Disable IP Connect feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableIpConnect(@Nullable Output enableIpConnect) {
            $.enableIpConnect = enableIpConnect;
            return this;
        }

        /**
         * @param enableIpConnect Enable/Disable IP Connect feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableIpConnect(Boolean enableIpConnect) {
            return enableIpConnect(Output.of(enableIpConnect));
        }

        /**
         * @param enableKerberos Enable/Disable Kerberos feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableKerberos(@Nullable Output enableKerberos) {
            $.enableKerberos = enableKerberos;
            return this;
        }

        /**
         * @param enableKerberos Enable/Disable Kerberos feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableKerberos(Boolean enableKerberos) {
            return enableKerberos(Output.of(enableKerberos));
        }

        /**
         * @param enableShareableLink Enable/Disable Shareable Link of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableShareableLink(@Nullable Output enableShareableLink) {
            $.enableShareableLink = enableShareableLink;
            return this;
        }

        /**
         * @param enableShareableLink Enable/Disable Shareable Link of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableShareableLink(Boolean enableShareableLink) {
            return enableShareableLink(Output.of(enableShareableLink));
        }

        /**
         * @param enableTunneling Enable/Disable Tunneling feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableTunneling(@Nullable Output enableTunneling) {
            $.enableTunneling = enableTunneling;
            return this;
        }

        /**
         * @param enableTunneling Enable/Disable Tunneling feature of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder enableTunneling(Boolean enableTunneling) {
            return enableTunneling(Output.of(enableTunneling));
        }

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

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

        /**
         * @param ipConfigurations IP configuration of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(@Nullable Output> ipConfigurations) {
            $.ipConfigurations = ipConfigurations;
            return this;
        }

        /**
         * @param ipConfigurations IP configuration of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(List ipConfigurations) {
            return ipConfigurations(Output.of(ipConfigurations));
        }

        /**
         * @param ipConfigurations IP configuration of the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(BastionHostIPConfigurationArgs... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }

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

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

        /**
         * @param scaleUnits The scale units for the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder scaleUnits(@Nullable Output scaleUnits) {
            $.scaleUnits = scaleUnits;
            return this;
        }

        /**
         * @param scaleUnits The scale units for the Bastion Host resource.
         * 
         * @return builder
         * 
         */
        public Builder scaleUnits(Integer scaleUnits) {
            return scaleUnits(Output.of(scaleUnits));
        }

        /**
         * @param sku The sku of this Bastion Host.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The sku of this Bastion Host.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @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 BastionHostArgs build() {
            $.disableCopyPaste = Codegen.booleanProp("disableCopyPaste").output().arg($.disableCopyPaste).def(false).getNullable();
            $.enableFileCopy = Codegen.booleanProp("enableFileCopy").output().arg($.enableFileCopy).def(false).getNullable();
            $.enableIpConnect = Codegen.booleanProp("enableIpConnect").output().arg($.enableIpConnect).def(false).getNullable();
            $.enableKerberos = Codegen.booleanProp("enableKerberos").output().arg($.enableKerberos).def(false).getNullable();
            $.enableShareableLink = Codegen.booleanProp("enableShareableLink").output().arg($.enableShareableLink).def(false).getNullable();
            $.enableTunneling = Codegen.booleanProp("enableTunneling").output().arg($.enableTunneling).def(false).getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BastionHostArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy