GetReservationPurchaseRecommendationInput
import "github.com/aws/aws-sdk-go/service/costexplorer"
type GetReservationPurchaseRecommendationInput struct { AccountId *string `type:"string"` AccountScope *string `type:"string" enum:"AccountScope"` LookbackPeriodInDays *string `type:"string" enum:"LookbackPeriodInDays"` NextPageToken *string `type:"string"` PageSize *int64 `type:"integer"` PaymentOption *string `type:"string" enum:"PaymentOption"` Service *string `type:"string" required:"true"` ServiceSpecification *ServiceSpecification `type:"structure"` TermInYears *string `type:"string" enum:"TermInYears"` }
- AccountId
-
Type:
*string
The account ID that is associated with the recommendation.
- AccountScope
-
Type:
*string
The account scope that you want recommendations for. PAYER means that AWS includes the master account and any member accounts when it calculates its recommendations. LINKED means that AWS includes only member accounts when it calculates its recommendations.
Valid values are PAYER and LINKED.
- LookbackPeriodInDays
-
Type:
*string
The number of previous days that you want AWS to consider when it calculates your recommendations.
- NextPageToken
-
Type:
*string
The pagination token that indicates the next set of results that you want to retrieve.
- PageSize
-
Type:
*int64
The number of recommendations that you want returned in a single response object.
- PaymentOption
-
Type:
*string
The reservation purchase option that you want recommendations for.
- Service
-
Type:
*string
The specific service that you want recommendations for.
Service is a required field
- ServiceSpecification
-
Hardware specifications for the service that you want recommendations for.
- TermInYears
-
Type:
*string
The reservation term that you want recommendations for.
Method
GoString
func (s GetReservationPurchaseRecommendationInput) GoString() string
GoString returns the string representation
SetAccountId
func (s *GetReservationPurchaseRecommendationInput) SetAccountId(v string) *GetReservationPurchaseRecommendationInput
SetAccountId sets the AccountId field's value.
SetAccountScope
func (s *GetReservationPurchaseRecommendationInput) SetAccountScope(v string) *GetReservationPurchaseRecommendationInput
SetAccountScope sets the AccountScope field's value.
SetLookbackPeriodInDays
func (s *GetReservationPurchaseRecommendationInput) SetLookbackPeriodInDays(v string) *GetReservationPurchaseRecommendationInput
SetLookbackPeriodInDays sets the LookbackPeriodInDays field's value.
SetNextPageToken
func (s *GetReservationPurchaseRecommendationInput) SetNextPageToken(v string) *GetReservationPurchaseRecommendationInput
SetNextPageToken sets the NextPageToken field's value.
SetPageSize
func (s *GetReservationPurchaseRecommendationInput) SetPageSize(v int64) *GetReservationPurchaseRecommendationInput
SetPageSize sets the PageSize field's value.
SetPaymentOption
func (s *GetReservationPurchaseRecommendationInput) SetPaymentOption(v string) *GetReservationPurchaseRecommendationInput
SetPaymentOption sets the PaymentOption field's value.
SetService
func (s *GetReservationPurchaseRecommendationInput) SetService(v string) *GetReservationPurchaseRecommendationInput
SetService sets the Service field's value.
SetServiceSpecification
func (s *GetReservationPurchaseRecommendationInput) SetServiceSpecification(v *ServiceSpecification) *GetReservationPurchaseRecommendationInput
SetServiceSpecification sets the ServiceSpecification field's value.
SetTermInYears
func (s *GetReservationPurchaseRecommendationInput) SetTermInYears(v string) *GetReservationPurchaseRecommendationInput
SetTermInYears sets the TermInYears field's value.
String
func (s GetReservationPurchaseRecommendationInput) String() string
String returns the string representation
Validate
func (s *GetReservationPurchaseRecommendationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.