
com.pulumi.aws.ec2.outputs.GetPublicIpv4PoolsResult 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.aws.ec2.outputs;
import com.pulumi.aws.ec2.outputs.GetPublicIpv4PoolsFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetPublicIpv4PoolsResult {
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of all the pool IDs found.
*
*/
private List poolIds;
private Map tags;
private GetPublicIpv4PoolsResult() {}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return List of all the pool IDs found.
*
*/
public List poolIds() {
return this.poolIds;
}
public Map tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPublicIpv4PoolsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filters;
private String id;
private List poolIds;
private Map tags;
public Builder() {}
public Builder(GetPublicIpv4PoolsResult defaults) {
Objects.requireNonNull(defaults);
this.filters = defaults.filters;
this.id = defaults.id;
this.poolIds = defaults.poolIds;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetPublicIpv4PoolsFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder poolIds(List poolIds) {
if (poolIds == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolsResult", "poolIds");
}
this.poolIds = poolIds;
return this;
}
public Builder poolIds(String... poolIds) {
return poolIds(List.of(poolIds));
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetPublicIpv4PoolsResult", "tags");
}
this.tags = tags;
return this;
}
public GetPublicIpv4PoolsResult build() {
final var _resultValue = new GetPublicIpv4PoolsResult();
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.poolIds = poolIds;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy