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

com.pulumi.azure.network.inputs.GetNatGatewayPlainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.inputs;

import com.pulumi.core.annotations.Import;
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;


public final class GetNatGatewayPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetNatGatewayPlainArgs Empty = new GetNatGatewayPlainArgs();

    /**
     * Specifies the Name of the NAT Gateway.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Specifies the Name of the NAT Gateway.
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * A list of existing Public IP Address resource IDs which the NAT Gateway is using.
     * 
     */
    @Import(name="publicIpAddressIds")
    private @Nullable List publicIpAddressIds;

    /**
     * @return A list of existing Public IP Address resource IDs which the NAT Gateway is using.
     * 
     */
    public Optional> publicIpAddressIds() {
        return Optional.ofNullable(this.publicIpAddressIds);
    }

    /**
     * A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
     * 
     */
    @Import(name="publicIpPrefixIds")
    private @Nullable List publicIpPrefixIds;

    /**
     * @return A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
     * 
     */
    public Optional> publicIpPrefixIds() {
        return Optional.ofNullable(this.publicIpPrefixIds);
    }

    /**
     * Specifies the name of the Resource Group where the NAT Gateway exists.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private String resourceGroupName;

    /**
     * @return Specifies the name of the Resource Group where the NAT Gateway exists.
     * 
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetNatGatewayPlainArgs() {}

    private GetNatGatewayPlainArgs(GetNatGatewayPlainArgs $) {
        this.name = $.name;
        this.publicIpAddressIds = $.publicIpAddressIds;
        this.publicIpPrefixIds = $.publicIpPrefixIds;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetNatGatewayPlainArgs $;

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

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

        /**
         * @param name Specifies the Name of the NAT Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        /**
         * @param publicIpAddressIds A list of existing Public IP Address resource IDs which the NAT Gateway is using.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressIds(@Nullable List publicIpAddressIds) {
            $.publicIpAddressIds = publicIpAddressIds;
            return this;
        }

        /**
         * @param publicIpAddressIds A list of existing Public IP Address resource IDs which the NAT Gateway is using.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressIds(String... publicIpAddressIds) {
            return publicIpAddressIds(List.of(publicIpAddressIds));
        }

        /**
         * @param publicIpPrefixIds A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
         * 
         * @return builder
         * 
         */
        public Builder publicIpPrefixIds(@Nullable List publicIpPrefixIds) {
            $.publicIpPrefixIds = publicIpPrefixIds;
            return this;
        }

        /**
         * @param publicIpPrefixIds A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
         * 
         * @return builder
         * 
         */
        public Builder publicIpPrefixIds(String... publicIpPrefixIds) {
            return publicIpPrefixIds(List.of(publicIpPrefixIds));
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the NAT Gateway exists.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy