Class OfferTerm
java.lang.Object
software.amazon.awssdk.services.marketplacediscovery.model.OfferTerm
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OfferTerm.Builder,OfferTerm>
@Generated("software.amazon.awssdk:codegen")
public final class OfferTerm
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<OfferTerm.Builder,OfferTerm>
A term attached to an offer. Each element contains exactly one term type, such as a pricing term, legal term, or payment schedule term.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OfferTerm.Builderbuilder()final ByolPricingTermReturns the value of the ByolPricingTerm property for this object.Returns the value of the ConfigurableUpfrontPricingTerm property for this object.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FixedUpfrontPricingTermReturns the value of the FixedUpfrontPricingTerm property for this object.final FreeTrialPricingTermReturns the value of the FreeTrialPricingTerm property for this object.static OfferTermfromByolPricingTerm(Consumer<ByolPricingTerm.Builder> byolPricingTerm) Create an instance of this class withbyolPricingTerm()initialized to the given value.static OfferTermfromByolPricingTerm(ByolPricingTerm byolPricingTerm) Create an instance of this class withbyolPricingTerm()initialized to the given value.static OfferTermfromConfigurableUpfrontPricingTerm(Consumer<ConfigurableUpfrontPricingTerm.Builder> configurableUpfrontPricingTerm) Create an instance of this class withconfigurableUpfrontPricingTerm()initialized to the given value.static OfferTermfromConfigurableUpfrontPricingTerm(ConfigurableUpfrontPricingTerm configurableUpfrontPricingTerm) Create an instance of this class withconfigurableUpfrontPricingTerm()initialized to the given value.static OfferTermfromFixedUpfrontPricingTerm(Consumer<FixedUpfrontPricingTerm.Builder> fixedUpfrontPricingTerm) Create an instance of this class withfixedUpfrontPricingTerm()initialized to the given value.static OfferTermfromFixedUpfrontPricingTerm(FixedUpfrontPricingTerm fixedUpfrontPricingTerm) Create an instance of this class withfixedUpfrontPricingTerm()initialized to the given value.static OfferTermfromFreeTrialPricingTerm(Consumer<FreeTrialPricingTerm.Builder> freeTrialPricingTerm) Create an instance of this class withfreeTrialPricingTerm()initialized to the given value.static OfferTermfromFreeTrialPricingTerm(FreeTrialPricingTerm freeTrialPricingTerm) Create an instance of this class withfreeTrialPricingTerm()initialized to the given value.static OfferTermfromLegalTerm(Consumer<LegalTerm.Builder> legalTerm) Create an instance of this class withlegalTerm()initialized to the given value.static OfferTermfromLegalTerm(LegalTerm legalTerm) Create an instance of this class withlegalTerm()initialized to the given value.static OfferTermfromPaymentScheduleTerm(Consumer<PaymentScheduleTerm.Builder> paymentScheduleTerm) Create an instance of this class withpaymentScheduleTerm()initialized to the given value.static OfferTermfromPaymentScheduleTerm(PaymentScheduleTerm paymentScheduleTerm) Create an instance of this class withpaymentScheduleTerm()initialized to the given value.static OfferTermfromRecurringPaymentTerm(Consumer<RecurringPaymentTerm.Builder> recurringPaymentTerm) Create an instance of this class withrecurringPaymentTerm()initialized to the given value.static OfferTermfromRecurringPaymentTerm(RecurringPaymentTerm recurringPaymentTerm) Create an instance of this class withrecurringPaymentTerm()initialized to the given value.static OfferTermfromRenewalTerm(Consumer<RenewalTerm.Builder> renewalTerm) Create an instance of this class withrenewalTerm()initialized to the given value.static OfferTermfromRenewalTerm(RenewalTerm renewalTerm) Create an instance of this class withrenewalTerm()initialized to the given value.static OfferTermfromSupportTerm(Consumer<SupportTerm.Builder> supportTerm) Create an instance of this class withsupportTerm()initialized to the given value.static OfferTermfromSupportTerm(SupportTerm supportTerm) Create an instance of this class withsupportTerm()initialized to the given value.static OfferTermfromUsageBasedPricingTerm(Consumer<UsageBasedPricingTerm.Builder> usageBasedPricingTerm) Create an instance of this class withusageBasedPricingTerm()initialized to the given value.static OfferTermfromUsageBasedPricingTerm(UsageBasedPricingTerm usageBasedPricingTerm) Create an instance of this class withusageBasedPricingTerm()initialized to the given value.static OfferTermfromValidityTerm(Consumer<ValidityTerm.Builder> validityTerm) Create an instance of this class withvalidityTerm()initialized to the given value.static OfferTermfromValidityTerm(ValidityTerm validityTerm) Create an instance of this class withvalidityTerm()initialized to the given value.static OfferTermfromVariablePaymentTerm(Consumer<VariablePaymentTerm.Builder> variablePaymentTerm) Create an instance of this class withvariablePaymentTerm()initialized to the given value.static OfferTermfromVariablePaymentTerm(VariablePaymentTerm variablePaymentTerm) Create an instance of this class withvariablePaymentTerm()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LegalTermReturns the value of the LegalTerm property for this object.final PaymentScheduleTermReturns the value of the PaymentScheduleTerm property for this object.final RecurringPaymentTermReturns the value of the RecurringPaymentTerm property for this object.final RenewalTermReturns the value of the RenewalTerm property for this object.static Class<? extends OfferTerm.Builder> final SupportTermReturns the value of the SupportTerm property for this object.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.type()Retrieve an enum value representing which member of this object is populated.final UsageBasedPricingTermReturns the value of the UsageBasedPricingTerm property for this object.final ValidityTermReturns the value of the ValidityTerm property for this object.final VariablePaymentTermReturns the value of the VariablePaymentTerm property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
byolPricingTerm
Returns the value of the ByolPricingTerm property for this object.- Returns:
- The value of the ByolPricingTerm property for this object.
-
configurableUpfrontPricingTerm
Returns the value of the ConfigurableUpfrontPricingTerm property for this object.- Returns:
- The value of the ConfigurableUpfrontPricingTerm property for this object.
-
fixedUpfrontPricingTerm
Returns the value of the FixedUpfrontPricingTerm property for this object.- Returns:
- The value of the FixedUpfrontPricingTerm property for this object.
-
freeTrialPricingTerm
Returns the value of the FreeTrialPricingTerm property for this object.- Returns:
- The value of the FreeTrialPricingTerm property for this object.
-
legalTerm
Returns the value of the LegalTerm property for this object.- Returns:
- The value of the LegalTerm property for this object.
-
paymentScheduleTerm
Returns the value of the PaymentScheduleTerm property for this object.- Returns:
- The value of the PaymentScheduleTerm property for this object.
-
recurringPaymentTerm
Returns the value of the RecurringPaymentTerm property for this object.- Returns:
- The value of the RecurringPaymentTerm property for this object.
-
renewalTerm
Returns the value of the RenewalTerm property for this object.- Returns:
- The value of the RenewalTerm property for this object.
-
supportTerm
Returns the value of the SupportTerm property for this object.- Returns:
- The value of the SupportTerm property for this object.
-
usageBasedPricingTerm
Returns the value of the UsageBasedPricingTerm property for this object.- Returns:
- The value of the UsageBasedPricingTerm property for this object.
-
validityTerm
Returns the value of the ValidityTerm property for this object.- Returns:
- The value of the ValidityTerm property for this object.
-
variablePaymentTerm
Returns the value of the VariablePaymentTerm property for this object.- Returns:
- The value of the VariablePaymentTerm property for this object.
-
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<OfferTerm.Builder,OfferTerm> - 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
-
fromByolPricingTerm
Create an instance of this class withbyolPricingTerm()initialized to the given value. Sets the value of the ByolPricingTerm property for this object.- Parameters:
byolPricingTerm- The new value for the ByolPricingTerm property for this object.
-
fromByolPricingTerm
Create an instance of this class withbyolPricingTerm()initialized to the given value. Sets the value of the ByolPricingTerm property for this object.- Parameters:
byolPricingTerm- The new value for the ByolPricingTerm property for this object.
-
fromConfigurableUpfrontPricingTerm
public static OfferTerm fromConfigurableUpfrontPricingTerm(ConfigurableUpfrontPricingTerm configurableUpfrontPricingTerm) Create an instance of this class withconfigurableUpfrontPricingTerm()initialized to the given value. Sets the value of the ConfigurableUpfrontPricingTerm property for this object.- Parameters:
configurableUpfrontPricingTerm- The new value for the ConfigurableUpfrontPricingTerm property for this object.
-
fromConfigurableUpfrontPricingTerm
public static OfferTerm fromConfigurableUpfrontPricingTerm(Consumer<ConfigurableUpfrontPricingTerm.Builder> configurableUpfrontPricingTerm) Create an instance of this class withconfigurableUpfrontPricingTerm()initialized to the given value. Sets the value of the ConfigurableUpfrontPricingTerm property for this object.- Parameters:
configurableUpfrontPricingTerm- The new value for the ConfigurableUpfrontPricingTerm property for this object.
-
fromFixedUpfrontPricingTerm
public static OfferTerm fromFixedUpfrontPricingTerm(FixedUpfrontPricingTerm fixedUpfrontPricingTerm) Create an instance of this class withfixedUpfrontPricingTerm()initialized to the given value. Sets the value of the FixedUpfrontPricingTerm property for this object.- Parameters:
fixedUpfrontPricingTerm- The new value for the FixedUpfrontPricingTerm property for this object.
-
fromFixedUpfrontPricingTerm
public static OfferTerm fromFixedUpfrontPricingTerm(Consumer<FixedUpfrontPricingTerm.Builder> fixedUpfrontPricingTerm) Create an instance of this class withfixedUpfrontPricingTerm()initialized to the given value. Sets the value of the FixedUpfrontPricingTerm property for this object.- Parameters:
fixedUpfrontPricingTerm- The new value for the FixedUpfrontPricingTerm property for this object.
-
fromFreeTrialPricingTerm
Create an instance of this class withfreeTrialPricingTerm()initialized to the given value. Sets the value of the FreeTrialPricingTerm property for this object.- Parameters:
freeTrialPricingTerm- The new value for the FreeTrialPricingTerm property for this object.
-
fromFreeTrialPricingTerm
public static OfferTerm fromFreeTrialPricingTerm(Consumer<FreeTrialPricingTerm.Builder> freeTrialPricingTerm) Create an instance of this class withfreeTrialPricingTerm()initialized to the given value. Sets the value of the FreeTrialPricingTerm property for this object.- Parameters:
freeTrialPricingTerm- The new value for the FreeTrialPricingTerm property for this object.
-
fromLegalTerm
Create an instance of this class withlegalTerm()initialized to the given value. Sets the value of the LegalTerm property for this object.- Parameters:
legalTerm- The new value for the LegalTerm property for this object.
-
fromLegalTerm
Create an instance of this class withlegalTerm()initialized to the given value. Sets the value of the LegalTerm property for this object.- Parameters:
legalTerm- The new value for the LegalTerm property for this object.
-
fromPaymentScheduleTerm
Create an instance of this class withpaymentScheduleTerm()initialized to the given value. Sets the value of the PaymentScheduleTerm property for this object.- Parameters:
paymentScheduleTerm- The new value for the PaymentScheduleTerm property for this object.
-
fromPaymentScheduleTerm
public static OfferTerm fromPaymentScheduleTerm(Consumer<PaymentScheduleTerm.Builder> paymentScheduleTerm) Create an instance of this class withpaymentScheduleTerm()initialized to the given value. Sets the value of the PaymentScheduleTerm property for this object.- Parameters:
paymentScheduleTerm- The new value for the PaymentScheduleTerm property for this object.
-
fromRecurringPaymentTerm
Create an instance of this class withrecurringPaymentTerm()initialized to the given value. Sets the value of the RecurringPaymentTerm property for this object.- Parameters:
recurringPaymentTerm- The new value for the RecurringPaymentTerm property for this object.
-
fromRecurringPaymentTerm
public static OfferTerm fromRecurringPaymentTerm(Consumer<RecurringPaymentTerm.Builder> recurringPaymentTerm) Create an instance of this class withrecurringPaymentTerm()initialized to the given value. Sets the value of the RecurringPaymentTerm property for this object.- Parameters:
recurringPaymentTerm- The new value for the RecurringPaymentTerm property for this object.
-
fromRenewalTerm
Create an instance of this class withrenewalTerm()initialized to the given value. Sets the value of the RenewalTerm property for this object.- Parameters:
renewalTerm- The new value for the RenewalTerm property for this object.
-
fromRenewalTerm
Create an instance of this class withrenewalTerm()initialized to the given value. Sets the value of the RenewalTerm property for this object.- Parameters:
renewalTerm- The new value for the RenewalTerm property for this object.
-
fromSupportTerm
Create an instance of this class withsupportTerm()initialized to the given value. Sets the value of the SupportTerm property for this object.- Parameters:
supportTerm- The new value for the SupportTerm property for this object.
-
fromSupportTerm
Create an instance of this class withsupportTerm()initialized to the given value. Sets the value of the SupportTerm property for this object.- Parameters:
supportTerm- The new value for the SupportTerm property for this object.
-
fromUsageBasedPricingTerm
Create an instance of this class withusageBasedPricingTerm()initialized to the given value. Sets the value of the UsageBasedPricingTerm property for this object.- Parameters:
usageBasedPricingTerm- The new value for the UsageBasedPricingTerm property for this object.
-
fromUsageBasedPricingTerm
public static OfferTerm fromUsageBasedPricingTerm(Consumer<UsageBasedPricingTerm.Builder> usageBasedPricingTerm) Create an instance of this class withusageBasedPricingTerm()initialized to the given value. Sets the value of the UsageBasedPricingTerm property for this object.- Parameters:
usageBasedPricingTerm- The new value for the UsageBasedPricingTerm property for this object.
-
fromValidityTerm
Create an instance of this class withvalidityTerm()initialized to the given value. Sets the value of the ValidityTerm property for this object.- Parameters:
validityTerm- The new value for the ValidityTerm property for this object.
-
fromValidityTerm
Create an instance of this class withvalidityTerm()initialized to the given value. Sets the value of the ValidityTerm property for this object.- Parameters:
validityTerm- The new value for the ValidityTerm property for this object.
-
fromVariablePaymentTerm
Create an instance of this class withvariablePaymentTerm()initialized to the given value. Sets the value of the VariablePaymentTerm property for this object.- Parameters:
variablePaymentTerm- The new value for the VariablePaymentTerm property for this object.
-
fromVariablePaymentTerm
public static OfferTerm fromVariablePaymentTerm(Consumer<VariablePaymentTerm.Builder> variablePaymentTerm) Create an instance of this class withvariablePaymentTerm()initialized to the given value. Sets the value of the VariablePaymentTerm property for this object.- Parameters:
variablePaymentTerm- The new value for the VariablePaymentTerm property for this object.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beOfferTerm.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beOfferTerm.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-