AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ReservationPurchaseRecommendation

import "github.com/aws/aws-sdk-go/service/costexplorer"

type ReservationPurchaseRecommendation struct { AccountScope *string `type:"string" enum:"AccountScope"` LookbackPeriodInDays *string `type:"string" enum:"LookbackPeriodInDays"` PaymentOption *string `type:"string" enum:"PaymentOption"` RecommendationDetails []*ReservationPurchaseRecommendationDetail `type:"list"` RecommendationSummary *ReservationPurchaseRecommendationSummary `type:"structure"` ServiceSpecification *ServiceSpecification `type:"structure"` TermInYears *string `type:"string" enum:"TermInYears"` }

A specific reservation that AWS recommends for purchase.

AccountScope

Type: *string

The account scope that AWS recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in AWS Organizations.

LookbackPeriodInDays

Type: *string

How many days of previous usage that AWS considers when making this recommendation.

PaymentOption

Type: *string

The payment option for the reservation. For example, AllUpfront or NoUpfront.

RecommendationDetails

Details about your recommended reservation purchase.

RecommendationSummary

A summary about this recommendation, such as the currency code, the amount that AWS estimates that you could save, and the total amount of reservation to purchase.

ServiceSpecification

Hardware specifications for the service that you want recommendations for.

TermInYears

Type: *string

The term of the reservation that you want recommendations for, in years.

Method

GoString

func (s ReservationPurchaseRecommendation) GoString() string

GoString returns the string representation

SetAccountScope

func (s *ReservationPurchaseRecommendation) SetAccountScope(v string) *ReservationPurchaseRecommendation

SetAccountScope sets the AccountScope field's value.

SetLookbackPeriodInDays

func (s *ReservationPurchaseRecommendation) SetLookbackPeriodInDays(v string) *ReservationPurchaseRecommendation

SetLookbackPeriodInDays sets the LookbackPeriodInDays field's value.

SetPaymentOption

func (s *ReservationPurchaseRecommendation) SetPaymentOption(v string) *ReservationPurchaseRecommendation

SetPaymentOption sets the PaymentOption field's value.

SetRecommendationDetails

func (s *ReservationPurchaseRecommendation) SetRecommendationDetails(v []*ReservationPurchaseRecommendationDetail) *ReservationPurchaseRecommendation

SetRecommendationDetails sets the RecommendationDetails field's value.

SetRecommendationSummary

func (s *ReservationPurchaseRecommendation) SetRecommendationSummary(v *ReservationPurchaseRecommendationSummary) *ReservationPurchaseRecommendation

SetRecommendationSummary sets the RecommendationSummary field's value.

SetServiceSpecification

func (s *ReservationPurchaseRecommendation) SetServiceSpecification(v *ServiceSpecification) *ReservationPurchaseRecommendation

SetServiceSpecification sets the ServiceSpecification field's value.

SetTermInYears

func (s *ReservationPurchaseRecommendation) SetTermInYears(v string) *ReservationPurchaseRecommendation

SetTermInYears sets the TermInYears field's value.

String

func (s ReservationPurchaseRecommendation) String() string

String returns the string representation

On this page: