Interface Ec2Instance.Builder

  • Method Details

    • availabilityZone

      Ec2Instance.Builder availabilityZone(String availabilityZone)

      The availability zone of the Amazon EC2 instance. For more information, see Availability zones in the Amazon EC2 User Guide.

      Parameters:
      availabilityZone - The availability zone of the Amazon EC2 instance. For more information, see Availability zones in the Amazon EC2 User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageDescription

      Ec2Instance.Builder imageDescription(String imageDescription)

      The image description of the Amazon EC2 instance.

      Parameters:
      imageDescription - The image description of the Amazon EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceState

      Ec2Instance.Builder instanceState(String instanceState)

      The state of the Amazon EC2 instance. For more information, see Amazon EC2 instance state changes in the Amazon EC2 User Guide.

      Parameters:
      instanceState - The state of the Amazon EC2 instance. For more information, see Amazon EC2 instance state changes in the Amazon EC2 User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfile

      Ec2Instance.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
      Sets the value of the IamInstanceProfile property for this object.
      Parameters:
      iamInstanceProfile - The new value for the IamInstanceProfile property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfile

      default Ec2Instance.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)
      Sets the value of the IamInstanceProfile property for this object. This is a convenience method that creates an instance of the IamInstanceProfile.Builder avoiding the need to create one manually via IamInstanceProfile.builder().

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

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

      Ec2Instance.Builder instanceType(String instanceType)

      Type of the Amazon EC2 instance.

      Parameters:
      instanceType - Type of the Amazon EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outpostArn

      Ec2Instance.Builder outpostArn(String outpostArn)

      The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. This shows applicable Amazon Web Services Outposts instances.

      Parameters:
      outpostArn - The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. This shows applicable Amazon Web Services Outposts instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • platform

      Ec2Instance.Builder platform(String platform)

      The platform of the Amazon EC2 instance.

      Parameters:
      platform - The platform of the Amazon EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productCodes

      Ec2Instance.Builder productCodes(Collection<ProductCode> productCodes)

      The product code of the Amazon EC2 instance.

      Parameters:
      productCodes - The product code of the Amazon EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productCodes

      Ec2Instance.Builder productCodes(ProductCode... productCodes)

      The product code of the Amazon EC2 instance.

      Parameters:
      productCodes - The product code of the Amazon EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productCodes

      Ec2Instance.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)

      The product code of the Amazon EC2 instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to productCodes(List<ProductCode>).

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

      Ec2Instance.Builder ec2NetworkInterfaceUids(Collection<String> ec2NetworkInterfaceUids)

      The ID of the network interface.

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

      Ec2Instance.Builder ec2NetworkInterfaceUids(String... ec2NetworkInterfaceUids)

      The ID of the network interface.

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