// *** 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.azure.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class BastionHostIpConfiguration {
    /**
     * @return The name of the IP configuration. Changing this forces a new resource to be created.
     * 
     */
    private String name;
    /**
     * @return Reference to a Public IP Address to associate with this Bastion Host. Changing this forces a new resource to be created.
     * 
     */
    private String publicIpAddressId;
    /**
     * @return Reference to a subnet in which this Bastion Host has been created. Changing this forces a new resource to be created.
     * 
     * &gt; **Note:** The Subnet used for the Bastion Host must have the name `AzureBastionSubnet` and the subnet mask must be at least a `/26`.
     * 
     */
    private String subnetId;

    private BastionHostIpConfiguration() {}
    /**
     * @return The name of the IP configuration. Changing this forces a new resource to be created.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Reference to a Public IP Address to associate with this Bastion Host. Changing this forces a new resource to be created.
     * 
     */
    public String publicIpAddressId() {
        return this.publicIpAddressId;
    }
    /**
     * @return Reference to a subnet in which this Bastion Host has been created. Changing this forces a new resource to be created.
     * 
     * &gt; **Note:** The Subnet used for the Bastion Host must have the name `AzureBastionSubnet` and the subnet mask must be at least a `/26`.
     * 
     */
    public String subnetId() {
        return this.subnetId;
    }

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

    public static Builder builder(BastionHostIpConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private String publicIpAddressId;
        private String subnetId;
        public Builder() {}
        public Builder(BastionHostIpConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.publicIpAddressId = defaults.publicIpAddressId;
    	      this.subnetId = defaults.subnetId;
        }

        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddressId(String publicIpAddressId) {
            this.publicIpAddressId = Objects.requireNonNull(publicIpAddressId);
            return this;
        }
        @CustomType.Setter
        public Builder subnetId(String subnetId) {
            this.subnetId = Objects.requireNonNull(subnetId);
            return this;
        }
        public BastionHostIpConfiguration build() {
            final var o = new BastionHostIpConfiguration();
            o.name = name;
            o.publicIpAddressId = publicIpAddressId;
            o.subnetId = subnetId;
            return o;
        }
    }
}
