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

com.pulumi.azurenative.network.PublicIPAddressArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.enums.DeleteOptions;
import com.pulumi.azurenative.network.enums.IPAllocationMethod;
import com.pulumi.azurenative.network.enums.IPVersion;
import com.pulumi.azurenative.network.enums.PublicIPAddressMigrationPhase;
import com.pulumi.azurenative.network.inputs.DdosSettingsArgs;
import com.pulumi.azurenative.network.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.network.inputs.IpTagArgs;
import com.pulumi.azurenative.network.inputs.NatGatewayArgs;
import com.pulumi.azurenative.network.inputs.PublicIPAddressDnsSettingsArgs;
import com.pulumi.azurenative.network.inputs.PublicIPAddressSkuArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 PublicIPAddressArgs extends com.pulumi.resources.ResourceArgs {

    public static final PublicIPAddressArgs Empty = new PublicIPAddressArgs();

    /**
     * The DDoS protection custom policy associated with the public IP address.
     * 
     */
    @Import(name="ddosSettings")
    private @Nullable Output ddosSettings;

    /**
     * @return The DDoS protection custom policy associated with the public IP address.
     * 
     */
    public Optional> ddosSettings() {
        return Optional.ofNullable(this.ddosSettings);
    }

    /**
     * Specify what happens to the public IP address when the VM using it is deleted
     * 
     */
    @Import(name="deleteOption")
    private @Nullable Output> deleteOption;

    /**
     * @return Specify what happens to the public IP address when the VM using it is deleted
     * 
     */
    public Optional>> deleteOption() {
        return Optional.ofNullable(this.deleteOption);
    }

    /**
     * The FQDN of the DNS record associated with the public IP address.
     * 
     */
    @Import(name="dnsSettings")
    private @Nullable Output dnsSettings;

    /**
     * @return The FQDN of the DNS record associated with the public IP address.
     * 
     */
    public Optional> dnsSettings() {
        return Optional.ofNullable(this.dnsSettings);
    }

    /**
     * The extended location of the public ip address.
     * 
     */
    @Import(name="extendedLocation")
    private @Nullable Output extendedLocation;

    /**
     * @return The extended location of the public ip address.
     * 
     */
    public Optional> extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }

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

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

    /**
     * The idle timeout of the public IP address.
     * 
     */
    @Import(name="idleTimeoutInMinutes")
    private @Nullable Output idleTimeoutInMinutes;

    /**
     * @return The idle timeout of the public IP address.
     * 
     */
    public Optional> idleTimeoutInMinutes() {
        return Optional.ofNullable(this.idleTimeoutInMinutes);
    }

    /**
     * The IP address associated with the public IP address resource.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The IP address associated with the public IP address resource.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The list of tags associated with the public IP address.
     * 
     */
    @Import(name="ipTags")
    private @Nullable Output> ipTags;

    /**
     * @return The list of tags associated with the public IP address.
     * 
     */
    public Optional>> ipTags() {
        return Optional.ofNullable(this.ipTags);
    }

    /**
     * The linked public IP address of the public IP address resource.
     * 
     */
    @Import(name="linkedPublicIPAddress")
    private @Nullable Output linkedPublicIPAddress;

    /**
     * @return The linked public IP address of the public IP address resource.
     * 
     */
    public Optional> linkedPublicIPAddress() {
        return Optional.ofNullable(this.linkedPublicIPAddress);
    }

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

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

    /**
     * Migration phase of Public IP Address.
     * 
     */
    @Import(name="migrationPhase")
    private @Nullable Output> migrationPhase;

    /**
     * @return Migration phase of Public IP Address.
     * 
     */
    public Optional>> migrationPhase() {
        return Optional.ofNullable(this.migrationPhase);
    }

    /**
     * The NatGateway for the Public IP address.
     * 
     */
    @Import(name="natGateway")
    private @Nullable Output natGateway;

    /**
     * @return The NatGateway for the Public IP address.
     * 
     */
    public Optional> natGateway() {
        return Optional.ofNullable(this.natGateway);
    }

    /**
     * The public IP address version.
     * 
     */
    @Import(name="publicIPAddressVersion")
    private @Nullable Output> publicIPAddressVersion;

    /**
     * @return The public IP address version.
     * 
     */
    public Optional>> publicIPAddressVersion() {
        return Optional.ofNullable(this.publicIPAddressVersion);
    }

    /**
     * The public IP address allocation method.
     * 
     */
    @Import(name="publicIPAllocationMethod")
    private @Nullable Output> publicIPAllocationMethod;

    /**
     * @return The public IP address allocation method.
     * 
     */
    public Optional>> publicIPAllocationMethod() {
        return Optional.ofNullable(this.publicIPAllocationMethod);
    }

    /**
     * The Public IP Prefix this Public IP Address should be allocated from.
     * 
     */
    @Import(name="publicIPPrefix")
    private @Nullable Output publicIPPrefix;

    /**
     * @return The Public IP Prefix this Public IP Address should be allocated from.
     * 
     */
    public Optional> publicIPPrefix() {
        return Optional.ofNullable(this.publicIPPrefix);
    }

    /**
     * The name of the public IP address.
     * 
     */
    @Import(name="publicIpAddressName")
    private @Nullable Output publicIpAddressName;

    /**
     * @return The name of the public IP address.
     * 
     */
    public Optional> publicIpAddressName() {
        return Optional.ofNullable(this.publicIpAddressName);
    }

    /**
     * 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 service public IP address of the public IP address resource.
     * 
     */
    @Import(name="servicePublicIPAddress")
    private @Nullable Output servicePublicIPAddress;

    /**
     * @return The service public IP address of the public IP address resource.
     * 
     */
    public Optional> servicePublicIPAddress() {
        return Optional.ofNullable(this.servicePublicIPAddress);
    }

    /**
     * The public IP address SKU.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The public IP address SKU.
     * 
     */
    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);
    }

    /**
     * A list of availability zones denoting the IP allocated for the resource needs to come from.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return A list of availability zones denoting the IP allocated for the resource needs to come from.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private PublicIPAddressArgs() {}

    private PublicIPAddressArgs(PublicIPAddressArgs $) {
        this.ddosSettings = $.ddosSettings;
        this.deleteOption = $.deleteOption;
        this.dnsSettings = $.dnsSettings;
        this.extendedLocation = $.extendedLocation;
        this.id = $.id;
        this.idleTimeoutInMinutes = $.idleTimeoutInMinutes;
        this.ipAddress = $.ipAddress;
        this.ipTags = $.ipTags;
        this.linkedPublicIPAddress = $.linkedPublicIPAddress;
        this.location = $.location;
        this.migrationPhase = $.migrationPhase;
        this.natGateway = $.natGateway;
        this.publicIPAddressVersion = $.publicIPAddressVersion;
        this.publicIPAllocationMethod = $.publicIPAllocationMethod;
        this.publicIPPrefix = $.publicIPPrefix;
        this.publicIpAddressName = $.publicIpAddressName;
        this.resourceGroupName = $.resourceGroupName;
        this.servicePublicIPAddress = $.servicePublicIPAddress;
        this.sku = $.sku;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private PublicIPAddressArgs $;

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

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

        /**
         * @param ddosSettings The DDoS protection custom policy associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder ddosSettings(@Nullable Output ddosSettings) {
            $.ddosSettings = ddosSettings;
            return this;
        }

        /**
         * @param ddosSettings The DDoS protection custom policy associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder ddosSettings(DdosSettingsArgs ddosSettings) {
            return ddosSettings(Output.of(ddosSettings));
        }

        /**
         * @param deleteOption Specify what happens to the public IP address when the VM using it is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(@Nullable Output> deleteOption) {
            $.deleteOption = deleteOption;
            return this;
        }

        /**
         * @param deleteOption Specify what happens to the public IP address when the VM using it is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(Either deleteOption) {
            return deleteOption(Output.of(deleteOption));
        }

        /**
         * @param deleteOption Specify what happens to the public IP address when the VM using it is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(String deleteOption) {
            return deleteOption(Either.ofLeft(deleteOption));
        }

        /**
         * @param deleteOption Specify what happens to the public IP address when the VM using it is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(DeleteOptions deleteOption) {
            return deleteOption(Either.ofRight(deleteOption));
        }

        /**
         * @param dnsSettings The FQDN of the DNS record associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder dnsSettings(@Nullable Output dnsSettings) {
            $.dnsSettings = dnsSettings;
            return this;
        }

        /**
         * @param dnsSettings The FQDN of the DNS record associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder dnsSettings(PublicIPAddressDnsSettingsArgs dnsSettings) {
            return dnsSettings(Output.of(dnsSettings));
        }

        /**
         * @param extendedLocation The extended location of the public ip address.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(@Nullable Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the public ip address.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @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 idleTimeoutInMinutes The idle timeout of the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder idleTimeoutInMinutes(@Nullable Output idleTimeoutInMinutes) {
            $.idleTimeoutInMinutes = idleTimeoutInMinutes;
            return this;
        }

        /**
         * @param idleTimeoutInMinutes The idle timeout of the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder idleTimeoutInMinutes(Integer idleTimeoutInMinutes) {
            return idleTimeoutInMinutes(Output.of(idleTimeoutInMinutes));
        }

        /**
         * @param ipAddress The IP address associated with the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The IP address associated with the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param ipTags The list of tags associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder ipTags(@Nullable Output> ipTags) {
            $.ipTags = ipTags;
            return this;
        }

        /**
         * @param ipTags The list of tags associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder ipTags(List ipTags) {
            return ipTags(Output.of(ipTags));
        }

        /**
         * @param ipTags The list of tags associated with the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder ipTags(IpTagArgs... ipTags) {
            return ipTags(List.of(ipTags));
        }

        /**
         * @param linkedPublicIPAddress The linked public IP address of the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder linkedPublicIPAddress(@Nullable Output linkedPublicIPAddress) {
            $.linkedPublicIPAddress = linkedPublicIPAddress;
            return this;
        }

        /**
         * @param linkedPublicIPAddress The linked public IP address of the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder linkedPublicIPAddress(com.pulumi.azurenative.network.inputs.PublicIPAddressArgs linkedPublicIPAddress) {
            return linkedPublicIPAddress(Output.of(linkedPublicIPAddress));
        }

        /**
         * @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 migrationPhase Migration phase of Public IP Address.
         * 
         * @return builder
         * 
         */
        public Builder migrationPhase(@Nullable Output> migrationPhase) {
            $.migrationPhase = migrationPhase;
            return this;
        }

        /**
         * @param migrationPhase Migration phase of Public IP Address.
         * 
         * @return builder
         * 
         */
        public Builder migrationPhase(Either migrationPhase) {
            return migrationPhase(Output.of(migrationPhase));
        }

        /**
         * @param migrationPhase Migration phase of Public IP Address.
         * 
         * @return builder
         * 
         */
        public Builder migrationPhase(String migrationPhase) {
            return migrationPhase(Either.ofLeft(migrationPhase));
        }

        /**
         * @param migrationPhase Migration phase of Public IP Address.
         * 
         * @return builder
         * 
         */
        public Builder migrationPhase(PublicIPAddressMigrationPhase migrationPhase) {
            return migrationPhase(Either.ofRight(migrationPhase));
        }

        /**
         * @param natGateway The NatGateway for the Public IP address.
         * 
         * @return builder
         * 
         */
        public Builder natGateway(@Nullable Output natGateway) {
            $.natGateway = natGateway;
            return this;
        }

        /**
         * @param natGateway The NatGateway for the Public IP address.
         * 
         * @return builder
         * 
         */
        public Builder natGateway(NatGatewayArgs natGateway) {
            return natGateway(Output.of(natGateway));
        }

        /**
         * @param publicIPAddressVersion The public IP address version.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAddressVersion(@Nullable Output> publicIPAddressVersion) {
            $.publicIPAddressVersion = publicIPAddressVersion;
            return this;
        }

        /**
         * @param publicIPAddressVersion The public IP address version.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAddressVersion(Either publicIPAddressVersion) {
            return publicIPAddressVersion(Output.of(publicIPAddressVersion));
        }

        /**
         * @param publicIPAddressVersion The public IP address version.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAddressVersion(String publicIPAddressVersion) {
            return publicIPAddressVersion(Either.ofLeft(publicIPAddressVersion));
        }

        /**
         * @param publicIPAddressVersion The public IP address version.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAddressVersion(IPVersion publicIPAddressVersion) {
            return publicIPAddressVersion(Either.ofRight(publicIPAddressVersion));
        }

        /**
         * @param publicIPAllocationMethod The public IP address allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAllocationMethod(@Nullable Output> publicIPAllocationMethod) {
            $.publicIPAllocationMethod = publicIPAllocationMethod;
            return this;
        }

        /**
         * @param publicIPAllocationMethod The public IP address allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAllocationMethod(Either publicIPAllocationMethod) {
            return publicIPAllocationMethod(Output.of(publicIPAllocationMethod));
        }

        /**
         * @param publicIPAllocationMethod The public IP address allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAllocationMethod(String publicIPAllocationMethod) {
            return publicIPAllocationMethod(Either.ofLeft(publicIPAllocationMethod));
        }

        /**
         * @param publicIPAllocationMethod The public IP address allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIPAllocationMethod(IPAllocationMethod publicIPAllocationMethod) {
            return publicIPAllocationMethod(Either.ofRight(publicIPAllocationMethod));
        }

        /**
         * @param publicIPPrefix The Public IP Prefix this Public IP Address should be allocated from.
         * 
         * @return builder
         * 
         */
        public Builder publicIPPrefix(@Nullable Output publicIPPrefix) {
            $.publicIPPrefix = publicIPPrefix;
            return this;
        }

        /**
         * @param publicIPPrefix The Public IP Prefix this Public IP Address should be allocated from.
         * 
         * @return builder
         * 
         */
        public Builder publicIPPrefix(SubResourceArgs publicIPPrefix) {
            return publicIPPrefix(Output.of(publicIPPrefix));
        }

        /**
         * @param publicIpAddressName The name of the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressName(@Nullable Output publicIpAddressName) {
            $.publicIpAddressName = publicIpAddressName;
            return this;
        }

        /**
         * @param publicIpAddressName The name of the public IP address.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressName(String publicIpAddressName) {
            return publicIpAddressName(Output.of(publicIpAddressName));
        }

        /**
         * @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 servicePublicIPAddress The service public IP address of the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder servicePublicIPAddress(@Nullable Output servicePublicIPAddress) {
            $.servicePublicIPAddress = servicePublicIPAddress;
            return this;
        }

        /**
         * @param servicePublicIPAddress The service public IP address of the public IP address resource.
         * 
         * @return builder
         * 
         */
        public Builder servicePublicIPAddress(com.pulumi.azurenative.network.inputs.PublicIPAddressArgs servicePublicIPAddress) {
            return servicePublicIPAddress(Output.of(servicePublicIPAddress));
        }

        /**
         * @param sku The public IP address SKU.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The public IP address SKU.
         * 
         * @return builder
         * 
         */
        public Builder sku(PublicIPAddressSkuArgs 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));
        }

        /**
         * @param zones A list of availability zones denoting the IP allocated for the resource needs to come from.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones A list of availability zones denoting the IP allocated for the resource needs to come from.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones A list of availability zones denoting the IP allocated for the resource needs to come from.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

        public PublicIPAddressArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PublicIPAddressArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy