Interface AttachNetworkInterfaceRequest.Builder

  • Method Details

    • networkCardIndex

      AttachNetworkInterfaceRequest.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.
    • enaSrdSpecification

      AttachNetworkInterfaceRequest.Builder enaSrdSpecification(EnaSrdSpecification enaSrdSpecification)

      Configures ENA Express for the network interface that this action attaches to the instance.

      Parameters:
      enaSrdSpecification - Configures ENA Express for the network interface that this action attaches to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enaSrdSpecification

      default AttachNetworkInterfaceRequest.Builder enaSrdSpecification(Consumer<EnaSrdSpecification.Builder> enaSrdSpecification)

      Configures ENA Express for the network interface that this action attaches to the instance.

      This is a convenience method that creates an instance of the EnaSrdSpecification.Builder avoiding the need to create one manually via EnaSrdSpecification.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to enaSrdSpecification(EnaSrdSpecification).

      Parameters:
      enaSrdSpecification - a consumer that will call methods on EnaSrdSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dryRun

      Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

      Parameters:
      dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaceId

      AttachNetworkInterfaceRequest.Builder networkInterfaceId(String networkInterfaceId)

      The ID of the network interface.

      Parameters:
      networkInterfaceId - The ID of the network interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceId

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deviceIndex

      The index of the device for the network interface attachment.

      Parameters:
      deviceIndex - The index of the device for the network interface attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      AttachNetworkInterfaceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.