com.pulumi.aws.ec2.outputs.GetPublicIpv4PoolPoolAddressRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.aws.ec2.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetPublicIpv4PoolPoolAddressRange {
/**
* @return Number of addresses in the range.
*
*/
private Integer addressCount;
/**
* @return Number of available addresses in the range.
*
*/
private Integer availableAddressCount;
/**
* @return First address in the range.
*
*/
private String firstAddress;
/**
* @return Last address in the range.
*
*/
private String lastAddress;
private GetPublicIpv4PoolPoolAddressRange() {}
/**
* @return Number of addresses in the range.
*
*/
public Integer addressCount() {
return this.addressCount;
}
/**
* @return Number of available addresses in the range.
*
*/
public Integer availableAddressCount() {
return this.availableAddressCount;
}
/**
* @return First address in the range.
*
*/
public String firstAddress() {
return this.firstAddress;
}
/**
* @return Last address in the range.
*
*/
public String lastAddress() {
return this.lastAddress;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPublicIpv4PoolPoolAddressRange defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer addressCount;
private Integer availableAddressCount;
private String firstAddress;
private String lastAddress;
public Builder() {}
public Builder(GetPublicIpv4PoolPoolAddressRange defaults) {
Objects.requireNonNull(defaults);
this.addressCount = defaults.addressCount;
this.availableAddressCount = defaults.availableAddressCount;
this.firstAddress = defaults.firstAddress;
this.lastAddress = defaults.lastAddress;
}
@CustomType.Setter
public Builder addressCount(Integer addressCount) {
if (addressCount == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolPoolAddressRange", "addressCount");
}
this.addressCount = addressCount;
return this;
}
@CustomType.Setter
public Builder availableAddressCount(Integer availableAddressCount) {
if (availableAddressCount == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolPoolAddressRange", "availableAddressCount");
}
this.availableAddressCount = availableAddressCount;
return this;
}
@CustomType.Setter
public Builder firstAddress(String firstAddress) {
if (firstAddress == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolPoolAddressRange", "firstAddress");
}
this.firstAddress = firstAddress;
return this;
}
@CustomType.Setter
public Builder lastAddress(String lastAddress) {
if (lastAddress == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolPoolAddressRange", "lastAddress");
}
this.lastAddress = lastAddress;
return this;
}
public GetPublicIpv4PoolPoolAddressRange build() {
final var _resultValue = new GetPublicIpv4PoolPoolAddressRange();
_resultValue.addressCount = addressCount;
_resultValue.availableAddressCount = availableAddressCount;
_resultValue.firstAddress = firstAddress;
_resultValue.lastAddress = lastAddress;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy