Class ExpectedCharge

java.lang.Object
software.amazon.awssdk.services.marketplaceagreement.model.ExpectedCharge
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ExpectedCharge.Builder,ExpectedCharge>

@Generated("software.amazon.awssdk:codegen") public final class ExpectedCharge extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ExpectedCharge.Builder,ExpectedCharge>

Estimated charge for the request.

See Also:
  • Method Details

    • id

      public final String id()

      Unique identifier of the charge for a given agreement.

      Returns:
      Unique identifier of the charge for a given agreement.
    • time

      public final Instant time()

      The date and time when the charge is due to be invoiced. This is available only when the charge date is known.

      Returns:
      The date and time when the charge is due to be invoiced. This is available only when the charge date is known.
    • amount

      public final String amount()

      The tax-exclusive amount of the charge. Only available when the charge amount is known.

      Returns:
      The tax-exclusive amount of the charge. Only available when the charge amount is known.
    • amountAfterTax

      public final String amountAfterTax()

      The tax-inclusive amount the acceptor has to pay. The amount is only present for fixed charges.

      Returns:
      The tax-inclusive amount the acceptor has to pay. The amount is only present for fixed charges.
    • timing

      public final Timing timing()

      Indicates when the charge amount will be incurred. Values include ON_ACCEPTANCE (charged immediately when the agreement request is accepted), BILLING_PERIOD (charged on each billing period), and SCHEDULED (charged at a predetermined future date).

      If the service returns an enum value that is not available in the current SDK version, timing will return Timing.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from timingAsString().

      Returns:
      Indicates when the charge amount will be incurred. Values include ON_ACCEPTANCE (charged immediately when the agreement request is accepted), BILLING_PERIOD (charged on each billing period), and SCHEDULED (charged at a predetermined future date).
      See Also:
    • timingAsString

      public final String timingAsString()

      Indicates when the charge amount will be incurred. Values include ON_ACCEPTANCE (charged immediately when the agreement request is accepted), BILLING_PERIOD (charged on each billing period), and SCHEDULED (charged at a predetermined future date).

      If the service returns an enum value that is not available in the current SDK version, timing will return Timing.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from timingAsString().

      Returns:
      Indicates when the charge amount will be incurred. Values include ON_ACCEPTANCE (charged immediately when the agreement request is accepted), BILLING_PERIOD (charged on each billing period), and SCHEDULED (charged at a predetermined future date).
      See Also:
    • estimatedTaxes

      public final EstimatedTaxes estimatedTaxes()

      Provides an aggregated view of estimated tax information for this specific charge.

      Returns:
      Provides an aggregated view of estimated tax information for this specific charge.
    • toBuilder

      public ExpectedCharge.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ExpectedCharge.Builder,ExpectedCharge>
      Returns:
      a builder for type T
    • builder

      public static ExpectedCharge.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ExpectedCharge.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.