Class EipAssociationState.Builder

  • Enclosing class:
    EipAssociationState

    public static final class EipAssociationState.Builder
    extends java.lang.Object
    • Method Detail

      • allocationId

        public EipAssociationState.Builder allocationId​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> allocationId)
        Parameters:
        allocationId - The allocation ID. This is required for EC2-VPC.
        Returns:
        builder
      • allocationId

        public EipAssociationState.Builder allocationId​(java.lang.String allocationId)
        Parameters:
        allocationId - The allocation ID. This is required for EC2-VPC.
        Returns:
        builder
      • allowReassociation

        public EipAssociationState.Builder allowReassociation​(@Nullable
                                                              com.pulumi.core.Output<java.lang.Boolean> allowReassociation)
        Parameters:
        allowReassociation - Whether to allow an Elastic IP to be re-associated. Defaults to `true` in VPC.
        Returns:
        builder
      • allowReassociation

        public EipAssociationState.Builder allowReassociation​(java.lang.Boolean allowReassociation)
        Parameters:
        allowReassociation - Whether to allow an Elastic IP to be re-associated. Defaults to `true` in VPC.
        Returns:
        builder
      • instanceId

        public EipAssociationState.Builder instanceId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> instanceId)
        Parameters:
        instanceId - The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
        Returns:
        builder
      • instanceId

        public EipAssociationState.Builder instanceId​(java.lang.String instanceId)
        Parameters:
        instanceId - The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
        Returns:
        builder
      • networkInterfaceId

        public EipAssociationState.Builder networkInterfaceId​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> networkInterfaceId)
        Parameters:
        networkInterfaceId - The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
        Returns:
        builder
      • networkInterfaceId

        public EipAssociationState.Builder networkInterfaceId​(java.lang.String networkInterfaceId)
        Parameters:
        networkInterfaceId - The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
        Returns:
        builder
      • privateIpAddress

        public EipAssociationState.Builder privateIpAddress​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> privateIpAddress)
        Parameters:
        privateIpAddress - The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
        Returns:
        builder
      • privateIpAddress

        public EipAssociationState.Builder privateIpAddress​(java.lang.String privateIpAddress)
        Parameters:
        privateIpAddress - The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
        Returns:
        builder
      • publicIp

        public EipAssociationState.Builder publicIp​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> publicIp)
        Parameters:
        publicIp - The Elastic IP address. This is required for EC2-Classic.
        Returns:
        builder
      • publicIp

        public EipAssociationState.Builder publicIp​(java.lang.String publicIp)
        Parameters:
        publicIp - The Elastic IP address. This is required for EC2-Classic.
        Returns:
        builder