com.pulumi.cloudflare.outputs.SpectrumApplicationEdgeIps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudflare Show documentation
Show all versions of cloudflare Show documentation
A Pulumi package for creating and managing Cloudflare 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.cloudflare.outputs;
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 SpectrumApplicationEdgeIps {
/**
* @return The IP versions supported for inbound connections on Spectrum anycast IPs. Required when `type` is not `static`. Available values: `all`, `ipv4`, `ipv6`.
*
*/
private @Nullable String connectivity;
/**
* @return The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
*
*/
private @Nullable List ips;
/**
* @return The type of edge IP configuration specified. Available values: `dynamic`, `static`.
*
*/
private String type;
private SpectrumApplicationEdgeIps() {}
/**
* @return The IP versions supported for inbound connections on Spectrum anycast IPs. Required when `type` is not `static`. Available values: `all`, `ipv4`, `ipv6`.
*
*/
public Optional connectivity() {
return Optional.ofNullable(this.connectivity);
}
/**
* @return The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
*
*/
public List ips() {
return this.ips == null ? List.of() : this.ips;
}
/**
* @return The type of edge IP configuration specified. Available values: `dynamic`, `static`.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SpectrumApplicationEdgeIps defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String connectivity;
private @Nullable List ips;
private String type;
public Builder() {}
public Builder(SpectrumApplicationEdgeIps defaults) {
Objects.requireNonNull(defaults);
this.connectivity = defaults.connectivity;
this.ips = defaults.ips;
this.type = defaults.type;
}
@CustomType.Setter
public Builder connectivity(@Nullable String connectivity) {
this.connectivity = connectivity;
return this;
}
@CustomType.Setter
public Builder ips(@Nullable List ips) {
this.ips = ips;
return this;
}
public Builder ips(String... ips) {
return ips(List.of(ips));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("SpectrumApplicationEdgeIps", "type");
}
this.type = type;
return this;
}
public SpectrumApplicationEdgeIps build() {
final var _resultValue = new SpectrumApplicationEdgeIps();
_resultValue.connectivity = connectivity;
_resultValue.ips = ips;
_resultValue.type = type;
return _resultValue;
}
}
}