
com.pulumi.azurenative.awsconnector.outputs.AwsEc2NetworkInterfacePropertiesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.ConnectionTrackingSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.InstanceIpv6AddressResponse;
import com.pulumi.azurenative.awsconnector.outputs.Ipv4PrefixSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.Ipv6PrefixSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.PrivateIpAddressSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AwsEc2NetworkInterfacePropertiesResponse {
/**
* @return Property connectionTrackingSpecification
*
*/
private @Nullable ConnectionTrackingSpecificationResponse connectionTrackingSpecification;
/**
* @return A description for the network interface.
*
*/
private @Nullable String description;
/**
* @return If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.
*
*/
private @Nullable Boolean enablePrimaryIpv6;
/**
* @return A list of security group IDs associated with this network interface.
*
*/
private @Nullable List groupSet;
/**
* @return Network interface id.
*
*/
private @Nullable String id;
/**
* @return Indicates the type of network interface.
*
*/
private @Nullable String interfaceType;
/**
* @return The number of IPv4 prefixes to assign to a network interface. When you specify a number of IPv4 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /28 prefixes. You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
*
*/
private @Nullable Integer ipv4PrefixCount;
/**
* @return Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
*
*/
private @Nullable List ipv4Prefixes;
/**
* @return The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.
*
*/
private @Nullable Integer ipv6AddressCount;
/**
* @return One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
*
*/
private @Nullable List ipv6Addresses;
/**
* @return The number of IPv6 prefixes to assign to a network interface. When you specify a number of IPv6 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /80 prefixes. You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
*
*/
private @Nullable Integer ipv6PrefixCount;
/**
* @return Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
*
*/
private @Nullable List ipv6Prefixes;
/**
* @return The primary IPv6 address
*
*/
private @Nullable String primaryIpv6Address;
/**
* @return Returns the primary private IP address of the network interface.
*
*/
private @Nullable String primaryPrivateIpAddress;
/**
* @return Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property.
*
*/
private @Nullable String privateIpAddress;
/**
* @return Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
*
*/
private @Nullable List privateIpAddresses;
/**
* @return The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses
*
*/
private @Nullable Integer secondaryPrivateIpAddressCount;
/**
* @return Returns the secondary private IP addresses of the network interface.
*
*/
private @Nullable List secondaryPrivateIpAddresses;
/**
* @return Indicates whether traffic to or from the instance is validated.
*
*/
private @Nullable Boolean sourceDestCheck;
/**
* @return The ID of the subnet to associate with the network interface.
*
*/
private @Nullable String subnetId;
/**
* @return An arbitrary set of tags (key-value pairs) for this network interface.
*
*/
private @Nullable List tags;
/**
* @return The ID of the VPC
*
*/
private @Nullable String vpcId;
private AwsEc2NetworkInterfacePropertiesResponse() {}
/**
* @return Property connectionTrackingSpecification
*
*/
public Optional connectionTrackingSpecification() {
return Optional.ofNullable(this.connectionTrackingSpecification);
}
/**
* @return A description for the network interface.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.
*
*/
public Optional enablePrimaryIpv6() {
return Optional.ofNullable(this.enablePrimaryIpv6);
}
/**
* @return A list of security group IDs associated with this network interface.
*
*/
public List groupSet() {
return this.groupSet == null ? List.of() : this.groupSet;
}
/**
* @return Network interface id.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Indicates the type of network interface.
*
*/
public Optional interfaceType() {
return Optional.ofNullable(this.interfaceType);
}
/**
* @return The number of IPv4 prefixes to assign to a network interface. When you specify a number of IPv4 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /28 prefixes. You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
*
*/
public Optional ipv4PrefixCount() {
return Optional.ofNullable(this.ipv4PrefixCount);
}
/**
* @return Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
*
*/
public List ipv4Prefixes() {
return this.ipv4Prefixes == null ? List.of() : this.ipv4Prefixes;
}
/**
* @return The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.
*
*/
public Optional ipv6AddressCount() {
return Optional.ofNullable(this.ipv6AddressCount);
}
/**
* @return One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
*
*/
public List ipv6Addresses() {
return this.ipv6Addresses == null ? List.of() : this.ipv6Addresses;
}
/**
* @return The number of IPv6 prefixes to assign to a network interface. When you specify a number of IPv6 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /80 prefixes. You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
*
*/
public Optional ipv6PrefixCount() {
return Optional.ofNullable(this.ipv6PrefixCount);
}
/**
* @return Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
*
*/
public List ipv6Prefixes() {
return this.ipv6Prefixes == null ? List.of() : this.ipv6Prefixes;
}
/**
* @return The primary IPv6 address
*
*/
public Optional primaryIpv6Address() {
return Optional.ofNullable(this.primaryIpv6Address);
}
/**
* @return Returns the primary private IP address of the network interface.
*
*/
public Optional primaryPrivateIpAddress() {
return Optional.ofNullable(this.primaryPrivateIpAddress);
}
/**
* @return Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property.
*
*/
public Optional privateIpAddress() {
return Optional.ofNullable(this.privateIpAddress);
}
/**
* @return Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
*
*/
public List privateIpAddresses() {
return this.privateIpAddresses == null ? List.of() : this.privateIpAddresses;
}
/**
* @return The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses
*
*/
public Optional secondaryPrivateIpAddressCount() {
return Optional.ofNullable(this.secondaryPrivateIpAddressCount);
}
/**
* @return Returns the secondary private IP addresses of the network interface.
*
*/
public List secondaryPrivateIpAddresses() {
return this.secondaryPrivateIpAddresses == null ? List.of() : this.secondaryPrivateIpAddresses;
}
/**
* @return Indicates whether traffic to or from the instance is validated.
*
*/
public Optional sourceDestCheck() {
return Optional.ofNullable(this.sourceDestCheck);
}
/**
* @return The ID of the subnet to associate with the network interface.
*
*/
public Optional subnetId() {
return Optional.ofNullable(this.subnetId);
}
/**
* @return An arbitrary set of tags (key-value pairs) for this network interface.
*
*/
public List tags() {
return this.tags == null ? List.of() : this.tags;
}
/**
* @return The ID of the VPC
*
*/
public Optional vpcId() {
return Optional.ofNullable(this.vpcId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsEc2NetworkInterfacePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ConnectionTrackingSpecificationResponse connectionTrackingSpecification;
private @Nullable String description;
private @Nullable Boolean enablePrimaryIpv6;
private @Nullable List groupSet;
private @Nullable String id;
private @Nullable String interfaceType;
private @Nullable Integer ipv4PrefixCount;
private @Nullable List ipv4Prefixes;
private @Nullable Integer ipv6AddressCount;
private @Nullable List ipv6Addresses;
private @Nullable Integer ipv6PrefixCount;
private @Nullable List ipv6Prefixes;
private @Nullable String primaryIpv6Address;
private @Nullable String primaryPrivateIpAddress;
private @Nullable String privateIpAddress;
private @Nullable List privateIpAddresses;
private @Nullable Integer secondaryPrivateIpAddressCount;
private @Nullable List secondaryPrivateIpAddresses;
private @Nullable Boolean sourceDestCheck;
private @Nullable String subnetId;
private @Nullable List tags;
private @Nullable String vpcId;
public Builder() {}
public Builder(AwsEc2NetworkInterfacePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.connectionTrackingSpecification = defaults.connectionTrackingSpecification;
this.description = defaults.description;
this.enablePrimaryIpv6 = defaults.enablePrimaryIpv6;
this.groupSet = defaults.groupSet;
this.id = defaults.id;
this.interfaceType = defaults.interfaceType;
this.ipv4PrefixCount = defaults.ipv4PrefixCount;
this.ipv4Prefixes = defaults.ipv4Prefixes;
this.ipv6AddressCount = defaults.ipv6AddressCount;
this.ipv6Addresses = defaults.ipv6Addresses;
this.ipv6PrefixCount = defaults.ipv6PrefixCount;
this.ipv6Prefixes = defaults.ipv6Prefixes;
this.primaryIpv6Address = defaults.primaryIpv6Address;
this.primaryPrivateIpAddress = defaults.primaryPrivateIpAddress;
this.privateIpAddress = defaults.privateIpAddress;
this.privateIpAddresses = defaults.privateIpAddresses;
this.secondaryPrivateIpAddressCount = defaults.secondaryPrivateIpAddressCount;
this.secondaryPrivateIpAddresses = defaults.secondaryPrivateIpAddresses;
this.sourceDestCheck = defaults.sourceDestCheck;
this.subnetId = defaults.subnetId;
this.tags = defaults.tags;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder connectionTrackingSpecification(@Nullable ConnectionTrackingSpecificationResponse connectionTrackingSpecification) {
this.connectionTrackingSpecification = connectionTrackingSpecification;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder enablePrimaryIpv6(@Nullable Boolean enablePrimaryIpv6) {
this.enablePrimaryIpv6 = enablePrimaryIpv6;
return this;
}
@CustomType.Setter
public Builder groupSet(@Nullable List groupSet) {
this.groupSet = groupSet;
return this;
}
public Builder groupSet(String... groupSet) {
return groupSet(List.of(groupSet));
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder interfaceType(@Nullable String interfaceType) {
this.interfaceType = interfaceType;
return this;
}
@CustomType.Setter
public Builder ipv4PrefixCount(@Nullable Integer ipv4PrefixCount) {
this.ipv4PrefixCount = ipv4PrefixCount;
return this;
}
@CustomType.Setter
public Builder ipv4Prefixes(@Nullable List ipv4Prefixes) {
this.ipv4Prefixes = ipv4Prefixes;
return this;
}
public Builder ipv4Prefixes(Ipv4PrefixSpecificationResponse... ipv4Prefixes) {
return ipv4Prefixes(List.of(ipv4Prefixes));
}
@CustomType.Setter
public Builder ipv6AddressCount(@Nullable Integer ipv6AddressCount) {
this.ipv6AddressCount = ipv6AddressCount;
return this;
}
@CustomType.Setter
public Builder ipv6Addresses(@Nullable List ipv6Addresses) {
this.ipv6Addresses = ipv6Addresses;
return this;
}
public Builder ipv6Addresses(InstanceIpv6AddressResponse... ipv6Addresses) {
return ipv6Addresses(List.of(ipv6Addresses));
}
@CustomType.Setter
public Builder ipv6PrefixCount(@Nullable Integer ipv6PrefixCount) {
this.ipv6PrefixCount = ipv6PrefixCount;
return this;
}
@CustomType.Setter
public Builder ipv6Prefixes(@Nullable List ipv6Prefixes) {
this.ipv6Prefixes = ipv6Prefixes;
return this;
}
public Builder ipv6Prefixes(Ipv6PrefixSpecificationResponse... ipv6Prefixes) {
return ipv6Prefixes(List.of(ipv6Prefixes));
}
@CustomType.Setter
public Builder primaryIpv6Address(@Nullable String primaryIpv6Address) {
this.primaryIpv6Address = primaryIpv6Address;
return this;
}
@CustomType.Setter
public Builder primaryPrivateIpAddress(@Nullable String primaryPrivateIpAddress) {
this.primaryPrivateIpAddress = primaryPrivateIpAddress;
return this;
}
@CustomType.Setter
public Builder privateIpAddress(@Nullable String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
@CustomType.Setter
public Builder privateIpAddresses(@Nullable List privateIpAddresses) {
this.privateIpAddresses = privateIpAddresses;
return this;
}
public Builder privateIpAddresses(PrivateIpAddressSpecificationResponse... privateIpAddresses) {
return privateIpAddresses(List.of(privateIpAddresses));
}
@CustomType.Setter
public Builder secondaryPrivateIpAddressCount(@Nullable Integer secondaryPrivateIpAddressCount) {
this.secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount;
return this;
}
@CustomType.Setter
public Builder secondaryPrivateIpAddresses(@Nullable List secondaryPrivateIpAddresses) {
this.secondaryPrivateIpAddresses = secondaryPrivateIpAddresses;
return this;
}
public Builder secondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses) {
return secondaryPrivateIpAddresses(List.of(secondaryPrivateIpAddresses));
}
@CustomType.Setter
public Builder sourceDestCheck(@Nullable Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
return this;
}
@CustomType.Setter
public Builder subnetId(@Nullable String subnetId) {
this.subnetId = subnetId;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable List tags) {
this.tags = tags;
return this;
}
public Builder tags(TagResponse... tags) {
return tags(List.of(tags));
}
@CustomType.Setter
public Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
public AwsEc2NetworkInterfacePropertiesResponse build() {
final var _resultValue = new AwsEc2NetworkInterfacePropertiesResponse();
_resultValue.connectionTrackingSpecification = connectionTrackingSpecification;
_resultValue.description = description;
_resultValue.enablePrimaryIpv6 = enablePrimaryIpv6;
_resultValue.groupSet = groupSet;
_resultValue.id = id;
_resultValue.interfaceType = interfaceType;
_resultValue.ipv4PrefixCount = ipv4PrefixCount;
_resultValue.ipv4Prefixes = ipv4Prefixes;
_resultValue.ipv6AddressCount = ipv6AddressCount;
_resultValue.ipv6Addresses = ipv6Addresses;
_resultValue.ipv6PrefixCount = ipv6PrefixCount;
_resultValue.ipv6Prefixes = ipv6Prefixes;
_resultValue.primaryIpv6Address = primaryIpv6Address;
_resultValue.primaryPrivateIpAddress = primaryPrivateIpAddress;
_resultValue.privateIpAddress = privateIpAddress;
_resultValue.privateIpAddresses = privateIpAddresses;
_resultValue.secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount;
_resultValue.secondaryPrivateIpAddresses = secondaryPrivateIpAddresses;
_resultValue.sourceDestCheck = sourceDestCheck;
_resultValue.subnetId = subnetId;
_resultValue.tags = tags;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy