
com.pulumi.azurenative.awsconnector.outputs.AwsEc2AddressPropertiesResponse 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.DomainTypeEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AwsEc2AddressPropertiesResponse {
/**
* @return <p>The ID representing the allocation of the address.</p>
*
*/
private @Nullable String allocationId;
/**
* @return <p>The ID representing the association of the address with an instance.</p>
*
*/
private @Nullable String associationId;
/**
* @return <p>The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance). </p>
*
*/
private @Nullable String carrierIp;
/**
* @return <p>The customer-owned IP address.</p>
*
*/
private @Nullable String customerOwnedIp;
/**
* @return <p>The ID of the customer-owned address pool.</p>
*
*/
private @Nullable String customerOwnedIpv4Pool;
/**
* @return <p>The network (<code>vpc</code>).</p>
*
*/
private @Nullable DomainTypeEnumValueResponse domain;
/**
* @return <p>The ID of the instance that the address is associated with (if any).</p>
*
*/
private @Nullable String instanceId;
/**
* @return <p>The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.</p>
*
*/
private @Nullable String networkBorderGroup;
/**
* @return <p>The ID of the network interface.</p>
*
*/
private @Nullable String networkInterfaceId;
/**
* @return <p>The ID of the Amazon Web Services account that owns the network interface.</p>
*
*/
private @Nullable String networkInterfaceOwnerId;
/**
* @return <p>The private IP address associated with the Elastic IP address.</p>
*
*/
private @Nullable String privateIpAddress;
/**
* @return <p>The Elastic IP address.</p>
*
*/
private @Nullable String publicIp;
/**
* @return <p>The ID of an address pool.</p>
*
*/
private @Nullable String publicIpv4Pool;
/**
* @return <p>Any tags assigned to the Elastic IP address.</p>
*
*/
private @Nullable List tags;
private AwsEc2AddressPropertiesResponse() {}
/**
* @return <p>The ID representing the allocation of the address.</p>
*
*/
public Optional allocationId() {
return Optional.ofNullable(this.allocationId);
}
/**
* @return <p>The ID representing the association of the address with an instance.</p>
*
*/
public Optional associationId() {
return Optional.ofNullable(this.associationId);
}
/**
* @return <p>The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance). </p>
*
*/
public Optional carrierIp() {
return Optional.ofNullable(this.carrierIp);
}
/**
* @return <p>The customer-owned IP address.</p>
*
*/
public Optional customerOwnedIp() {
return Optional.ofNullable(this.customerOwnedIp);
}
/**
* @return <p>The ID of the customer-owned address pool.</p>
*
*/
public Optional customerOwnedIpv4Pool() {
return Optional.ofNullable(this.customerOwnedIpv4Pool);
}
/**
* @return <p>The network (<code>vpc</code>).</p>
*
*/
public Optional domain() {
return Optional.ofNullable(this.domain);
}
/**
* @return <p>The ID of the instance that the address is associated with (if any).</p>
*
*/
public Optional instanceId() {
return Optional.ofNullable(this.instanceId);
}
/**
* @return <p>The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.</p>
*
*/
public Optional networkBorderGroup() {
return Optional.ofNullable(this.networkBorderGroup);
}
/**
* @return <p>The ID of the network interface.</p>
*
*/
public Optional networkInterfaceId() {
return Optional.ofNullable(this.networkInterfaceId);
}
/**
* @return <p>The ID of the Amazon Web Services account that owns the network interface.</p>
*
*/
public Optional networkInterfaceOwnerId() {
return Optional.ofNullable(this.networkInterfaceOwnerId);
}
/**
* @return <p>The private IP address associated with the Elastic IP address.</p>
*
*/
public Optional privateIpAddress() {
return Optional.ofNullable(this.privateIpAddress);
}
/**
* @return <p>The Elastic IP address.</p>
*
*/
public Optional publicIp() {
return Optional.ofNullable(this.publicIp);
}
/**
* @return <p>The ID of an address pool.</p>
*
*/
public Optional publicIpv4Pool() {
return Optional.ofNullable(this.publicIpv4Pool);
}
/**
* @return <p>Any tags assigned to the Elastic IP address.</p>
*
*/
public List tags() {
return this.tags == null ? List.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsEc2AddressPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String allocationId;
private @Nullable String associationId;
private @Nullable String carrierIp;
private @Nullable String customerOwnedIp;
private @Nullable String customerOwnedIpv4Pool;
private @Nullable DomainTypeEnumValueResponse domain;
private @Nullable String instanceId;
private @Nullable String networkBorderGroup;
private @Nullable String networkInterfaceId;
private @Nullable String networkInterfaceOwnerId;
private @Nullable String privateIpAddress;
private @Nullable String publicIp;
private @Nullable String publicIpv4Pool;
private @Nullable List tags;
public Builder() {}
public Builder(AwsEc2AddressPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.allocationId = defaults.allocationId;
this.associationId = defaults.associationId;
this.carrierIp = defaults.carrierIp;
this.customerOwnedIp = defaults.customerOwnedIp;
this.customerOwnedIpv4Pool = defaults.customerOwnedIpv4Pool;
this.domain = defaults.domain;
this.instanceId = defaults.instanceId;
this.networkBorderGroup = defaults.networkBorderGroup;
this.networkInterfaceId = defaults.networkInterfaceId;
this.networkInterfaceOwnerId = defaults.networkInterfaceOwnerId;
this.privateIpAddress = defaults.privateIpAddress;
this.publicIp = defaults.publicIp;
this.publicIpv4Pool = defaults.publicIpv4Pool;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder allocationId(@Nullable String allocationId) {
this.allocationId = allocationId;
return this;
}
@CustomType.Setter
public Builder associationId(@Nullable String associationId) {
this.associationId = associationId;
return this;
}
@CustomType.Setter
public Builder carrierIp(@Nullable String carrierIp) {
this.carrierIp = carrierIp;
return this;
}
@CustomType.Setter
public Builder customerOwnedIp(@Nullable String customerOwnedIp) {
this.customerOwnedIp = customerOwnedIp;
return this;
}
@CustomType.Setter
public Builder customerOwnedIpv4Pool(@Nullable String customerOwnedIpv4Pool) {
this.customerOwnedIpv4Pool = customerOwnedIpv4Pool;
return this;
}
@CustomType.Setter
public Builder domain(@Nullable DomainTypeEnumValueResponse domain) {
this.domain = domain;
return this;
}
@CustomType.Setter
public Builder instanceId(@Nullable String instanceId) {
this.instanceId = instanceId;
return this;
}
@CustomType.Setter
public Builder networkBorderGroup(@Nullable String networkBorderGroup) {
this.networkBorderGroup = networkBorderGroup;
return this;
}
@CustomType.Setter
public Builder networkInterfaceId(@Nullable String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
return this;
}
@CustomType.Setter
public Builder networkInterfaceOwnerId(@Nullable String networkInterfaceOwnerId) {
this.networkInterfaceOwnerId = networkInterfaceOwnerId;
return this;
}
@CustomType.Setter
public Builder privateIpAddress(@Nullable String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
return this;
}
@CustomType.Setter
public Builder publicIp(@Nullable String publicIp) {
this.publicIp = publicIp;
return this;
}
@CustomType.Setter
public Builder publicIpv4Pool(@Nullable String publicIpv4Pool) {
this.publicIpv4Pool = publicIpv4Pool;
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));
}
public AwsEc2AddressPropertiesResponse build() {
final var _resultValue = new AwsEc2AddressPropertiesResponse();
_resultValue.allocationId = allocationId;
_resultValue.associationId = associationId;
_resultValue.carrierIp = carrierIp;
_resultValue.customerOwnedIp = customerOwnedIp;
_resultValue.customerOwnedIpv4Pool = customerOwnedIpv4Pool;
_resultValue.domain = domain;
_resultValue.instanceId = instanceId;
_resultValue.networkBorderGroup = networkBorderGroup;
_resultValue.networkInterfaceId = networkInterfaceId;
_resultValue.networkInterfaceOwnerId = networkInterfaceOwnerId;
_resultValue.privateIpAddress = privateIpAddress;
_resultValue.publicIp = publicIp;
_resultValue.publicIpv4Pool = publicIpv4Pool;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy