Class ChargeSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChargeSummary.Builder,ChargeSummary>
The ChargeSummary provides a detailed breakdown of charges that are associated with an agreement
request. This is applicable only when a request is created for a PurchaseAgreement.
Tax and invoicing fields (such as estimatedTaxes, amountAfterTax,
newAgreementValueAfterTax, and invoicingEntity) are returned on a best-effort basis and do
not cause the request to fail if unavailable.
A null tax amount can have two meanings:
-
Tax estimation was unavailable at the time of the request.
-
The charge timing is
BILLING_PERIOD, so the charge amount is not determined at request time. In this case, the tax breakdown may still include the taxrateandtype.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChargeSummary.Builderbuilder()final StringThe three-letter currency code for all charges (e.g., USD).final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final EstimatedTaxesProvides an aggregated view of estimated tax information for the agreement.final List<ExpectedCharge> A list of expected charges for the agreement request.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the ExpectedCharges property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the ItemizedCharges property.final InvoicingEntityThe entity responsible for issuing the invoice.final List<ItemizedCharge> An itemized list of charges for the agreement request.final StringThe total value of the agreement, which includes any amendments.final StringExpected new agreement value after estimated taxes are applied.static Class<? extends ChargeSummary.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
currencyCode
The three-letter currency code for all charges (e.g., USD).
- Returns:
- The three-letter currency code for all charges (e.g., USD).
-
newAgreementValue
The total value of the agreement, which includes any amendments.
- Returns:
- The total value of the agreement, which includes any amendments.
-
newAgreementValueAfterTax
Expected new agreement value after estimated taxes are applied.
- Returns:
- Expected new agreement value after estimated taxes are applied.
-
hasExpectedCharges
public final boolean hasExpectedCharges()For responses, this returns true if the service returned a value for the ExpectedCharges 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. -
expectedCharges
A list of expected charges for the agreement request.
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
hasExpectedCharges()method.- Returns:
- A list of expected charges for the agreement request.
-
estimatedTaxes
Provides an aggregated view of estimated tax information for the agreement.
- Returns:
- Provides an aggregated view of estimated tax information for the agreement.
-
hasItemizedCharges
public final boolean hasItemizedCharges()For responses, this returns true if the service returned a value for the ItemizedCharges 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. -
itemizedCharges
An itemized list of charges for the agreement request.
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
hasItemizedCharges()method.- Returns:
- An itemized list of charges for the agreement request.
-
invoicingEntity
The entity responsible for issuing the invoice.
- Returns:
- The entity responsible for issuing the invoice.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChargeSummary.Builder,ChargeSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-