
com.pulumi.azurenative.azurefleet.outputs.VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse 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.azurefleet.outputs;
import com.pulumi.azurenative.azurefleet.outputs.SubResourceResponse;
import com.pulumi.azurenative.azurefleet.outputs.VirtualMachineScaleSetIpTagResponse;
import com.pulumi.azurenative.azurefleet.outputs.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsResponse;
import com.pulumi.core.annotations.CustomType;
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 VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse {
/**
* @return Specify what happens to the public IP when the VM is deleted
*
*/
private @Nullable String deleteOption;
/**
* @return The dns settings to be applied on the publicIP addresses .
*
*/
private @Nullable VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsResponse 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 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 The PublicIPPrefix from which to allocate publicIP addresses.
*
*/
private @Nullable SubResourceResponse publicIPPrefix;
private VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse() {}
/**
* @return Specify what happens to the public IP 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 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 The PublicIPPrefix from which to allocate publicIP addresses.
*
*/
public Optional publicIPPrefix() {
return Optional.ofNullable(this.publicIPPrefix);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deleteOption;
private @Nullable VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsResponse dnsSettings;
private @Nullable Integer idleTimeoutInMinutes;
private @Nullable List ipTags;
private @Nullable String publicIPAddressVersion;
private @Nullable SubResourceResponse publicIPPrefix;
public Builder() {}
public Builder(VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.deleteOption = defaults.deleteOption;
this.dnsSettings = defaults.dnsSettings;
this.idleTimeoutInMinutes = defaults.idleTimeoutInMinutes;
this.ipTags = defaults.ipTags;
this.publicIPAddressVersion = defaults.publicIPAddressVersion;
this.publicIPPrefix = defaults.publicIPPrefix;
}
@CustomType.Setter
public Builder deleteOption(@Nullable String deleteOption) {
this.deleteOption = deleteOption;
return this;
}
@CustomType.Setter
public Builder dnsSettings(@Nullable VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsResponse 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(VirtualMachineScaleSetIpTagResponse... ipTags) {
return ipTags(List.of(ipTags));
}
@CustomType.Setter
public Builder publicIPAddressVersion(@Nullable String publicIPAddressVersion) {
this.publicIPAddressVersion = publicIPAddressVersion;
return this;
}
@CustomType.Setter
public Builder publicIPPrefix(@Nullable SubResourceResponse publicIPPrefix) {
this.publicIPPrefix = publicIPPrefix;
return this;
}
public VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse build() {
final var _resultValue = new VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesResponse();
_resultValue.deleteOption = deleteOption;
_resultValue.dnsSettings = dnsSettings;
_resultValue.idleTimeoutInMinutes = idleTimeoutInMinutes;
_resultValue.ipTags = ipTags;
_resultValue.publicIPAddressVersion = publicIPAddressVersion;
_resultValue.publicIPPrefix = publicIPPrefix;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy