Interface UsageReportSubscription.Builder

All Superinterfaces:
Buildable, CopyableBuilder<UsageReportSubscription.Builder,UsageReportSubscription>, SdkBuilder<UsageReportSubscription.Builder,UsageReportSubscription>, SdkPojo
Enclosing class:
UsageReportSubscription

public static interface UsageReportSubscription.Builder extends SdkPojo, CopyableBuilder<UsageReportSubscription.Builder,UsageReportSubscription>
  • Method Details

    • s3BucketName

      UsageReportSubscription.Builder s3BucketName(String s3BucketName)

      The Amazon S3 bucket where generated reports are stored.

      If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven't already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.

      Parameters:
      s3BucketName - The Amazon S3 bucket where generated reports are stored.

      If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven't already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.

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

      The schedule for generating usage reports.

      Parameters:
      schedule - The schedule for generating usage reports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schedule

      The schedule for generating usage reports.

      Parameters:
      schedule - The schedule for generating usage reports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastGeneratedReportDate

      UsageReportSubscription.Builder lastGeneratedReportDate(Instant lastGeneratedReportDate)

      The time when the last usage report was generated.

      Parameters:
      lastGeneratedReportDate - The time when the last usage report was generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscriptionErrors

      The errors that were returned if usage reports couldn't be generated.

      Parameters:
      subscriptionErrors - The errors that were returned if usage reports couldn't be generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscriptionErrors

      UsageReportSubscription.Builder subscriptionErrors(LastReportGenerationExecutionError... subscriptionErrors)

      The errors that were returned if usage reports couldn't be generated.

      Parameters:
      subscriptionErrors - The errors that were returned if usage reports couldn't be generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscriptionErrors

      The errors that were returned if usage reports couldn't be generated.

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

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

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