Interface LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder

    • Method Detail

      • associateCarrierIpAddress

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder associateCarrierIpAddress​(Boolean associateCarrierIpAddress)

        Associates a Carrier IP address with eth0 for a new network interface.

        Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.

        Parameters:
        associateCarrierIpAddress - Associates a Carrier IP address with eth0 for a new network interface.

        Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • associatePublicIpAddress

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder associatePublicIpAddress​(Boolean associatePublicIpAddress)

        Associates a public IPv4 address with eth0 for a new network interface.

        Parameters:
        associatePublicIpAddress - Associates a public IPv4 address with eth0 for a new network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deleteOnTermination

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder deleteOnTermination​(Boolean deleteOnTermination)

        Indicates whether the network interface is deleted when the instance is terminated.

        Parameters:
        deleteOnTermination - Indicates whether the network interface is deleted when the instance is terminated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • interfaceType

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder interfaceType​(String interfaceType)

        The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

        If you are not creating an EFA, specify interface or omit this parameter.

        Valid values: interface | efa

        Parameters:
        interfaceType - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

        If you are not creating an EFA, specify interface or omit this parameter.

        Valid values: interface | efa

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6AddressCount

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6AddressCount​(Integer ipv6AddressCount)

        The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

        Parameters:
        ipv6AddressCount - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Addresses

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Addresses​(Collection<InstanceIpv6AddressRequest> ipv6Addresses)

        One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.

        Parameters:
        ipv6Addresses - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Addresses

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Addresses​(InstanceIpv6AddressRequest... ipv6Addresses)

        One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.

        Parameters:
        ipv6Addresses - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateIpAddress

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder privateIpAddress​(String privateIpAddress)

        The primary private IPv4 address of the network interface.

        Parameters:
        privateIpAddress - The primary private IPv4 address of the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • secondaryPrivateIpAddressCount

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder secondaryPrivateIpAddressCount​(Integer secondaryPrivateIpAddressCount)

        The number of secondary private IPv4 addresses to assign to a network interface.

        Parameters:
        secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses to assign to a network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkCardIndex

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder networkCardIndex​(Integer networkCardIndex)

        The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

        Parameters:
        networkCardIndex - The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv4Prefixes

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4Prefixes​(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)

        One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

        Parameters:
        ipv4Prefixes - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv4Prefixes

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4Prefixes​(Ipv4PrefixSpecificationRequest... ipv4Prefixes)

        One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

        Parameters:
        ipv4Prefixes - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv4PrefixCount

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4PrefixCount​(Integer ipv4PrefixCount)

        The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

        Parameters:
        ipv4PrefixCount - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Prefixes

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Prefixes​(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)

        One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

        Parameters:
        ipv6Prefixes - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6Prefixes

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Prefixes​(Ipv6PrefixSpecificationRequest... ipv6Prefixes)

        One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

        Parameters:
        ipv6Prefixes - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6PrefixCount

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6PrefixCount​(Integer ipv6PrefixCount)

        The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

        Parameters:
        ipv6PrefixCount - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • primaryIpv6

        LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder primaryIpv6​(Boolean primaryIpv6)

        The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.

        Parameters:
        primaryIpv6 - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.