Class PrivatePricingAddendum
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PrivatePricingAddendum.Builder,PrivatePricingAddendum>
The details of a private pricing addendum contract.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe Amazon Resource Name (ARN) of the private pricing addendum.final List<ContractRestriction> The restrictions that limit the self-service actions you can take on the private pricing addendum.The restrictions that limit the self-service actions you can take on the private pricing addendum.final IntervalThe contract term period of the private pricing addendum, expressed as an interval with an inclusive start date and an inclusive end date.The payer accounts that are eligible under the private pricing addendum.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the ContractRestrictions property.final booleanFor responses, this returns true if the service returned a value for the EligiblePayerAccounts property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InvestmentAccounts property.final booleanFor responses, this returns true if the service returned a value for the LegalEntities property.The accounts that are eligible to receive investments under the private pricing addendum.final List<LegalEntity> The legal entities on the private pricing addendum.static Class<? extends PrivatePricingAddendum.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
-
contractArn
The Amazon Resource Name (ARN) of the private pricing addendum.
- Returns:
- The Amazon Resource Name (ARN) of the private pricing addendum.
-
contractTerm
The contract term period of the private pricing addendum, expressed as an interval with an inclusive start date and an inclusive end date.
- Returns:
- The contract term period of the private pricing addendum, expressed as an interval with an inclusive start date and an inclusive end date.
-
hasEligiblePayerAccounts
public final boolean hasEligiblePayerAccounts()For responses, this returns true if the service returned a value for the EligiblePayerAccounts 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. -
eligiblePayerAccounts
The payer accounts that are eligible under the private pricing addendum. The list contains at most 100 account 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
hasEligiblePayerAccounts()method.- Returns:
- The payer accounts that are eligible under the private pricing addendum. The list contains at most 100 account IDs.
-
hasInvestmentAccounts
public final boolean hasInvestmentAccounts()For responses, this returns true if the service returned a value for the InvestmentAccounts 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. -
investmentAccounts
The accounts that are eligible to receive investments under the private pricing addendum. An
InvestmentDistributionmust target one of these accounts. The list contains at most 100 account 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
hasInvestmentAccounts()method.- Returns:
- The accounts that are eligible to receive investments under the private pricing addendum. An
InvestmentDistributionmust target one of these accounts. The list contains at most 100 account IDs.
-
hasLegalEntities
public final boolean hasLegalEntities()For responses, this returns true if the service returned a value for the LegalEntities 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. -
legalEntities
The legal entities on the private pricing addendum. The list contains at most 10 legal entities.
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
hasLegalEntities()method.- Returns:
- The legal entities on the private pricing addendum. The list contains at most 10 legal entities.
-
contractRestrictions
The restrictions that limit the self-service actions you can take on the private pricing addendum. An empty or absent value indicates that no restrictions apply. The list contains at most 10 restrictions.
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
hasContractRestrictions()method.- Returns:
- The restrictions that limit the self-service actions you can take on the private pricing addendum. An empty or absent value indicates that no restrictions apply. The list contains at most 10 restrictions.
-
hasContractRestrictions
public final boolean hasContractRestrictions()For responses, this returns true if the service returned a value for the ContractRestrictions 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. -
contractRestrictionsAsStrings
The restrictions that limit the self-service actions you can take on the private pricing addendum. An empty or absent value indicates that no restrictions apply. The list contains at most 10 restrictions.
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
hasContractRestrictions()method.- Returns:
- The restrictions that limit the self-service actions you can take on the private pricing addendum. An empty or absent value indicates that no restrictions apply. The list contains at most 10 restrictions.
-
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<PrivatePricingAddendum.Builder,PrivatePricingAddendum> - 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.
-