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

com.pulumi.azurenative.migrate.inputs.PublicIPAddressResourceSettingsArgs Maven / Gradle / Ivy

// *** 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.migrate.inputs;

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.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines the public IP address resource settings.
 * 
 */
public final class PublicIPAddressResourceSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PublicIPAddressResourceSettingsArgs Empty = new PublicIPAddressResourceSettingsArgs();

    /**
     * Gets or sets the domain name label.
     * 
     */
    @Import(name="domainNameLabel")
    private @Nullable Output domainNameLabel;

    /**
     * @return Gets or sets the domain name label.
     * 
     */
    public Optional> domainNameLabel() {
        return Optional.ofNullable(this.domainNameLabel);
    }

    /**
     * Gets or sets the fully qualified domain name.
     * 
     */
    @Import(name="fqdn")
    private @Nullable Output fqdn;

    /**
     * @return Gets or sets the fully qualified domain name.
     * 
     */
    public Optional> fqdn() {
        return Optional.ofNullable(this.fqdn);
    }

    /**
     * Gets or sets public IP allocation method.
     * 
     */
    @Import(name="publicIpAllocationMethod")
    private @Nullable Output publicIpAllocationMethod;

    /**
     * @return Gets or sets public IP allocation method.
     * 
     */
    public Optional> publicIpAllocationMethod() {
        return Optional.ofNullable(this.publicIpAllocationMethod);
    }

    /**
     * The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/publicIPAddresses'.
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/publicIPAddresses'.
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

    /**
     * Gets or sets public IP sku.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Gets or sets public IP sku.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    /**
     * Gets or sets the target resource group name.
     * 
     */
    @Import(name="targetResourceGroupName")
    private @Nullable Output targetResourceGroupName;

    /**
     * @return Gets or sets the target resource group name.
     * 
     */
    public Optional> targetResourceGroupName() {
        return Optional.ofNullable(this.targetResourceGroupName);
    }

    /**
     * Gets or sets the target Resource name.
     * 
     */
    @Import(name="targetResourceName", required=true)
    private Output targetResourceName;

    /**
     * @return Gets or sets the target Resource name.
     * 
     */
    public Output targetResourceName() {
        return this.targetResourceName;
    }

    /**
     * Gets or sets public IP zones.
     * 
     */
    @Import(name="zones")
    private @Nullable Output zones;

    /**
     * @return Gets or sets public IP zones.
     * 
     */
    public Optional> zones() {
        return Optional.ofNullable(this.zones);
    }

    private PublicIPAddressResourceSettingsArgs() {}

    private PublicIPAddressResourceSettingsArgs(PublicIPAddressResourceSettingsArgs $) {
        this.domainNameLabel = $.domainNameLabel;
        this.fqdn = $.fqdn;
        this.publicIpAllocationMethod = $.publicIpAllocationMethod;
        this.resourceType = $.resourceType;
        this.sku = $.sku;
        this.tags = $.tags;
        this.targetResourceGroupName = $.targetResourceGroupName;
        this.targetResourceName = $.targetResourceName;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private PublicIPAddressResourceSettingsArgs $;

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

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

        /**
         * @param domainNameLabel Gets or sets the domain name label.
         * 
         * @return builder
         * 
         */
        public Builder domainNameLabel(@Nullable Output domainNameLabel) {
            $.domainNameLabel = domainNameLabel;
            return this;
        }

        /**
         * @param domainNameLabel Gets or sets the domain name label.
         * 
         * @return builder
         * 
         */
        public Builder domainNameLabel(String domainNameLabel) {
            return domainNameLabel(Output.of(domainNameLabel));
        }

        /**
         * @param fqdn Gets or sets the fully qualified domain name.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(@Nullable Output fqdn) {
            $.fqdn = fqdn;
            return this;
        }

        /**
         * @param fqdn Gets or sets the fully qualified domain name.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(String fqdn) {
            return fqdn(Output.of(fqdn));
        }

        /**
         * @param publicIpAllocationMethod Gets or sets public IP allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAllocationMethod(@Nullable Output publicIpAllocationMethod) {
            $.publicIpAllocationMethod = publicIpAllocationMethod;
            return this;
        }

        /**
         * @param publicIpAllocationMethod Gets or sets public IP allocation method.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAllocationMethod(String publicIpAllocationMethod) {
            return publicIpAllocationMethod(Output.of(publicIpAllocationMethod));
        }

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Network/publicIPAddresses'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Network/publicIPAddresses'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param sku Gets or sets public IP sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Gets or sets public IP sku.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Gets or sets the Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Gets or sets the Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(@Nullable Output targetResourceGroupName) {
            $.targetResourceGroupName = targetResourceGroupName;
            return this;
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(String targetResourceGroupName) {
            return targetResourceGroupName(Output.of(targetResourceGroupName));
        }

        /**
         * @param targetResourceName Gets or sets the target Resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceName(Output targetResourceName) {
            $.targetResourceName = targetResourceName;
            return this;
        }

        /**
         * @param targetResourceName Gets or sets the target Resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceName(String targetResourceName) {
            return targetResourceName(Output.of(targetResourceName));
        }

        /**
         * @param zones Gets or sets public IP zones.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones Gets or sets public IP zones.
         * 
         * @return builder
         * 
         */
        public Builder zones(String zones) {
            return zones(Output.of(zones));
        }

        public PublicIPAddressResourceSettingsArgs build() {
            $.resourceType = Codegen.stringProp("resourceType").output().arg($.resourceType).require();
            if ($.targetResourceName == null) {
                throw new MissingRequiredPropertyException("PublicIPAddressResourceSettingsArgs", "targetResourceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy