Interface ReservationPurchaseRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservationPurchaseRecommendation.Builder,
,ReservationPurchaseRecommendation> SdkBuilder<ReservationPurchaseRecommendation.Builder,
,ReservationPurchaseRecommendation> SdkPojo
- Enclosing class:
ReservationPurchaseRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionaccountScope
(String accountScope) The account scope that Amazon Web Services recommends that you purchase this instance for.accountScope
(AccountScope accountScope) The account scope that Amazon Web Services recommends that you purchase this instance for.lookbackPeriodInDays
(String lookbackPeriodInDays) How many days of previous usage that Amazon Web Services considers when making this recommendation.lookbackPeriodInDays
(LookbackPeriodInDays lookbackPeriodInDays) How many days of previous usage that Amazon Web Services considers when making this recommendation.paymentOption
(String paymentOption) The payment option for the reservation (for example,AllUpfront
orNoUpfront
).paymentOption
(PaymentOption paymentOption) The payment option for the reservation (for example,AllUpfront
orNoUpfront
).recommendationDetails
(Collection<ReservationPurchaseRecommendationDetail> recommendationDetails) Details about the recommended purchases.recommendationDetails
(Consumer<ReservationPurchaseRecommendationDetail.Builder>... recommendationDetails) Details about the recommended purchases.recommendationDetails
(ReservationPurchaseRecommendationDetail... recommendationDetails) Details about the recommended purchases.recommendationSummary
(Consumer<ReservationPurchaseRecommendationSummary.Builder> recommendationSummary) A summary about the recommended purchase.recommendationSummary
(ReservationPurchaseRecommendationSummary recommendationSummary) A summary about the recommended purchase.serviceSpecification
(Consumer<ServiceSpecification.Builder> serviceSpecification) Hardware specifications for the service that you want recommendations for.serviceSpecification
(ServiceSpecification serviceSpecification) Hardware specifications for the service that you want recommendations for.termInYears
(String termInYears) The term of the reservation that you want recommendations for, in years.termInYears
(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 Details
-
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
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:
-
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
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:
-
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
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:
-
paymentOption
The payment option for the reservation (for example,
AllUpfront
orNoUpfront
).- Parameters:
paymentOption
- The payment option for the reservation (for example,AllUpfront
orNoUpfront
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentOption
The payment option for the reservation (for example,
AllUpfront
orNoUpfront
).- Parameters:
paymentOption
- The payment option for the reservation (for example,AllUpfront
orNoUpfront
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.Builder
avoiding the need to create one manually viaServiceSpecification.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaReservationPurchaseRecommendationDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendationDetails(List<ReservationPurchaseRecommendationDetail>)
.- 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:
-
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.Builder
avoiding the need to create one manually viaReservationPurchaseRecommendationSummary.builder()
.When the
Consumer
completes,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:
-