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.

MonetaryAmount

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

type MonetaryAmount struct { Amount *float64 `locationName:"amount" type:"double"` CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCode"` }

A number representing the monetary amount for an offering or transaction.

Amount

Type: *float64

The numerical amount of an offering or transaction.

CurrencyCode

Type: *string

The currency code of a monetary amount. For example, USD means "U.S. dollars."

Method

GoString

func (s MonetaryAmount) GoString() string

GoString returns the string representation

SetAmount

func (s *MonetaryAmount) SetAmount(v float64) *MonetaryAmount

SetAmount sets the Amount field's value.

SetCurrencyCode

func (s *MonetaryAmount) SetCurrencyCode(v string) *MonetaryAmount

SetCurrencyCode sets the CurrencyCode field's value.

String

func (s MonetaryAmount) String() string

String returns the string representation

On this page: