Class ContractSummary

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

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

A summary of a private pricing contract visible to your account. ListContracts returns these summaries.

See Also:
  • Method Details

    • contractArn

      public final String contractArn()

      The Amazon Resource Name (ARN) of the contract. Pass this value to operations such as GetContractInformation, ListContractualInvestmentSummaries, and AssociateContract.

      Returns:
      The Amazon Resource Name (ARN) of the contract. Pass this value to operations such as GetContractInformation, ListContractualInvestmentSummaries, and AssociateContract.
    • contractTerm

      public final Interval contractTerm()

      The contract term period of the contract, expressed as an interval with an inclusive start date and an inclusive end date.

      Returns:
      The contract term period of the contract, expressed as an interval with an inclusive start date and an inclusive end date.
    • contractType

      public final ContractType contractType()

      The classification of the contract. Valid values are Cross-Service, Service-Specific, and Other. Cross-Service applies across multiple Amazon Web Services services. Service-Specific applies to a specific Amazon Web Services service. Other applies to other arrangements.

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

      Returns:
      The classification of the contract. Valid values are Cross-Service, Service-Specific, and Other. Cross-Service applies across multiple Amazon Web Services services. Service-Specific applies to a specific Amazon Web Services service. Other applies to other arrangements.
      See Also:
    • contractTypeAsString

      public final String contractTypeAsString()

      The classification of the contract. Valid values are Cross-Service, Service-Specific, and Other. Cross-Service applies across multiple Amazon Web Services services. Service-Specific applies to a specific Amazon Web Services service. Other applies to other arrangements.

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

      Returns:
      The classification of the contract. Valid values are Cross-Service, Service-Specific, and Other. Cross-Service applies across multiple Amazon Web Services services. Service-Specific applies to a specific Amazon Web Services service. Other applies to other arrangements.
      See Also:
    • associationStatus

      public final AssociationStatus associationStatus()

      Indicates whether the contract is currently associated with your account. Valid values are ASSOCIATED and NOT_ASSOCIATED. ASSOCIATED means the contract is associated with your account. NOT_ASSOCIATED means the contract is not associated with your account.

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

      Returns:
      Indicates whether the contract is currently associated with your account. Valid values are ASSOCIATED and NOT_ASSOCIATED. ASSOCIATED means the contract is associated with your account. NOT_ASSOCIATED means the contract is not associated with your account.
      See Also:
    • associationStatusAsString

      public final String associationStatusAsString()

      Indicates whether the contract is currently associated with your account. Valid values are ASSOCIATED and NOT_ASSOCIATED. ASSOCIATED means the contract is associated with your account. NOT_ASSOCIATED means the contract is not associated with your account.

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

      Returns:
      Indicates whether the contract is currently associated with your account. Valid values are ASSOCIATED and NOT_ASSOCIATED. ASSOCIATED means the contract is associated with your account. NOT_ASSOCIATED means the contract is not associated with your account.
      See Also:
    • lastUpdatedAt

      public final Instant lastUpdatedAt()

      The time when the contract was last associated with your account.

      Returns:
      The time when the contract was last associated with your account.
    • toBuilder

      public ContractSummary.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<ContractSummary.Builder,ContractSummary>
      Returns:
      a builder for type T
    • builder

      public static ContractSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ContractSummary.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.