com.pulumi.aws.ec2.outputs.VpcEndpointSubnetConfiguration 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.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VpcEndpointSubnetConfiguration {
/**
* @return The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
*
*/
private @Nullable String ipv4;
/**
* @return The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
*
*/
private @Nullable String ipv6;
private @Nullable String subnetId;
private VpcEndpointSubnetConfiguration() {}
/**
* @return The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
*
*/
public Optional ipv4() {
return Optional.ofNullable(this.ipv4);
}
/**
* @return The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
*
*/
public Optional ipv6() {
return Optional.ofNullable(this.ipv6);
}
public Optional subnetId() {
return Optional.ofNullable(this.subnetId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpcEndpointSubnetConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String ipv4;
private @Nullable String ipv6;
private @Nullable String subnetId;
public Builder() {}
public Builder(VpcEndpointSubnetConfiguration defaults) {
Objects.requireNonNull(defaults);
this.ipv4 = defaults.ipv4;
this.ipv6 = defaults.ipv6;
this.subnetId = defaults.subnetId;
}
@CustomType.Setter
public Builder ipv4(@Nullable String ipv4) {
this.ipv4 = ipv4;
return this;
}
@CustomType.Setter
public Builder ipv6(@Nullable String ipv6) {
this.ipv6 = ipv6;
return this;
}
@CustomType.Setter
public Builder subnetId(@Nullable String subnetId) {
this.subnetId = subnetId;
return this;
}
public VpcEndpointSubnetConfiguration build() {
final var _resultValue = new VpcEndpointSubnetConfiguration();
_resultValue.ipv4 = ipv4;
_resultValue.ipv6 = ipv6;
_resultValue.subnetId = subnetId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy