Interface ReservationPurchaseRecommendation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>,SdkBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>,SdkPojo
- Enclosing class:
- ReservationPurchaseRecommendation
public static interface ReservationPurchaseRecommendation.Builder extends SdkPojo, CopyableBuilder<ReservationPurchaseRecommendation.Builder,ReservationPurchaseRecommendation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ReservationPurchaseRecommendation.BuilderaccountScope(String accountScope)The account scope that Amazon Web Services recommends that you purchase this instance for.ReservationPurchaseRecommendation.BuilderaccountScope(AccountScope accountScope)The account scope that Amazon Web Services recommends that you purchase this instance for.ReservationPurchaseRecommendation.BuilderlookbackPeriodInDays(String lookbackPeriodInDays)How many days of previous usage that Amazon Web Services considers when making this recommendation.ReservationPurchaseRecommendation.BuilderlookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays)How many days of previous usage that Amazon Web Services considers when making this recommendation.ReservationPurchaseRecommendation.BuilderpaymentOption(String paymentOption)The payment option for the reservation (for example,AllUpfrontorNoUpfront).ReservationPurchaseRecommendation.BuilderpaymentOption(PaymentOption paymentOption)The payment option for the reservation (for example,AllUpfrontorNoUpfront).ReservationPurchaseRecommendation.BuilderrecommendationDetails(Collection<ReservationPurchaseRecommendationDetail> recommendationDetails)Details about the recommended purchases.ReservationPurchaseRecommendation.BuilderrecommendationDetails(Consumer<ReservationPurchaseRecommendationDetail.Builder>... recommendationDetails)Details about the recommended purchases.ReservationPurchaseRecommendation.BuilderrecommendationDetails(ReservationPurchaseRecommendationDetail... recommendationDetails)Details about the recommended purchases.default ReservationPurchaseRecommendation.BuilderrecommendationSummary(Consumer<ReservationPurchaseRecommendationSummary.Builder> recommendationSummary)A summary about the recommended purchase.ReservationPurchaseRecommendation.BuilderrecommendationSummary(ReservationPurchaseRecommendationSummary recommendationSummary)A summary about the recommended purchase.default ReservationPurchaseRecommendation.BuilderserviceSpecification(Consumer<ServiceSpecification.Builder> serviceSpecification)Hardware specifications for the service that you want recommendations for.ReservationPurchaseRecommendation.BuilderserviceSpecification(ServiceSpecification serviceSpecification)Hardware specifications for the service that you want recommendations for.ReservationPurchaseRecommendation.BuildertermInYears(String termInYears)The term of the reservation that you want recommendations for, in years.ReservationPurchaseRecommendation.BuildertermInYears(TermInYears termInYears)The term of the reservation that you want recommendations for, in years.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
accountScope
ReservationPurchaseRecommendation.Builder accountScope(String accountScope)
The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
- Parameters:
accountScope- The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccountScope,AccountScope
-
accountScope
ReservationPurchaseRecommendation.Builder accountScope(AccountScope accountScope)
The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.
- Parameters:
accountScope- The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccountScope,AccountScope
-
lookbackPeriodInDays
ReservationPurchaseRecommendation.Builder lookbackPeriodInDays(String lookbackPeriodInDays)
How many days of previous usage that Amazon Web Services considers when making this recommendation.
- Parameters:
lookbackPeriodInDays- How many days of previous usage that Amazon Web Services considers when making this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LookbackPeriodInDays,LookbackPeriodInDays
-
lookbackPeriodInDays
ReservationPurchaseRecommendation.Builder lookbackPeriodInDays(LookbackPeriodInDays lookbackPeriodInDays)
How many days of previous usage that Amazon Web Services considers when making this recommendation.
- Parameters:
lookbackPeriodInDays- How many days of previous usage that Amazon Web Services considers when making this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LookbackPeriodInDays,LookbackPeriodInDays
-
termInYears
ReservationPurchaseRecommendation.Builder termInYears(String termInYears)
The term of the reservation that you want recommendations for, in years.
- Parameters:
termInYears- The term of the reservation that you want recommendations for, in years.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TermInYears,TermInYears
-
termInYears
ReservationPurchaseRecommendation.Builder termInYears(TermInYears termInYears)
The term of the reservation that you want recommendations for, in years.
- Parameters:
termInYears- The term of the reservation that you want recommendations for, in years.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TermInYears,TermInYears
-
paymentOption
ReservationPurchaseRecommendation.Builder paymentOption(String paymentOption)
The payment option for the reservation (for example,
AllUpfrontorNoUpfront).- Parameters:
paymentOption- The payment option for the reservation (for example,AllUpfrontorNoUpfront).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption,PaymentOption
-
paymentOption
ReservationPurchaseRecommendation.Builder paymentOption(PaymentOption paymentOption)
The payment option for the reservation (for example,
AllUpfrontorNoUpfront).- Parameters:
paymentOption- The payment option for the reservation (for example,AllUpfrontorNoUpfront).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PaymentOption,PaymentOption
-
serviceSpecification
ReservationPurchaseRecommendation.Builder serviceSpecification(ServiceSpecification serviceSpecification)
Hardware specifications for the service that you want recommendations for.
- Parameters:
serviceSpecification- Hardware specifications for the service that you want recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceSpecification
default ReservationPurchaseRecommendation.Builder serviceSpecification(Consumer<ServiceSpecification.Builder> serviceSpecification)
Hardware specifications for the service that you want recommendations for.
This is a convenience method that creates an instance of theServiceSpecification.Builderavoiding the need to create one manually viaServiceSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceSpecification(ServiceSpecification).- Parameters:
serviceSpecification- a consumer that will call methods onServiceSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
serviceSpecification(ServiceSpecification)
-
recommendationDetails
ReservationPurchaseRecommendation.Builder recommendationDetails(Collection<ReservationPurchaseRecommendationDetail> recommendationDetails)
Details about the recommended purchases.
- Parameters:
recommendationDetails- Details about the recommended purchases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationDetails
ReservationPurchaseRecommendation.Builder recommendationDetails(ReservationPurchaseRecommendationDetail... recommendationDetails)
Details about the recommended purchases.
- Parameters:
recommendationDetails- Details about the recommended purchases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationDetails
ReservationPurchaseRecommendation.Builder recommendationDetails(Consumer<ReservationPurchaseRecommendationDetail.Builder>... recommendationDetails)
Details about the recommended purchases.
This is a convenience method that creates an instance of theReservationPurchaseRecommendationDetail.Builderavoiding the need to create one manually viaReservationPurchaseRecommendationDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#recommendationDetails(List.) - Parameters:
recommendationDetails- a consumer that will call methods onReservationPurchaseRecommendationDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#recommendationDetails(java.util.Collection)
-
recommendationSummary
ReservationPurchaseRecommendation.Builder recommendationSummary(ReservationPurchaseRecommendationSummary recommendationSummary)
A summary about the recommended purchase.
- Parameters:
recommendationSummary- A summary about the recommended purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSummary
default ReservationPurchaseRecommendation.Builder recommendationSummary(Consumer<ReservationPurchaseRecommendationSummary.Builder> recommendationSummary)
A summary about the recommended purchase.
This is a convenience method that creates an instance of theReservationPurchaseRecommendationSummary.Builderavoiding the need to create one manually viaReservationPurchaseRecommendationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationSummary(ReservationPurchaseRecommendationSummary).- Parameters:
recommendationSummary- a consumer that will call methods onReservationPurchaseRecommendationSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
recommendationSummary(ReservationPurchaseRecommendationSummary)
-
-