Interface InstanceRequirements.Builder

  • Method Details

    • architecturesWithStrings

      InstanceRequirements.Builder architecturesWithStrings(Collection<String> architectures)

      A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

      Parameters:
      architectures - A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architecturesWithStrings

      InstanceRequirements.Builder architecturesWithStrings(String... architectures)

      A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

      Parameters:
      architectures - A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architectures

      InstanceRequirements.Builder architectures(Collection<Architecture> architectures)

      A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

      Parameters:
      architectures - A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architectures

      InstanceRequirements.Builder architectures(Architecture... architectures)

      A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

      Parameters:
      architectures - A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedInstanceTypes

      InstanceRequirements.Builder allowedInstanceTypes(Collection<String> allowedInstanceTypes)

      A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.

      Parameters:
      allowedInstanceTypes - A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedInstanceTypes

      InstanceRequirements.Builder allowedInstanceTypes(String... allowedInstanceTypes)

      A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.

      Parameters:
      allowedInstanceTypes - A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedInstanceTypes

      InstanceRequirements.Builder excludedInstanceTypes(Collection<String> excludedInstanceTypes)

      A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.

      Parameters:
      excludedInstanceTypes - A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedInstanceTypes

      InstanceRequirements.Builder excludedInstanceTypes(String... excludedInstanceTypes)

      A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.

      Parameters:
      excludedInstanceTypes - A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.