Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
Represents an amount of money in United States dollars.
See: newUSD
smart constructor.
Instances
Eq USD Source # | |
Read USD Source # | |
Show USD Source # | |
Generic USD Source # | |
NFData USD Source # | |
Defined in Amazonka.SageMaker.Types.USD | |
Hashable USD Source # | |
Defined in Amazonka.SageMaker.Types.USD | |
ToJSON USD Source # | |
Defined in Amazonka.SageMaker.Types.USD | |
FromJSON USD Source # | |
type Rep USD Source # | |
Defined in Amazonka.SageMaker.Types.USD type Rep USD = D1 ('MetaData "USD" "Amazonka.SageMaker.Types.USD" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "USD'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "dollars") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "tenthFractionsOfACent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))) |
Create a value of USD
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cents:USD'
, usd_cents
- The fractional portion, in cents, of the amount.
$sel:dollars:USD'
, usd_dollars
- The whole number of dollars in the amount.
$sel:tenthFractionsOfACent:USD'
, usd_tenthFractionsOfACent
- Fractions of a cent, in tenths.