Interface Ec2Instance.Builder

    • Method Detail

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