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

com.pulumi.azurenative.compute.outputs.VirtualMachinePublicIPAddressConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.PublicIPAddressSkuResponse;
import com.pulumi.azurenative.compute.outputs.SubResourceResponse;
import com.pulumi.azurenative.compute.outputs.VirtualMachineIpTagResponse;
import com.pulumi.azurenative.compute.outputs.VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualMachinePublicIPAddressConfigurationResponse {
    /**
     * @return Specify what happens to the public IP address when the VM is deleted
     * 
     */
    private @Nullable String deleteOption;
    /**
     * @return The dns settings to be applied on the publicIP addresses .
     * 
     */
    private @Nullable VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse dnsSettings;
    /**
     * @return The idle timeout of the public IP address.
     * 
     */
    private @Nullable Integer idleTimeoutInMinutes;
    /**
     * @return The list of IP tags associated with the public IP address.
     * 
     */
    private @Nullable List ipTags;
    /**
     * @return The publicIP address configuration name.
     * 
     */
    private String name;
    /**
     * @return Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
     * 
     */
    private @Nullable String publicIPAddressVersion;
    /**
     * @return Specify the public IP allocation type
     * 
     */
    private @Nullable String publicIPAllocationMethod;
    /**
     * @return The PublicIPPrefix from which to allocate publicIP addresses.
     * 
     */
    private @Nullable SubResourceResponse publicIPPrefix;
    /**
     * @return Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
     * 
     */
    private @Nullable PublicIPAddressSkuResponse sku;

    private VirtualMachinePublicIPAddressConfigurationResponse() {}
    /**
     * @return Specify what happens to the public IP address when the VM is deleted
     * 
     */
    public Optional deleteOption() {
        return Optional.ofNullable(this.deleteOption);
    }
    /**
     * @return The dns settings to be applied on the publicIP addresses .
     * 
     */
    public Optional dnsSettings() {
        return Optional.ofNullable(this.dnsSettings);
    }
    /**
     * @return The idle timeout of the public IP address.
     * 
     */
    public Optional idleTimeoutInMinutes() {
        return Optional.ofNullable(this.idleTimeoutInMinutes);
    }
    /**
     * @return The list of IP tags associated with the public IP address.
     * 
     */
    public List ipTags() {
        return this.ipTags == null ? List.of() : this.ipTags;
    }
    /**
     * @return The publicIP address configuration name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
     * 
     */
    public Optional publicIPAddressVersion() {
        return Optional.ofNullable(this.publicIPAddressVersion);
    }
    /**
     * @return Specify the public IP allocation type
     * 
     */
    public Optional publicIPAllocationMethod() {
        return Optional.ofNullable(this.publicIPAllocationMethod);
    }
    /**
     * @return The PublicIPPrefix from which to allocate publicIP addresses.
     * 
     */
    public Optional publicIPPrefix() {
        return Optional.ofNullable(this.publicIPPrefix);
    }
    /**
     * @return Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
     * 
     */
    public Optional sku() {
        return Optional.ofNullable(this.sku);
    }

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

    public static Builder builder(VirtualMachinePublicIPAddressConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String deleteOption;
        private @Nullable VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse dnsSettings;
        private @Nullable Integer idleTimeoutInMinutes;
        private @Nullable List ipTags;
        private String name;
        private @Nullable String publicIPAddressVersion;
        private @Nullable String publicIPAllocationMethod;
        private @Nullable SubResourceResponse publicIPPrefix;
        private @Nullable PublicIPAddressSkuResponse sku;
        public Builder() {}
        public Builder(VirtualMachinePublicIPAddressConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deleteOption = defaults.deleteOption;
    	      this.dnsSettings = defaults.dnsSettings;
    	      this.idleTimeoutInMinutes = defaults.idleTimeoutInMinutes;
    	      this.ipTags = defaults.ipTags;
    	      this.name = defaults.name;
    	      this.publicIPAddressVersion = defaults.publicIPAddressVersion;
    	      this.publicIPAllocationMethod = defaults.publicIPAllocationMethod;
    	      this.publicIPPrefix = defaults.publicIPPrefix;
    	      this.sku = defaults.sku;
        }

        @CustomType.Setter
        public Builder deleteOption(@Nullable String deleteOption) {

            this.deleteOption = deleteOption;
            return this;
        }
        @CustomType.Setter
        public Builder dnsSettings(@Nullable VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse dnsSettings) {

            this.dnsSettings = dnsSettings;
            return this;
        }
        @CustomType.Setter
        public Builder idleTimeoutInMinutes(@Nullable Integer idleTimeoutInMinutes) {

            this.idleTimeoutInMinutes = idleTimeoutInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder ipTags(@Nullable List ipTags) {

            this.ipTags = ipTags;
            return this;
        }
        public Builder ipTags(VirtualMachineIpTagResponse... ipTags) {
            return ipTags(List.of(ipTags));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("VirtualMachinePublicIPAddressConfigurationResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder publicIPAddressVersion(@Nullable String publicIPAddressVersion) {

            this.publicIPAddressVersion = publicIPAddressVersion;
            return this;
        }
        @CustomType.Setter
        public Builder publicIPAllocationMethod(@Nullable String publicIPAllocationMethod) {

            this.publicIPAllocationMethod = publicIPAllocationMethod;
            return this;
        }
        @CustomType.Setter
        public Builder publicIPPrefix(@Nullable SubResourceResponse publicIPPrefix) {

            this.publicIPPrefix = publicIPPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder sku(@Nullable PublicIPAddressSkuResponse sku) {

            this.sku = sku;
            return this;
        }
        public VirtualMachinePublicIPAddressConfigurationResponse build() {
            final var _resultValue = new VirtualMachinePublicIPAddressConfigurationResponse();
            _resultValue.deleteOption = deleteOption;
            _resultValue.dnsSettings = dnsSettings;
            _resultValue.idleTimeoutInMinutes = idleTimeoutInMinutes;
            _resultValue.ipTags = ipTags;
            _resultValue.name = name;
            _resultValue.publicIPAddressVersion = publicIPAddressVersion;
            _resultValue.publicIPAllocationMethod = publicIPAllocationMethod;
            _resultValue.publicIPPrefix = publicIPPrefix;
            _resultValue.sku = sku;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy