Interface PublisherReport.Builder

  • Method Details

    • reportId

      PublisherReport.Builder reportId(String reportId)

      The ID of the report. Use this ID with GetDownloadUrlForPublisherReport to download the report.

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

      PublisherReport.Builder reportType(String reportType)

      The type of the report. Valid values:

      • SUMMARY: The number of pulls and version checks for each image.

      • TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.

      Parameters:
      reportType - The type of the report. Valid values:

      • SUMMARY: The number of pulls and version checks for each image.

      • TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.

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

      The type of the report. Valid values:

      • SUMMARY: The number of pulls and version checks for each image.

      • TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.

      Parameters:
      reportType - The type of the report. Valid values:

      • SUMMARY: The number of pulls and version checks for each image.

      • TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.

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

      PublisherReport.Builder granularity(String granularity)

      The time period that the report covers. Valid values:

      • WEEKLY: Each report covers one week, from Monday to Sunday.

      • MONTHLY: Each report covers one calendar month.

      Parameters:
      granularity - The time period that the report covers. Valid values:

      • WEEKLY: Each report covers one week, from Monday to Sunday.

      • MONTHLY: Each report covers one calendar month.

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

      The time period that the report covers. Valid values:

      • WEEKLY: Each report covers one week, from Monday to Sunday.

      • MONTHLY: Each report covers one calendar month.

      Parameters:
      granularity - The time period that the report covers. Valid values:

      • WEEKLY: Each report covers one week, from Monday to Sunday.

      • MONTHLY: Each report covers one calendar month.

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

      The first and last dates of the time period that the report covers.

      Parameters:
      period - The first and last dates of the time period that the report covers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • period

      The first and last dates of the time period that the report covers.

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

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

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

      PublisherReport.Builder sizeInBytes(Long sizeInBytes)

      The size of the compressed report file, in bytes.

      Parameters:
      sizeInBytes - The size of the compressed report file, in bytes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      PublisherReport.Builder createdAt(Instant createdAt)

      The date and time that the report was created.

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