@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 are returned when usage reports can'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 are returned when usage reports can'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 are returned when usage reports can't be generated.
|
UsageReportSubscription |
withSubscriptionErrors(LastReportGenerationExecutionError... subscriptionErrors)
The errors that are returned when usage reports can't be generated.
|
public void setS3BucketName(String s3BucketName)
The Amazon S3 bucket where generated reports are stored. When a usage report subscription is enabled for the first time for an account in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS account and the Region.
s3BucketName - The Amazon S3 bucket where generated reports are stored. When a usage report subscription is enabled for
the first time for an account in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS
account and the Region.public String getS3BucketName()
The Amazon S3 bucket where generated reports are stored. When a usage report subscription is enabled for the first time for an account in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS account and the Region.
public UsageReportSubscription withS3BucketName(String s3BucketName)
The Amazon S3 bucket where generated reports are stored. When a usage report subscription is enabled for the first time for an account in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS account and the Region.
s3BucketName - The Amazon S3 bucket where generated reports are stored. When a usage report subscription is enabled for
the first time for an account in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS
account and the Region.public void setSchedule(String schedule)
The schedule for generating usage reports.
schedule - The schedule for generating usage reports.UsageReportSchedulepublic String getSchedule()
The schedule for generating usage reports.
UsageReportSchedulepublic UsageReportSubscription withSchedule(String schedule)
The schedule for generating usage reports.
schedule - The schedule for generating usage reports.UsageReportSchedulepublic UsageReportSubscription withSchedule(UsageReportSchedule schedule)
The schedule for generating usage reports.
schedule - The schedule for generating usage reports.UsageReportSchedulepublic 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 are returned when usage reports can't be generated.
public void setSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that are returned when usage reports can't be generated.
subscriptionErrors - The errors that are returned when usage reports can't be generated.public UsageReportSubscription withSubscriptionErrors(LastReportGenerationExecutionError... subscriptionErrors)
The errors that are returned when usage reports can'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 are returned when usage reports can't be generated.public UsageReportSubscription withSubscriptionErrors(Collection<LastReportGenerationExecutionError> subscriptionErrors)
The errors that are returned when usage reports can't be generated.
subscriptionErrors - The errors that are returned when usage reports can't be generated.public String toString()
toString in class ObjectObject.toString()public UsageReportSubscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.