{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.DescribeOffering
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Get details for an offering.
module Amazonka.MediaLive.DescribeOffering
  ( -- * Creating a Request
    DescribeOffering (..),
    newDescribeOffering,

    -- * Request Lenses
    describeOffering_offeringId,

    -- * Destructuring the Response
    DescribeOfferingResponse (..),
    newDescribeOfferingResponse,

    -- * Response Lenses
    describeOfferingResponse_arn,
    describeOfferingResponse_currencyCode,
    describeOfferingResponse_duration,
    describeOfferingResponse_durationUnits,
    describeOfferingResponse_fixedPrice,
    describeOfferingResponse_offeringDescription,
    describeOfferingResponse_offeringId,
    describeOfferingResponse_offeringType,
    describeOfferingResponse_region,
    describeOfferingResponse_resourceSpecification,
    describeOfferingResponse_usagePrice,
    describeOfferingResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for DescribeOfferingRequest
--
-- /See:/ 'newDescribeOffering' smart constructor.
data DescribeOffering = DescribeOffering'
  { -- | Unique offering ID, e.g. \'87654321\'
    DescribeOffering -> Text
offeringId :: Prelude.Text
  }
  deriving (DescribeOffering -> DescribeOffering -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOffering -> DescribeOffering -> Bool
$c/= :: DescribeOffering -> DescribeOffering -> Bool
== :: DescribeOffering -> DescribeOffering -> Bool
$c== :: DescribeOffering -> DescribeOffering -> Bool
Prelude.Eq, ReadPrec [DescribeOffering]
ReadPrec DescribeOffering
Int -> ReadS DescribeOffering
ReadS [DescribeOffering]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOffering]
$creadListPrec :: ReadPrec [DescribeOffering]
readPrec :: ReadPrec DescribeOffering
$creadPrec :: ReadPrec DescribeOffering
readList :: ReadS [DescribeOffering]
$creadList :: ReadS [DescribeOffering]
readsPrec :: Int -> ReadS DescribeOffering
$creadsPrec :: Int -> ReadS DescribeOffering
Prelude.Read, Int -> DescribeOffering -> ShowS
[DescribeOffering] -> ShowS
DescribeOffering -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOffering] -> ShowS
$cshowList :: [DescribeOffering] -> ShowS
show :: DescribeOffering -> String
$cshow :: DescribeOffering -> String
showsPrec :: Int -> DescribeOffering -> ShowS
$cshowsPrec :: Int -> DescribeOffering -> ShowS
Prelude.Show, forall x. Rep DescribeOffering x -> DescribeOffering
forall x. DescribeOffering -> Rep DescribeOffering x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeOffering x -> DescribeOffering
$cfrom :: forall x. DescribeOffering -> Rep DescribeOffering x
Prelude.Generic)

-- |
-- Create a value of 'DescribeOffering' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'offeringId', 'describeOffering_offeringId' - Unique offering ID, e.g. \'87654321\'
newDescribeOffering ::
  -- | 'offeringId'
  Prelude.Text ->
  DescribeOffering
newDescribeOffering :: Text -> DescribeOffering
newDescribeOffering Text
pOfferingId_ =
  DescribeOffering' {$sel:offeringId:DescribeOffering' :: Text
offeringId = Text
pOfferingId_}

-- | Unique offering ID, e.g. \'87654321\'
describeOffering_offeringId :: Lens.Lens' DescribeOffering Prelude.Text
describeOffering_offeringId :: Lens' DescribeOffering Text
describeOffering_offeringId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOffering' {Text
offeringId :: Text
$sel:offeringId:DescribeOffering' :: DescribeOffering -> Text
offeringId} -> Text
offeringId) (\s :: DescribeOffering
s@DescribeOffering' {} Text
a -> DescribeOffering
s {$sel:offeringId:DescribeOffering' :: Text
offeringId = Text
a} :: DescribeOffering)

instance Core.AWSRequest DescribeOffering where
  type
    AWSResponse DescribeOffering =
      DescribeOfferingResponse
  request :: (Service -> Service)
-> DescribeOffering -> Request DescribeOffering
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeOffering
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeOffering)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe OfferingDurationUnits
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe OfferingType
-> Maybe Text
-> Maybe ReservationResourceSpecification
-> Maybe Double
-> Int
-> DescribeOfferingResponse
DescribeOfferingResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"currencyCode")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"duration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"durationUnits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"fixedPrice")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"offeringDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"offeringId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"offeringType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"region")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"resourceSpecification")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"usagePrice")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeOffering where
  hashWithSalt :: Int -> DescribeOffering -> Int
hashWithSalt Int
_salt DescribeOffering' {Text
offeringId :: Text
$sel:offeringId:DescribeOffering' :: DescribeOffering -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
offeringId

instance Prelude.NFData DescribeOffering where
  rnf :: DescribeOffering -> ()
rnf DescribeOffering' {Text
offeringId :: Text
$sel:offeringId:DescribeOffering' :: DescribeOffering -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
offeringId

instance Data.ToHeaders DescribeOffering where
  toHeaders :: DescribeOffering -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath DescribeOffering where
  toPath :: DescribeOffering -> ByteString
toPath DescribeOffering' {Text
offeringId :: Text
$sel:offeringId:DescribeOffering' :: DescribeOffering -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/prod/offerings/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
offeringId]

instance Data.ToQuery DescribeOffering where
  toQuery :: DescribeOffering -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | Placeholder documentation for DescribeOfferingResponse
--
-- /See:/ 'newDescribeOfferingResponse' smart constructor.
data DescribeOfferingResponse = DescribeOfferingResponse'
  { -- | Unique offering ARN, e.g.
    -- \'arn:aws:medialive:us-west-2:123456789012:offering:87654321\'
    DescribeOfferingResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g.
    -- \'USD\'
    DescribeOfferingResponse -> Maybe Text
currencyCode :: Prelude.Maybe Prelude.Text,
    -- | Lease duration, e.g. \'12\'
    DescribeOfferingResponse -> Maybe Int
duration :: Prelude.Maybe Prelude.Int,
    -- | Units for duration, e.g. \'MONTHS\'
    DescribeOfferingResponse -> Maybe OfferingDurationUnits
durationUnits :: Prelude.Maybe OfferingDurationUnits,
    -- | One-time charge for each reserved resource, e.g. \'0.0\' for a
    -- NO_UPFRONT offering
    DescribeOfferingResponse -> Maybe Double
fixedPrice :: Prelude.Maybe Prelude.Double,
    -- | Offering description, e.g. \'HD AVC output at 10-20 Mbps, 30 fps, and
    -- standard VQ in US West (Oregon)\'
    DescribeOfferingResponse -> Maybe Text
offeringDescription :: Prelude.Maybe Prelude.Text,
    -- | Unique offering ID, e.g. \'87654321\'
    DescribeOfferingResponse -> Maybe Text
offeringId :: Prelude.Maybe Prelude.Text,
    -- | Offering type, e.g. \'NO_UPFRONT\'
    DescribeOfferingResponse -> Maybe OfferingType
offeringType :: Prelude.Maybe OfferingType,
    -- | AWS region, e.g. \'us-west-2\'
    DescribeOfferingResponse -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
    -- | Resource configuration details
    DescribeOfferingResponse -> Maybe ReservationResourceSpecification
resourceSpecification :: Prelude.Maybe ReservationResourceSpecification,
    -- | Recurring usage charge for each reserved resource, e.g. \'157.0\'
    DescribeOfferingResponse -> Maybe Double
usagePrice :: Prelude.Maybe Prelude.Double,
    -- | The response's http status code.
    DescribeOfferingResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeOfferingResponse -> DescribeOfferingResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOfferingResponse -> DescribeOfferingResponse -> Bool
$c/= :: DescribeOfferingResponse -> DescribeOfferingResponse -> Bool
== :: DescribeOfferingResponse -> DescribeOfferingResponse -> Bool
$c== :: DescribeOfferingResponse -> DescribeOfferingResponse -> Bool
Prelude.Eq, ReadPrec [DescribeOfferingResponse]
ReadPrec DescribeOfferingResponse
Int -> ReadS DescribeOfferingResponse
ReadS [DescribeOfferingResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOfferingResponse]
$creadListPrec :: ReadPrec [DescribeOfferingResponse]
readPrec :: ReadPrec DescribeOfferingResponse
$creadPrec :: ReadPrec DescribeOfferingResponse
readList :: ReadS [DescribeOfferingResponse]
$creadList :: ReadS [DescribeOfferingResponse]
readsPrec :: Int -> ReadS DescribeOfferingResponse
$creadsPrec :: Int -> ReadS DescribeOfferingResponse
Prelude.Read, Int -> DescribeOfferingResponse -> ShowS
[DescribeOfferingResponse] -> ShowS
DescribeOfferingResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOfferingResponse] -> ShowS
$cshowList :: [DescribeOfferingResponse] -> ShowS
show :: DescribeOfferingResponse -> String
$cshow :: DescribeOfferingResponse -> String
showsPrec :: Int -> DescribeOfferingResponse -> ShowS
$cshowsPrec :: Int -> DescribeOfferingResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeOfferingResponse x -> DescribeOfferingResponse
forall x.
DescribeOfferingResponse -> Rep DescribeOfferingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOfferingResponse x -> DescribeOfferingResponse
$cfrom :: forall x.
DescribeOfferingResponse -> Rep DescribeOfferingResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeOfferingResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'describeOfferingResponse_arn' - Unique offering ARN, e.g.
-- \'arn:aws:medialive:us-west-2:123456789012:offering:87654321\'
--
-- 'currencyCode', 'describeOfferingResponse_currencyCode' - Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g.
-- \'USD\'
--
-- 'duration', 'describeOfferingResponse_duration' - Lease duration, e.g. \'12\'
--
-- 'durationUnits', 'describeOfferingResponse_durationUnits' - Units for duration, e.g. \'MONTHS\'
--
-- 'fixedPrice', 'describeOfferingResponse_fixedPrice' - One-time charge for each reserved resource, e.g. \'0.0\' for a
-- NO_UPFRONT offering
--
-- 'offeringDescription', 'describeOfferingResponse_offeringDescription' - Offering description, e.g. \'HD AVC output at 10-20 Mbps, 30 fps, and
-- standard VQ in US West (Oregon)\'
--
-- 'offeringId', 'describeOfferingResponse_offeringId' - Unique offering ID, e.g. \'87654321\'
--
-- 'offeringType', 'describeOfferingResponse_offeringType' - Offering type, e.g. \'NO_UPFRONT\'
--
-- 'region', 'describeOfferingResponse_region' - AWS region, e.g. \'us-west-2\'
--
-- 'resourceSpecification', 'describeOfferingResponse_resourceSpecification' - Resource configuration details
--
-- 'usagePrice', 'describeOfferingResponse_usagePrice' - Recurring usage charge for each reserved resource, e.g. \'157.0\'
--
-- 'httpStatus', 'describeOfferingResponse_httpStatus' - The response's http status code.
newDescribeOfferingResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeOfferingResponse
newDescribeOfferingResponse :: Int -> DescribeOfferingResponse
newDescribeOfferingResponse Int
pHttpStatus_ =
  DescribeOfferingResponse'
    { $sel:arn:DescribeOfferingResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:currencyCode:DescribeOfferingResponse' :: Maybe Text
currencyCode = forall a. Maybe a
Prelude.Nothing,
      $sel:duration:DescribeOfferingResponse' :: Maybe Int
duration = forall a. Maybe a
Prelude.Nothing,
      $sel:durationUnits:DescribeOfferingResponse' :: Maybe OfferingDurationUnits
durationUnits = forall a. Maybe a
Prelude.Nothing,
      $sel:fixedPrice:DescribeOfferingResponse' :: Maybe Double
fixedPrice = forall a. Maybe a
Prelude.Nothing,
      $sel:offeringDescription:DescribeOfferingResponse' :: Maybe Text
offeringDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:offeringId:DescribeOfferingResponse' :: Maybe Text
offeringId = forall a. Maybe a
Prelude.Nothing,
      $sel:offeringType:DescribeOfferingResponse' :: Maybe OfferingType
offeringType = forall a. Maybe a
Prelude.Nothing,
      $sel:region:DescribeOfferingResponse' :: Maybe Text
region = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceSpecification:DescribeOfferingResponse' :: Maybe ReservationResourceSpecification
resourceSpecification = forall a. Maybe a
Prelude.Nothing,
      $sel:usagePrice:DescribeOfferingResponse' :: Maybe Double
usagePrice = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeOfferingResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Unique offering ARN, e.g.
-- \'arn:aws:medialive:us-west-2:123456789012:offering:87654321\'
describeOfferingResponse_arn :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Text)
describeOfferingResponse_arn :: Lens' DescribeOfferingResponse (Maybe Text)
describeOfferingResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Text
a -> DescribeOfferingResponse
s {$sel:arn:DescribeOfferingResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeOfferingResponse)

-- | Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g.
-- \'USD\'
describeOfferingResponse_currencyCode :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Text)
describeOfferingResponse_currencyCode :: Lens' DescribeOfferingResponse (Maybe Text)
describeOfferingResponse_currencyCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Text
currencyCode :: Maybe Text
$sel:currencyCode:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
currencyCode} -> Maybe Text
currencyCode) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Text
a -> DescribeOfferingResponse
s {$sel:currencyCode:DescribeOfferingResponse' :: Maybe Text
currencyCode = Maybe Text
a} :: DescribeOfferingResponse)

-- | Lease duration, e.g. \'12\'
describeOfferingResponse_duration :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Int)
describeOfferingResponse_duration :: Lens' DescribeOfferingResponse (Maybe Int)
describeOfferingResponse_duration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Int
duration :: Maybe Int
$sel:duration:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Int
duration} -> Maybe Int
duration) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Int
a -> DescribeOfferingResponse
s {$sel:duration:DescribeOfferingResponse' :: Maybe Int
duration = Maybe Int
a} :: DescribeOfferingResponse)

-- | Units for duration, e.g. \'MONTHS\'
describeOfferingResponse_durationUnits :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe OfferingDurationUnits)
describeOfferingResponse_durationUnits :: Lens' DescribeOfferingResponse (Maybe OfferingDurationUnits)
describeOfferingResponse_durationUnits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe OfferingDurationUnits
durationUnits :: Maybe OfferingDurationUnits
$sel:durationUnits:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe OfferingDurationUnits
durationUnits} -> Maybe OfferingDurationUnits
durationUnits) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe OfferingDurationUnits
a -> DescribeOfferingResponse
s {$sel:durationUnits:DescribeOfferingResponse' :: Maybe OfferingDurationUnits
durationUnits = Maybe OfferingDurationUnits
a} :: DescribeOfferingResponse)

-- | One-time charge for each reserved resource, e.g. \'0.0\' for a
-- NO_UPFRONT offering
describeOfferingResponse_fixedPrice :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Double)
describeOfferingResponse_fixedPrice :: Lens' DescribeOfferingResponse (Maybe Double)
describeOfferingResponse_fixedPrice = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Double
fixedPrice :: Maybe Double
$sel:fixedPrice:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Double
fixedPrice} -> Maybe Double
fixedPrice) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Double
a -> DescribeOfferingResponse
s {$sel:fixedPrice:DescribeOfferingResponse' :: Maybe Double
fixedPrice = Maybe Double
a} :: DescribeOfferingResponse)

-- | Offering description, e.g. \'HD AVC output at 10-20 Mbps, 30 fps, and
-- standard VQ in US West (Oregon)\'
describeOfferingResponse_offeringDescription :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Text)
describeOfferingResponse_offeringDescription :: Lens' DescribeOfferingResponse (Maybe Text)
describeOfferingResponse_offeringDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Text
offeringDescription :: Maybe Text
$sel:offeringDescription:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
offeringDescription} -> Maybe Text
offeringDescription) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Text
a -> DescribeOfferingResponse
s {$sel:offeringDescription:DescribeOfferingResponse' :: Maybe Text
offeringDescription = Maybe Text
a} :: DescribeOfferingResponse)

-- | Unique offering ID, e.g. \'87654321\'
describeOfferingResponse_offeringId :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Text)
describeOfferingResponse_offeringId :: Lens' DescribeOfferingResponse (Maybe Text)
describeOfferingResponse_offeringId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Text
offeringId :: Maybe Text
$sel:offeringId:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
offeringId} -> Maybe Text
offeringId) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Text
a -> DescribeOfferingResponse
s {$sel:offeringId:DescribeOfferingResponse' :: Maybe Text
offeringId = Maybe Text
a} :: DescribeOfferingResponse)

-- | Offering type, e.g. \'NO_UPFRONT\'
describeOfferingResponse_offeringType :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe OfferingType)
describeOfferingResponse_offeringType :: Lens' DescribeOfferingResponse (Maybe OfferingType)
describeOfferingResponse_offeringType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe OfferingType
offeringType :: Maybe OfferingType
$sel:offeringType:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe OfferingType
offeringType} -> Maybe OfferingType
offeringType) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe OfferingType
a -> DescribeOfferingResponse
s {$sel:offeringType:DescribeOfferingResponse' :: Maybe OfferingType
offeringType = Maybe OfferingType
a} :: DescribeOfferingResponse)

-- | AWS region, e.g. \'us-west-2\'
describeOfferingResponse_region :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Text)
describeOfferingResponse_region :: Lens' DescribeOfferingResponse (Maybe Text)
describeOfferingResponse_region = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Text
region :: Maybe Text
$sel:region:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
region} -> Maybe Text
region) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Text
a -> DescribeOfferingResponse
s {$sel:region:DescribeOfferingResponse' :: Maybe Text
region = Maybe Text
a} :: DescribeOfferingResponse)

-- | Resource configuration details
describeOfferingResponse_resourceSpecification :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe ReservationResourceSpecification)
describeOfferingResponse_resourceSpecification :: Lens'
  DescribeOfferingResponse (Maybe ReservationResourceSpecification)
describeOfferingResponse_resourceSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe ReservationResourceSpecification
resourceSpecification :: Maybe ReservationResourceSpecification
$sel:resourceSpecification:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe ReservationResourceSpecification
resourceSpecification} -> Maybe ReservationResourceSpecification
resourceSpecification) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe ReservationResourceSpecification
a -> DescribeOfferingResponse
s {$sel:resourceSpecification:DescribeOfferingResponse' :: Maybe ReservationResourceSpecification
resourceSpecification = Maybe ReservationResourceSpecification
a} :: DescribeOfferingResponse)

-- | Recurring usage charge for each reserved resource, e.g. \'157.0\'
describeOfferingResponse_usagePrice :: Lens.Lens' DescribeOfferingResponse (Prelude.Maybe Prelude.Double)
describeOfferingResponse_usagePrice :: Lens' DescribeOfferingResponse (Maybe Double)
describeOfferingResponse_usagePrice = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Maybe Double
usagePrice :: Maybe Double
$sel:usagePrice:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Double
usagePrice} -> Maybe Double
usagePrice) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Maybe Double
a -> DescribeOfferingResponse
s {$sel:usagePrice:DescribeOfferingResponse' :: Maybe Double
usagePrice = Maybe Double
a} :: DescribeOfferingResponse)

-- | The response's http status code.
describeOfferingResponse_httpStatus :: Lens.Lens' DescribeOfferingResponse Prelude.Int
describeOfferingResponse_httpStatus :: Lens' DescribeOfferingResponse Int
describeOfferingResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOfferingResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeOfferingResponse' :: DescribeOfferingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeOfferingResponse
s@DescribeOfferingResponse' {} Int
a -> DescribeOfferingResponse
s {$sel:httpStatus:DescribeOfferingResponse' :: Int
httpStatus = Int
a} :: DescribeOfferingResponse)

instance Prelude.NFData DescribeOfferingResponse where
  rnf :: DescribeOfferingResponse -> ()
rnf DescribeOfferingResponse' {Int
Maybe Double
Maybe Int
Maybe Text
Maybe OfferingDurationUnits
Maybe OfferingType
Maybe ReservationResourceSpecification
httpStatus :: Int
usagePrice :: Maybe Double
resourceSpecification :: Maybe ReservationResourceSpecification
region :: Maybe Text
offeringType :: Maybe OfferingType
offeringId :: Maybe Text
offeringDescription :: Maybe Text
fixedPrice :: Maybe Double
durationUnits :: Maybe OfferingDurationUnits
duration :: Maybe Int
currencyCode :: Maybe Text
arn :: Maybe Text
$sel:httpStatus:DescribeOfferingResponse' :: DescribeOfferingResponse -> Int
$sel:usagePrice:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Double
$sel:resourceSpecification:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe ReservationResourceSpecification
$sel:region:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
$sel:offeringType:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe OfferingType
$sel:offeringId:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
$sel:offeringDescription:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
$sel:fixedPrice:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Double
$sel:durationUnits:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe OfferingDurationUnits
$sel:duration:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Int
$sel:currencyCode:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
$sel:arn:DescribeOfferingResponse' :: DescribeOfferingResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
currencyCode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
duration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OfferingDurationUnits
durationUnits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
fixedPrice
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
offeringDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
offeringId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OfferingType
offeringType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
region
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ReservationResourceSpecification
resourceSpecification
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
usagePrice
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus