Interface UsageReportSubscription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UsageReportSubscription.Builder,
,UsageReportSubscription> SdkBuilder<UsageReportSubscription.Builder,
,UsageReportSubscription> SdkPojo
- Enclosing class:
UsageReportSubscription
-
Method Summary
Modifier and TypeMethodDescriptionlastGeneratedReportDate
(Instant lastGeneratedReportDate) The time when the last usage report was generated.s3BucketName
(String s3BucketName) The Amazon S3 bucket where generated reports are stored.The schedule for generating usage reports.schedule
(UsageReportSchedule schedule) The schedule for generating usage reports.subscriptionErrors
(Collection<LastReportGenerationExecutionError> subscriptionErrors) The errors that were returned if usage reports couldn't be generated.subscriptionErrors
(Consumer<LastReportGenerationExecutionError.Builder>... subscriptionErrors) The errors that were returned if usage reports couldn't be generated.subscriptionErrors
(LastReportGenerationExecutionError... subscriptionErrors) The errors that were returned if usage reports couldn't be generated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
UsageReportSubscription.Builder subscriptionErrors(Collection<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
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
UsageReportSubscription.Builder subscriptionErrors(Consumer<LastReportGenerationExecutionError.Builder>... subscriptionErrors) The errors that were returned if usage reports couldn't be generated.
This is a convenience method that creates an instance of theLastReportGenerationExecutionError.Builder
avoiding the need to create one manually viaLastReportGenerationExecutionError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubscriptionErrors(List<LastReportGenerationExecutionError>)
.- Parameters:
subscriptionErrors
- a consumer that will call methods onLastReportGenerationExecutionError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-