Interface ResourceTypeOption.Builder

    • Method Detail

      • optionName

        ResourceTypeOption.Builder optionName​(String optionName)

        The name of the option.

        • For ec2:Instance:

          Specify state-name - The current state of the EC2 instance.

        • For ec2:LaunchTemplate:

          Specify version-depth - The number of launch template versions to check, starting from the most recent version.

        Parameters:
        optionName - The name of the option.

        • For ec2:Instance:

          Specify state-name - The current state of the EC2 instance.

        • For ec2:LaunchTemplate:

          Specify version-depth - The number of launch template versions to check, starting from the most recent version.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ImageReferenceOptionName, ImageReferenceOptionName
      • optionName

        ResourceTypeOption.Builder optionName​(ImageReferenceOptionName optionName)

        The name of the option.

        • For ec2:Instance:

          Specify state-name - The current state of the EC2 instance.

        • For ec2:LaunchTemplate:

          Specify version-depth - The number of launch template versions to check, starting from the most recent version.

        Parameters:
        optionName - The name of the option.

        • For ec2:Instance:

          Specify state-name - The current state of the EC2 instance.

        • For ec2:LaunchTemplate:

          Specify version-depth - The number of launch template versions to check, starting from the most recent version.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ImageReferenceOptionName, ImageReferenceOptionName
      • optionValues

        ResourceTypeOption.Builder optionValues​(Collection<String> optionValues)

        A value for the specified option.

        • For state-name:

          • Valid values: pending | running | shutting-down | terminated | stopping | stopped

          • Default: All states

        • For version-depth:

          • Valid values: Integers between 1 and 10000

          • Default: 10

        Parameters:
        optionValues - A value for the specified option.

        • For state-name:

          • Valid values: pending | running | shutting-down | terminated | stopping | stopped

          • Default: All states

        • For version-depth:

          • Valid values: Integers between 1 and 10000

          • Default: 10

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

        ResourceTypeOption.Builder optionValues​(String... optionValues)

        A value for the specified option.

        • For state-name:

          • Valid values: pending | running | shutting-down | terminated | stopping | stopped

          • Default: All states

        • For version-depth:

          • Valid values: Integers between 1 and 10000

          • Default: 10

        Parameters:
        optionValues - A value for the specified option.

        • For state-name:

          • Valid values: pending | running | shutting-down | terminated | stopping | stopped

          • Default: All states

        • For version-depth:

          • Valid values: Integers between 1 and 10000

          • Default: 10

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