
com.pulumi.aws.route53.outputs.GetResolverEndpointResult 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.route53.outputs;
import com.pulumi.aws.route53.outputs.GetResolverEndpointFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetResolverEndpointResult {
private String arn;
private String direction;
private @Nullable List filters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ipAddresses;
private String name;
private List protocols;
private @Nullable String resolverEndpointId;
private String resolverEndpointType;
private String status;
private String vpcId;
private GetResolverEndpointResult() {}
public String arn() {
return this.arn;
}
public String direction() {
return this.direction;
}
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 List ipAddresses() {
return this.ipAddresses;
}
public String name() {
return this.name;
}
public List protocols() {
return this.protocols;
}
public Optional resolverEndpointId() {
return Optional.ofNullable(this.resolverEndpointId);
}
public String resolverEndpointType() {
return this.resolverEndpointType;
}
public String status() {
return this.status;
}
public String vpcId() {
return this.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResolverEndpointResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String direction;
private @Nullable List filters;
private String id;
private List ipAddresses;
private String name;
private List protocols;
private @Nullable String resolverEndpointId;
private String resolverEndpointType;
private String status;
private String vpcId;
public Builder() {}
public Builder(GetResolverEndpointResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.direction = defaults.direction;
this.filters = defaults.filters;
this.id = defaults.id;
this.ipAddresses = defaults.ipAddresses;
this.name = defaults.name;
this.protocols = defaults.protocols;
this.resolverEndpointId = defaults.resolverEndpointId;
this.resolverEndpointType = defaults.resolverEndpointType;
this.status = defaults.status;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder direction(String direction) {
if (direction == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetResolverEndpointFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ipAddresses(List ipAddresses) {
if (ipAddresses == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "ipAddresses");
}
this.ipAddresses = ipAddresses;
return this;
}
public Builder ipAddresses(String... ipAddresses) {
return ipAddresses(List.of(ipAddresses));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder protocols(List protocols) {
if (protocols == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "protocols");
}
this.protocols = protocols;
return this;
}
public Builder protocols(String... protocols) {
return protocols(List.of(protocols));
}
@CustomType.Setter
public Builder resolverEndpointId(@Nullable String resolverEndpointId) {
this.resolverEndpointId = resolverEndpointId;
return this;
}
@CustomType.Setter
public Builder resolverEndpointType(String resolverEndpointType) {
if (resolverEndpointType == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "resolverEndpointType");
}
this.resolverEndpointType = resolverEndpointType;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder vpcId(String vpcId) {
if (vpcId == null) {
throw new MissingRequiredPropertyException("GetResolverEndpointResult", "vpcId");
}
this.vpcId = vpcId;
return this;
}
public GetResolverEndpointResult build() {
final var _resultValue = new GetResolverEndpointResult();
_resultValue.arn = arn;
_resultValue.direction = direction;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.ipAddresses = ipAddresses;
_resultValue.name = name;
_resultValue.protocols = protocols;
_resultValue.resolverEndpointId = resolverEndpointId;
_resultValue.resolverEndpointType = resolverEndpointType;
_resultValue.status = status;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy