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 |
Updates the long-term pricing type.
Synopsis
- data UpdateLongTermPricing = UpdateLongTermPricing' {}
- newUpdateLongTermPricing :: Text -> UpdateLongTermPricing
- updateLongTermPricing_isLongTermPricingAutoRenew :: Lens' UpdateLongTermPricing (Maybe Bool)
- updateLongTermPricing_replacementJob :: Lens' UpdateLongTermPricing (Maybe Text)
- updateLongTermPricing_longTermPricingId :: Lens' UpdateLongTermPricing Text
- data UpdateLongTermPricingResponse = UpdateLongTermPricingResponse' {
- httpStatus :: Int
- newUpdateLongTermPricingResponse :: Int -> UpdateLongTermPricingResponse
- updateLongTermPricingResponse_httpStatus :: Lens' UpdateLongTermPricingResponse Int
Creating a Request
data UpdateLongTermPricing Source #
See: newUpdateLongTermPricing
smart constructor.
UpdateLongTermPricing' | |
|
Instances
newUpdateLongTermPricing Source #
Create a value of UpdateLongTermPricing
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:isLongTermPricingAutoRenew:UpdateLongTermPricing'
, updateLongTermPricing_isLongTermPricingAutoRenew
- If set to true
, specifies that the current long-term pricing type for
the device should be automatically renewed before the long-term pricing
contract expires.
$sel:replacementJob:UpdateLongTermPricing'
, updateLongTermPricing_replacementJob
- Specifies that a device that is ordered with long-term pricing should be
replaced with a new device.
$sel:longTermPricingId:UpdateLongTermPricing'
, updateLongTermPricing_longTermPricingId
- The ID of the long-term pricing type for the device.
Request Lenses
updateLongTermPricing_isLongTermPricingAutoRenew :: Lens' UpdateLongTermPricing (Maybe Bool) Source #
If set to true
, specifies that the current long-term pricing type for
the device should be automatically renewed before the long-term pricing
contract expires.
updateLongTermPricing_replacementJob :: Lens' UpdateLongTermPricing (Maybe Text) Source #
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
updateLongTermPricing_longTermPricingId :: Lens' UpdateLongTermPricing Text Source #
The ID of the long-term pricing type for the device.
Destructuring the Response
data UpdateLongTermPricingResponse Source #
See: newUpdateLongTermPricingResponse
smart constructor.
UpdateLongTermPricingResponse' | |
|
Instances
Eq UpdateLongTermPricingResponse Source # | |
Read UpdateLongTermPricingResponse Source # | |
Show UpdateLongTermPricingResponse Source # | |
Defined in Amazonka.Snowball.UpdateLongTermPricing showsPrec :: Int -> UpdateLongTermPricingResponse -> ShowS # show :: UpdateLongTermPricingResponse -> String # showList :: [UpdateLongTermPricingResponse] -> ShowS # | |
Generic UpdateLongTermPricingResponse Source # | |
NFData UpdateLongTermPricingResponse Source # | |
Defined in Amazonka.Snowball.UpdateLongTermPricing rnf :: UpdateLongTermPricingResponse -> () # | |
type Rep UpdateLongTermPricingResponse Source # | |
Defined in Amazonka.Snowball.UpdateLongTermPricing type Rep UpdateLongTermPricingResponse = D1 ('MetaData "UpdateLongTermPricingResponse" "Amazonka.Snowball.UpdateLongTermPricing" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "UpdateLongTermPricingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateLongTermPricingResponse Source #
Create a value of UpdateLongTermPricingResponse
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:httpStatus:UpdateLongTermPricingResponse'
, updateLongTermPricingResponse_httpStatus
- The response's http status code.
Response Lenses
updateLongTermPricingResponse_httpStatus :: Lens' UpdateLongTermPricingResponse Int Source #
The response's http status code.