// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package personalizeruntime import ( "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) var _ aws.Config var _ = awsutil.Prettify // An object that identifies an item. // // The and APIs return a list of PredictedItems. type PredictedItem struct { _ struct{} `type:"structure"` // The recommended item ID. ItemId *string `locationName:"itemId" type:"string"` // A numeric representation of the model's certainty that the item will be the // next user selection. For more information on scoring logic, see how-scores-work. Score *float64 `locationName:"score" type:"double"` } // String returns the string representation func (s PredictedItem) String() string { return awsutil.Prettify(s) } // MarshalFields encodes the AWS API shape using the passed in protocol encoder. func (s PredictedItem) MarshalFields(e protocol.FieldEncoder) error { if s.ItemId != nil { v := *s.ItemId metadata := protocol.Metadata{} e.SetValue(protocol.BodyTarget, "itemId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata) } if s.Score != nil { v := *s.Score metadata := protocol.Metadata{} e.SetValue(protocol.BodyTarget, "score", protocol.Float64Value(v), metadata) } return nil }