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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UsageReportSubscription.BuilderlastGeneratedReportDate(Instant lastGeneratedReportDate)The time when the last usage report was generated.UsageReportSubscription.Builders3BucketName(String s3BucketName)The Amazon S3 bucket where generated reports are stored.UsageReportSubscription.Builderschedule(String schedule)The schedule for generating usage reports.UsageReportSubscription.Builderschedule(UsageReportSchedule schedule)The schedule for generating usage reports.UsageReportSubscription.BuildersubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)The errors that were returned if usage reports couldn't be generated.UsageReportSubscription.BuildersubscriptionErrors(Consumer<LastReportGenerationExecutionError.Builder>... subscriptionErrors)The errors that were returned if usage reports couldn't be generated.UsageReportSubscription.BuildersubscriptionErrors(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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
UsageReportSubscription.Builder schedule(String 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:
UsageReportSchedule,UsageReportSchedule
-
schedule
UsageReportSubscription.Builder schedule(UsageReportSchedule 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:
UsageReportSchedule,UsageReportSchedule
-
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
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.Builderavoiding the need to create one manually viaLastReportGenerationExecutionError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#subscriptionErrors(List.) - 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:
#subscriptionErrors(java.util.Collection)
-
-