Interface ImageUsageReport.Builder

  • Method Details

    • imageId

      ImageUsageReport.Builder imageId(String imageId)

      The ID of the image that was specified when the report was created.

      Parameters:
      imageId - The ID of the image that was specified when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reportId

      ImageUsageReport.Builder reportId(String reportId)

      The ID of the report.

      Parameters:
      reportId - The ID of the report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypes

      The resource types that were specified when the report was created.

      Parameters:
      resourceTypes - The resource types that were specified when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypes

      ImageUsageReport.Builder resourceTypes(ImageUsageResourceType... resourceTypes)

      The resource types that were specified when the report was created.

      Parameters:
      resourceTypes - The resource types that were specified when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypes

      The resource types that were specified when the report was created.

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

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

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

      ImageUsageReport.Builder accountIds(Collection<String> accountIds)

      The IDs of the Amazon Web Services accounts that were specified when the report was created.

      Parameters:
      accountIds - The IDs of the Amazon Web Services accounts that were specified when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountIds

      ImageUsageReport.Builder accountIds(String... accountIds)

      The IDs of the Amazon Web Services accounts that were specified when the report was created.

      Parameters:
      accountIds - The IDs of the Amazon Web Services accounts that were specified when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current state of the report. Possible values:

      • available - The report is available to view.

      • pending - The report is being created and not available to view.

      • error - The report could not be created.

      Parameters:
      state - The current state of the report. Possible values:

      • available - The report is available to view.

      • pending - The report is being created and not available to view.

      • error - The report could not be created.

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

      ImageUsageReport.Builder stateReason(String stateReason)

      Provides additional details when the report is in an error state.

      Parameters:
      stateReason - Provides additional details when the report is in an error state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      ImageUsageReport.Builder creationTime(Instant creationTime)

      The date and time when the report was created.

      Parameters:
      creationTime - The date and time when the report was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expirationTime

      ImageUsageReport.Builder expirationTime(Instant expirationTime)

      The date and time when Amazon EC2 will delete the report (30 days after the report was created).

      Parameters:
      expirationTime - The date and time when Amazon EC2 will delete the report (30 days after the report was created).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the report.

      Parameters:
      tags - Any tags assigned to the report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the report.

      Parameters:
      tags - Any tags assigned to the report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the report.

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

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

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