@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageReportSubscription extends Object implements Serializable, Cloneable, StructuredPojo
Describes information about the usage report subscription.
Constructor and Description |
---|
UsageReportSubscription() |
Modifier and Type | Method and Description |
---|---|
UsageReportSubscription |
clone() |
boolean |
equals(Object obj) |
Date |
getLastGeneratedReportDate()
The time when the last usage report was generated.
|
String |
getS3BucketName()
The Amazon S3 bucket where generated reports are stored.
|
String |
getSchedule()
The schedule for generating usage reports.
|
List<LastReportGenerationExecutionError> |
getSubscriptionErrors()
The errors that were returned if usage reports couldn't be generated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLastGeneratedReportDate(Date lastGeneratedReportDate)
The time when the last usage report was generated.
|
void |
setS3BucketName(String s3BucketName)
The Amazon S3 bucket where generated reports are stored.
|
void |
setSchedule(String schedule)
The schedule for generating usage reports.
|
void |
setSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
|
String |
toString()
Returns a string representation of this object.
|
UsageReportSubscription |
withLastGeneratedReportDate(Date lastGeneratedReportDate)
The time when the last usage report was generated.
|
UsageReportSubscription |
withS3BucketName(String s3BucketName)
The Amazon S3 bucket where generated reports are stored.
|
UsageReportSubscription |
withSchedule(String schedule)
The schedule for generating usage reports.
|
UsageReportSubscription |
withSchedule(UsageReportSchedule schedule)
The schedule for generating usage reports.
|
UsageReportSubscription |
withSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
|
UsageReportSubscription |
withSubscriptionErrors(LastReportGenerationExecutionError... subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
|
public void setS3BucketName(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.
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.
public String getS3BucketName()
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.
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.
public UsageReportSubscription withS3BucketName(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.
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.
public void setSchedule(String schedule)
The schedule for generating usage reports.
schedule
- The schedule for generating usage reports.UsageReportSchedule
public String getSchedule()
The schedule for generating usage reports.
UsageReportSchedule
public UsageReportSubscription withSchedule(String schedule)
The schedule for generating usage reports.
schedule
- The schedule for generating usage reports.UsageReportSchedule
public UsageReportSubscription withSchedule(UsageReportSchedule schedule)
The schedule for generating usage reports.
schedule
- The schedule for generating usage reports.UsageReportSchedule
public void setLastGeneratedReportDate(Date lastGeneratedReportDate)
The time when the last usage report was generated.
lastGeneratedReportDate
- The time when the last usage report was generated.public Date getLastGeneratedReportDate()
The time when the last usage report was generated.
public UsageReportSubscription withLastGeneratedReportDate(Date lastGeneratedReportDate)
The time when the last usage report was generated.
lastGeneratedReportDate
- The time when the last usage report was generated.public List<LastReportGenerationExecutionError> getSubscriptionErrors()
The errors that were returned if usage reports couldn't be generated.
public void setSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
subscriptionErrors
- The errors that were returned if usage reports couldn't be generated.public UsageReportSubscription withSubscriptionErrors(LastReportGenerationExecutionError... subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
NOTE: This method appends the values to the existing list (if any). Use
setSubscriptionErrors(java.util.Collection)
or withSubscriptionErrors(java.util.Collection)
if
you want to override the existing values.
subscriptionErrors
- The errors that were returned if usage reports couldn't be generated.public UsageReportSubscription withSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that were returned if usage reports couldn't be generated.
subscriptionErrors
- The errors that were returned if usage reports couldn't be generated.public String toString()
toString
in class Object
Object.toString()
public UsageReportSubscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.