com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.compute.outputs;
import com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTag;
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 WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress {
/**
* @return The Prefix which should be used for the Domain Name Label for each Virtual Machine Instance. Azure concatenates the Domain Name Label and Virtual Machine Index to create a unique Domain Name Label for each Virtual Machine.
*
*/
private @Nullable String domainNameLabel;
/**
* @return The Idle Timeout in Minutes for the Public IP Address. Possible values are in the range `4` to `32`.
*
*/
private @Nullable Integer idleTimeoutInMinutes;
/**
* @return One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
*
*/
private @Nullable List ipTags;
/**
* @return The Name of the Public IP Address Configuration.
*
*/
private String name;
/**
* @return The ID of the Public IP Address Prefix from where Public IP Addresses should be allocated. Changing this forces a new resource to be created.
*
* > **Note:** This functionality is in Preview and must be opted into via `az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress` and then `az provider register -n Microsoft.Network`.
*
*/
private @Nullable String publicIpPrefixId;
/**
* @return The Internet Protocol Version which should be used for this public IP address. Possible values are `IPv4` and `IPv6`. Defaults to `IPv4`. Changing this forces a new resource to be created.
*
*/
private @Nullable String version;
private WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress() {}
/**
* @return The Prefix which should be used for the Domain Name Label for each Virtual Machine Instance. Azure concatenates the Domain Name Label and Virtual Machine Index to create a unique Domain Name Label for each Virtual Machine.
*
*/
public Optional domainNameLabel() {
return Optional.ofNullable(this.domainNameLabel);
}
/**
* @return The Idle Timeout in Minutes for the Public IP Address. Possible values are in the range `4` to `32`.
*
*/
public Optional idleTimeoutInMinutes() {
return Optional.ofNullable(this.idleTimeoutInMinutes);
}
/**
* @return One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
*
*/
public List ipTags() {
return this.ipTags == null ? List.of() : this.ipTags;
}
/**
* @return The Name of the Public IP Address Configuration.
*
*/
public String name() {
return this.name;
}
/**
* @return The ID of the Public IP Address Prefix from where Public IP Addresses should be allocated. Changing this forces a new resource to be created.
*
* > **Note:** This functionality is in Preview and must be opted into via `az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress` and then `az provider register -n Microsoft.Network`.
*
*/
public Optional publicIpPrefixId() {
return Optional.ofNullable(this.publicIpPrefixId);
}
/**
* @return The Internet Protocol Version which should be used for this public IP address. Possible values are `IPv4` and `IPv6`. Defaults to `IPv4`. Changing this forces a new resource to be created.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String domainNameLabel;
private @Nullable Integer idleTimeoutInMinutes;
private @Nullable List ipTags;
private String name;
private @Nullable String publicIpPrefixId;
private @Nullable String version;
public Builder() {}
public Builder(WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress defaults) {
Objects.requireNonNull(defaults);
this.domainNameLabel = defaults.domainNameLabel;
this.idleTimeoutInMinutes = defaults.idleTimeoutInMinutes;
this.ipTags = defaults.ipTags;
this.name = defaults.name;
this.publicIpPrefixId = defaults.publicIpPrefixId;
this.version = defaults.version;
}
@CustomType.Setter
public Builder domainNameLabel(@Nullable String domainNameLabel) {
this.domainNameLabel = domainNameLabel;
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(WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTag... ipTags) {
return ipTags(List.of(ipTags));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder publicIpPrefixId(@Nullable String publicIpPrefixId) {
this.publicIpPrefixId = publicIpPrefixId;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress build() {
final var _resultValue = new WindowsVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress();
_resultValue.domainNameLabel = domainNameLabel;
_resultValue.idleTimeoutInMinutes = idleTimeoutInMinutes;
_resultValue.ipTags = ipTags;
_resultValue.name = name;
_resultValue.publicIpPrefixId = publicIpPrefixId;
_resultValue.version = version;
return _resultValue;
}
}
}