com.pulumi.aws.ec2.outputs.GetCoipPoolResult 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.
The 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.aws.ec2.outputs;
import com.pulumi.aws.ec2.outputs.GetCoipPoolFilter;
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 GetCoipPoolResult {
/**
* @return ARN of the COIP pool
*
*/
private String arn;
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String localGatewayRouteTableId;
/**
* @return Set of CIDR blocks in pool
*
*/
private List poolCidrs;
private String poolId;
private Map tags;
private GetCoipPoolResult() {}
/**
* @return ARN of the COIP pool
*
*/
public String arn() {
return this.arn;
}
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;
}
public String localGatewayRouteTableId() {
return this.localGatewayRouteTableId;
}
/**
* @return Set of CIDR blocks in pool
*
*/
public List poolCidrs() {
return this.poolCidrs;
}
public String poolId() {
return this.poolId;
}
public Map tags() {
return this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCoipPoolResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private @Nullable List filters;
private String id;
private String localGatewayRouteTableId;
private List poolCidrs;
private String poolId;
private Map tags;
public Builder() {}
public Builder(GetCoipPoolResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.filters = defaults.filters;
this.id = defaults.id;
this.localGatewayRouteTableId = defaults.localGatewayRouteTableId;
this.poolCidrs = defaults.poolCidrs;
this.poolId = defaults.poolId;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetCoipPoolFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder localGatewayRouteTableId(String localGatewayRouteTableId) {
if (localGatewayRouteTableId == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "localGatewayRouteTableId");
}
this.localGatewayRouteTableId = localGatewayRouteTableId;
return this;
}
@CustomType.Setter
public Builder poolCidrs(List poolCidrs) {
if (poolCidrs == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "poolCidrs");
}
this.poolCidrs = poolCidrs;
return this;
}
public Builder poolCidrs(String... poolCidrs) {
return poolCidrs(List.of(poolCidrs));
}
@CustomType.Setter
public Builder poolId(String poolId) {
if (poolId == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "poolId");
}
this.poolId = poolId;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetCoipPoolResult", "tags");
}
this.tags = tags;
return this;
}
public GetCoipPoolResult build() {
final var _resultValue = new GetCoipPoolResult();
_resultValue.arn = arn;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.localGatewayRouteTableId = localGatewayRouteTableId;
_resultValue.poolCidrs = poolCidrs;
_resultValue.poolId = poolId;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy