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

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

There is a newer version: 2.78.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.IPVersion;
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.PublicIPPrefixSkuArgs;
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 PublicIPPrefixArgs extends com.pulumi.resources.ResourceArgs {

    public static final PublicIPPrefixArgs Empty = new PublicIPPrefixArgs();

    /**
     * The customIpPrefix that this prefix is associated with.
     * 
     */
    @Import(name="customIPPrefix")
    private @Nullable Output customIPPrefix;

    /**
     * @return The customIpPrefix that this prefix is associated with.
     * 
     */
    public Optional> customIPPrefix() {
        return Optional.ofNullable(this.customIPPrefix);
    }

    /**
     * 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 list of tags associated with the public IP prefix.
     * 
     */
    @Import(name="ipTags")
    private @Nullable Output> ipTags;

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

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

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

    /**
     * NatGateway of Public IP Prefix.
     * 
     */
    @Import(name="natGateway")
    private @Nullable Output natGateway;

    /**
     * @return NatGateway of Public IP Prefix.
     * 
     */
    public Optional> natGateway() {
        return Optional.ofNullable(this.natGateway);
    }

    /**
     * The Length of the Public IP Prefix.
     * 
     */
    @Import(name="prefixLength")
    private @Nullable Output prefixLength;

    /**
     * @return The Length of the Public IP Prefix.
     * 
     */
    public Optional> prefixLength() {
        return Optional.ofNullable(this.prefixLength);
    }

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

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

    /**
     * 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 public IP prefix SKU.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The public IP prefix 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 PublicIPPrefixArgs() {}

    private PublicIPPrefixArgs(PublicIPPrefixArgs $) {
        this.customIPPrefix = $.customIPPrefix;
        this.extendedLocation = $.extendedLocation;
        this.id = $.id;
        this.ipTags = $.ipTags;
        this.location = $.location;
        this.natGateway = $.natGateway;
        this.prefixLength = $.prefixLength;
        this.publicIPAddressVersion = $.publicIPAddressVersion;
        this.publicIpPrefixName = $.publicIpPrefixName;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private PublicIPPrefixArgs $;

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

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

        /**
         * @param customIPPrefix The customIpPrefix that this prefix is associated with.
         * 
         * @return builder
         * 
         */
        public Builder customIPPrefix(@Nullable Output customIPPrefix) {
            $.customIPPrefix = customIPPrefix;
            return this;
        }

        /**
         * @param customIPPrefix The customIpPrefix that this prefix is associated with.
         * 
         * @return builder
         * 
         */
        public Builder customIPPrefix(SubResourceArgs customIPPrefix) {
            return customIPPrefix(Output.of(customIPPrefix));
        }

        /**
         * @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 ipTags The list of tags associated with the public IP prefix.
         * 
         * @return builder
         * 
         */
        public Builder ipTags(@Nullable Output> ipTags) {
            $.ipTags = ipTags;
            return this;
        }

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

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

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

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

        /**
         * @param prefixLength The Length of the Public IP Prefix.
         * 
         * @return builder
         * 
         */
        public Builder prefixLength(@Nullable Output prefixLength) {
            $.prefixLength = prefixLength;
            return this;
        }

        /**
         * @param prefixLength The Length of the Public IP Prefix.
         * 
         * @return builder
         * 
         */
        public Builder prefixLength(Integer prefixLength) {
            return prefixLength(Output.of(prefixLength));
        }

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

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

        /**
         * @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 sku The public IP prefix SKU.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The public IP prefix SKU.
         * 
         * @return builder
         * 
         */
        public Builder sku(PublicIPPrefixSkuArgs 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 PublicIPPrefixArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PublicIPPrefixArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy