Class ReportDefinition
- java.lang.Object
-
- software.amazon.awssdk.services.costandusagereport.model.ReportDefinition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReportDefinition.Builder,ReportDefinition>
@Generated("software.amazon.awssdk:codegen") public final class ReportDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReportDefinition.Builder,ReportDefinition>
The definition of Amazon Web Services Cost and Usage Report. You can specify the report name, time unit, report format, compression format, S3 bucket, additional artifacts, and schema elements in the definition.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReportDefinition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AdditionalArtifact>additionalArtifacts()A list of manifests that you want Amazon Web Services to create for this report.List<String>additionalArtifactsAsStrings()A list of manifests that you want Amazon Web Services to create for this report.List<SchemaElement>additionalSchemaElements()A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.List<String>additionalSchemaElementsAsStrings()A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.StringbillingViewArn()The Amazon resource name of the billing view.static ReportDefinition.Builderbuilder()CompressionFormatcompression()Returns the value of the Compression property for this object.StringcompressionAsString()Returns the value of the Compression property for this object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ReportFormatformat()Returns the value of the Format property for this object.StringformatAsString()Returns the value of the Format property for this object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAdditionalArtifacts()For responses, this returns true if the service returned a value for the AdditionalArtifacts property.booleanhasAdditionalSchemaElements()For responses, this returns true if the service returned a value for the AdditionalSchemaElements property.inthashCode()BooleanrefreshClosedReports()Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months.StringreportName()Returns the value of the ReportName property for this object.ReportStatusreportStatus()The status of the report.ReportVersioningreportVersioning()Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.StringreportVersioningAsString()Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.Strings3Bucket()Returns the value of the S3Bucket property for this object.Strings3Prefix()Returns the value of the S3Prefix property for this object.AWSRegions3Region()Returns the value of the S3Region property for this object.Strings3RegionAsString()Returns the value of the S3Region property for this object.List<SdkField<?>>sdkFields()static Class<? extends ReportDefinition.Builder>serializableBuilderClass()TimeUnittimeUnit()Returns the value of the TimeUnit property for this object.StringtimeUnitAsString()Returns the value of the TimeUnit property for this object.ReportDefinition.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
reportName
public final String reportName()
Returns the value of the ReportName property for this object.- Returns:
- The value of the ReportName property for this object.
-
timeUnit
public final TimeUnit timeUnit()
Returns the value of the TimeUnit property for this object.If the service returns an enum value that is not available in the current SDK version,
timeUnitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeUnitAsString().- Returns:
- The value of the TimeUnit property for this object.
- See Also:
TimeUnit
-
timeUnitAsString
public final String timeUnitAsString()
Returns the value of the TimeUnit property for this object.If the service returns an enum value that is not available in the current SDK version,
timeUnitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeUnitAsString().- Returns:
- The value of the TimeUnit property for this object.
- See Also:
TimeUnit
-
format
public final ReportFormat format()
Returns the value of the Format property for this object.If the service returns an enum value that is not available in the current SDK version,
formatwill returnReportFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The value of the Format property for this object.
- See Also:
ReportFormat
-
formatAsString
public final String formatAsString()
Returns the value of the Format property for this object.If the service returns an enum value that is not available in the current SDK version,
formatwill returnReportFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The value of the Format property for this object.
- See Also:
ReportFormat
-
compression
public final CompressionFormat compression()
Returns the value of the Compression property for this object.If the service returns an enum value that is not available in the current SDK version,
compressionwill returnCompressionFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcompressionAsString().- Returns:
- The value of the Compression property for this object.
- See Also:
CompressionFormat
-
compressionAsString
public final String compressionAsString()
Returns the value of the Compression property for this object.If the service returns an enum value that is not available in the current SDK version,
compressionwill returnCompressionFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcompressionAsString().- Returns:
- The value of the Compression property for this object.
- See Also:
CompressionFormat
-
additionalSchemaElements
public final List<SchemaElement> additionalSchemaElements()
A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalSchemaElements()method.- Returns:
- A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.
-
hasAdditionalSchemaElements
public final boolean hasAdditionalSchemaElements()
For responses, this returns true if the service returned a value for the AdditionalSchemaElements property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
additionalSchemaElementsAsStrings
public final List<String> additionalSchemaElementsAsStrings()
A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalSchemaElements()method.- Returns:
- A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.
-
s3Bucket
public final String s3Bucket()
Returns the value of the S3Bucket property for this object.- Returns:
- The value of the S3Bucket property for this object.
-
s3Prefix
public final String s3Prefix()
Returns the value of the S3Prefix property for this object.- Returns:
- The value of the S3Prefix property for this object.
-
s3Region
public final AWSRegion s3Region()
Returns the value of the S3Region property for this object.If the service returns an enum value that is not available in the current SDK version,
s3Regionwill returnAWSRegion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3RegionAsString().- Returns:
- The value of the S3Region property for this object.
- See Also:
AWSRegion
-
s3RegionAsString
public final String s3RegionAsString()
Returns the value of the S3Region property for this object.If the service returns an enum value that is not available in the current SDK version,
s3Regionwill returnAWSRegion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3RegionAsString().- Returns:
- The value of the S3Region property for this object.
- See Also:
AWSRegion
-
additionalArtifacts
public final List<AdditionalArtifact> additionalArtifacts()
A list of manifests that you want Amazon Web Services to create for this report.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalArtifacts()method.- Returns:
- A list of manifests that you want Amazon Web Services to create for this report.
-
hasAdditionalArtifacts
public final boolean hasAdditionalArtifacts()
For responses, this returns true if the service returned a value for the AdditionalArtifacts property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
additionalArtifactsAsStrings
public final List<String> additionalArtifactsAsStrings()
A list of manifests that you want Amazon Web Services to create for this report.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdditionalArtifacts()method.- Returns:
- A list of manifests that you want Amazon Web Services to create for this report.
-
refreshClosedReports
public final Boolean refreshClosedReports()
Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months. These charges can include refunds, credits, or support fees.
- Returns:
- Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months. These charges can include refunds, credits, or support fees.
-
reportVersioning
public final ReportVersioning reportVersioning()
Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
If the service returns an enum value that is not available in the current SDK version,
reportVersioningwill returnReportVersioning.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreportVersioningAsString().- Returns:
- Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
- See Also:
ReportVersioning
-
reportVersioningAsString
public final String reportVersioningAsString()
Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
If the service returns an enum value that is not available in the current SDK version,
reportVersioningwill returnReportVersioning.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreportVersioningAsString().- Returns:
- Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
- See Also:
ReportVersioning
-
billingViewArn
public final String billingViewArn()
The Amazon resource name of the billing view. The
BillingViewArnis needed to create Amazon Web Services Cost and Usage Report for each billing group maintained in the Amazon Web Services Billing Conductor service. TheBillingViewArnfor a billing group can be constructed as:arn:aws:billing::payer-account-id:billingview/billing-group-primary-account-id- Returns:
- The Amazon resource name of the billing view. The
BillingViewArnis needed to create Amazon Web Services Cost and Usage Report for each billing group maintained in the Amazon Web Services Billing Conductor service. TheBillingViewArnfor a billing group can be constructed as:arn:aws:billing::payer-account-id:billingview/billing-group-primary-account-id
-
reportStatus
public final ReportStatus reportStatus()
The status of the report.
- Returns:
- The status of the report.
-
toBuilder
public ReportDefinition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReportDefinition.Builder,ReportDefinition>
-
builder
public static ReportDefinition.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReportDefinition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-