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

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

-- |
-- Module      : Amazonka.LicenseManager.Types.License
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.LicenseManager.Types.License where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LicenseManager.Types.ConsumptionConfiguration
import Amazonka.LicenseManager.Types.DatetimeRange
import Amazonka.LicenseManager.Types.Entitlement
import Amazonka.LicenseManager.Types.IssuerDetails
import Amazonka.LicenseManager.Types.LicenseStatus
import Amazonka.LicenseManager.Types.Metadata
import qualified Amazonka.Prelude as Prelude

-- | Software license that is managed in License Manager.
--
-- /See:/ 'newLicense' smart constructor.
data License = License'
  { -- | License beneficiary.
    License -> Maybe Text
beneficiary :: Prelude.Maybe Prelude.Text,
    -- | Configuration for consumption of the license.
    License -> Maybe ConsumptionConfiguration
consumptionConfiguration :: Prelude.Maybe ConsumptionConfiguration,
    -- | License creation time.
    License -> Maybe Text
createTime :: Prelude.Maybe Prelude.Text,
    -- | License entitlements.
    License -> Maybe [Entitlement]
entitlements :: Prelude.Maybe [Entitlement],
    -- | Home Region of the license.
    License -> Maybe Text
homeRegion :: Prelude.Maybe Prelude.Text,
    -- | License issuer.
    License -> Maybe IssuerDetails
issuer :: Prelude.Maybe IssuerDetails,
    -- | Amazon Resource Name (ARN) of the license.
    License -> Maybe Text
licenseArn :: Prelude.Maybe Prelude.Text,
    -- | License metadata.
    License -> Maybe [Metadata]
licenseMetadata :: Prelude.Maybe [Metadata],
    -- | License name.
    License -> Maybe Text
licenseName :: Prelude.Maybe Prelude.Text,
    -- | Product name.
    License -> Maybe Text
productName :: Prelude.Maybe Prelude.Text,
    -- | Product SKU.
    License -> Maybe Text
productSKU :: Prelude.Maybe Prelude.Text,
    -- | License status.
    License -> Maybe LicenseStatus
status :: Prelude.Maybe LicenseStatus,
    -- | Date and time range during which the license is valid, in ISO8601-UTC
    -- format.
    License -> Maybe DatetimeRange
validity :: Prelude.Maybe DatetimeRange,
    -- | License version.
    License -> Maybe Text
version :: Prelude.Maybe Prelude.Text
  }
  deriving (License -> License -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: License -> License -> Bool
$c/= :: License -> License -> Bool
== :: License -> License -> Bool
$c== :: License -> License -> Bool
Prelude.Eq, ReadPrec [License]
ReadPrec License
Int -> ReadS License
ReadS [License]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [License]
$creadListPrec :: ReadPrec [License]
readPrec :: ReadPrec License
$creadPrec :: ReadPrec License
readList :: ReadS [License]
$creadList :: ReadS [License]
readsPrec :: Int -> ReadS License
$creadsPrec :: Int -> ReadS License
Prelude.Read, Int -> License -> ShowS
[License] -> ShowS
License -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [License] -> ShowS
$cshowList :: [License] -> ShowS
show :: License -> String
$cshow :: License -> String
showsPrec :: Int -> License -> ShowS
$cshowsPrec :: Int -> License -> ShowS
Prelude.Show, forall x. Rep License x -> License
forall x. License -> Rep License x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep License x -> License
$cfrom :: forall x. License -> Rep License x
Prelude.Generic)

-- |
-- Create a value of 'License' 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:
--
-- 'beneficiary', 'license_beneficiary' - License beneficiary.
--
-- 'consumptionConfiguration', 'license_consumptionConfiguration' - Configuration for consumption of the license.
--
-- 'createTime', 'license_createTime' - License creation time.
--
-- 'entitlements', 'license_entitlements' - License entitlements.
--
-- 'homeRegion', 'license_homeRegion' - Home Region of the license.
--
-- 'issuer', 'license_issuer' - License issuer.
--
-- 'licenseArn', 'license_licenseArn' - Amazon Resource Name (ARN) of the license.
--
-- 'licenseMetadata', 'license_licenseMetadata' - License metadata.
--
-- 'licenseName', 'license_licenseName' - License name.
--
-- 'productName', 'license_productName' - Product name.
--
-- 'productSKU', 'license_productSKU' - Product SKU.
--
-- 'status', 'license_status' - License status.
--
-- 'validity', 'license_validity' - Date and time range during which the license is valid, in ISO8601-UTC
-- format.
--
-- 'version', 'license_version' - License version.
newLicense ::
  License
newLicense :: License
newLicense =
  License'
    { $sel:beneficiary:License' :: Maybe Text
beneficiary = forall a. Maybe a
Prelude.Nothing,
      $sel:consumptionConfiguration:License' :: Maybe ConsumptionConfiguration
consumptionConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:createTime:License' :: Maybe Text
createTime = forall a. Maybe a
Prelude.Nothing,
      $sel:entitlements:License' :: Maybe [Entitlement]
entitlements = forall a. Maybe a
Prelude.Nothing,
      $sel:homeRegion:License' :: Maybe Text
homeRegion = forall a. Maybe a
Prelude.Nothing,
      $sel:issuer:License' :: Maybe IssuerDetails
issuer = forall a. Maybe a
Prelude.Nothing,
      $sel:licenseArn:License' :: Maybe Text
licenseArn = forall a. Maybe a
Prelude.Nothing,
      $sel:licenseMetadata:License' :: Maybe [Metadata]
licenseMetadata = forall a. Maybe a
Prelude.Nothing,
      $sel:licenseName:License' :: Maybe Text
licenseName = forall a. Maybe a
Prelude.Nothing,
      $sel:productName:License' :: Maybe Text
productName = forall a. Maybe a
Prelude.Nothing,
      $sel:productSKU:License' :: Maybe Text
productSKU = forall a. Maybe a
Prelude.Nothing,
      $sel:status:License' :: Maybe LicenseStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:validity:License' :: Maybe DatetimeRange
validity = forall a. Maybe a
Prelude.Nothing,
      $sel:version:License' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing
    }

-- | License beneficiary.
license_beneficiary :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_beneficiary :: Lens' License (Maybe Text)
license_beneficiary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
beneficiary :: Maybe Text
$sel:beneficiary:License' :: License -> Maybe Text
beneficiary} -> Maybe Text
beneficiary) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:beneficiary:License' :: Maybe Text
beneficiary = Maybe Text
a} :: License)

-- | Configuration for consumption of the license.
license_consumptionConfiguration :: Lens.Lens' License (Prelude.Maybe ConsumptionConfiguration)
license_consumptionConfiguration :: Lens' License (Maybe ConsumptionConfiguration)
license_consumptionConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe ConsumptionConfiguration
consumptionConfiguration :: Maybe ConsumptionConfiguration
$sel:consumptionConfiguration:License' :: License -> Maybe ConsumptionConfiguration
consumptionConfiguration} -> Maybe ConsumptionConfiguration
consumptionConfiguration) (\s :: License
s@License' {} Maybe ConsumptionConfiguration
a -> License
s {$sel:consumptionConfiguration:License' :: Maybe ConsumptionConfiguration
consumptionConfiguration = Maybe ConsumptionConfiguration
a} :: License)

-- | License creation time.
license_createTime :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_createTime :: Lens' License (Maybe Text)
license_createTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
createTime :: Maybe Text
$sel:createTime:License' :: License -> Maybe Text
createTime} -> Maybe Text
createTime) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:createTime:License' :: Maybe Text
createTime = Maybe Text
a} :: License)

-- | License entitlements.
license_entitlements :: Lens.Lens' License (Prelude.Maybe [Entitlement])
license_entitlements :: Lens' License (Maybe [Entitlement])
license_entitlements = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe [Entitlement]
entitlements :: Maybe [Entitlement]
$sel:entitlements:License' :: License -> Maybe [Entitlement]
entitlements} -> Maybe [Entitlement]
entitlements) (\s :: License
s@License' {} Maybe [Entitlement]
a -> License
s {$sel:entitlements:License' :: Maybe [Entitlement]
entitlements = Maybe [Entitlement]
a} :: License) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Home Region of the license.
license_homeRegion :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_homeRegion :: Lens' License (Maybe Text)
license_homeRegion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
homeRegion :: Maybe Text
$sel:homeRegion:License' :: License -> Maybe Text
homeRegion} -> Maybe Text
homeRegion) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:homeRegion:License' :: Maybe Text
homeRegion = Maybe Text
a} :: License)

-- | License issuer.
license_issuer :: Lens.Lens' License (Prelude.Maybe IssuerDetails)
license_issuer :: Lens' License (Maybe IssuerDetails)
license_issuer = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe IssuerDetails
issuer :: Maybe IssuerDetails
$sel:issuer:License' :: License -> Maybe IssuerDetails
issuer} -> Maybe IssuerDetails
issuer) (\s :: License
s@License' {} Maybe IssuerDetails
a -> License
s {$sel:issuer:License' :: Maybe IssuerDetails
issuer = Maybe IssuerDetails
a} :: License)

-- | Amazon Resource Name (ARN) of the license.
license_licenseArn :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_licenseArn :: Lens' License (Maybe Text)
license_licenseArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
licenseArn :: Maybe Text
$sel:licenseArn:License' :: License -> Maybe Text
licenseArn} -> Maybe Text
licenseArn) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:licenseArn:License' :: Maybe Text
licenseArn = Maybe Text
a} :: License)

-- | License metadata.
license_licenseMetadata :: Lens.Lens' License (Prelude.Maybe [Metadata])
license_licenseMetadata :: Lens' License (Maybe [Metadata])
license_licenseMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe [Metadata]
licenseMetadata :: Maybe [Metadata]
$sel:licenseMetadata:License' :: License -> Maybe [Metadata]
licenseMetadata} -> Maybe [Metadata]
licenseMetadata) (\s :: License
s@License' {} Maybe [Metadata]
a -> License
s {$sel:licenseMetadata:License' :: Maybe [Metadata]
licenseMetadata = Maybe [Metadata]
a} :: License) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | License name.
license_licenseName :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_licenseName :: Lens' License (Maybe Text)
license_licenseName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
licenseName :: Maybe Text
$sel:licenseName:License' :: License -> Maybe Text
licenseName} -> Maybe Text
licenseName) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:licenseName:License' :: Maybe Text
licenseName = Maybe Text
a} :: License)

-- | Product name.
license_productName :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_productName :: Lens' License (Maybe Text)
license_productName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
productName :: Maybe Text
$sel:productName:License' :: License -> Maybe Text
productName} -> Maybe Text
productName) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:productName:License' :: Maybe Text
productName = Maybe Text
a} :: License)

-- | Product SKU.
license_productSKU :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_productSKU :: Lens' License (Maybe Text)
license_productSKU = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
productSKU :: Maybe Text
$sel:productSKU:License' :: License -> Maybe Text
productSKU} -> Maybe Text
productSKU) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:productSKU:License' :: Maybe Text
productSKU = Maybe Text
a} :: License)

-- | License status.
license_status :: Lens.Lens' License (Prelude.Maybe LicenseStatus)
license_status :: Lens' License (Maybe LicenseStatus)
license_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe LicenseStatus
status :: Maybe LicenseStatus
$sel:status:License' :: License -> Maybe LicenseStatus
status} -> Maybe LicenseStatus
status) (\s :: License
s@License' {} Maybe LicenseStatus
a -> License
s {$sel:status:License' :: Maybe LicenseStatus
status = Maybe LicenseStatus
a} :: License)

-- | Date and time range during which the license is valid, in ISO8601-UTC
-- format.
license_validity :: Lens.Lens' License (Prelude.Maybe DatetimeRange)
license_validity :: Lens' License (Maybe DatetimeRange)
license_validity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe DatetimeRange
validity :: Maybe DatetimeRange
$sel:validity:License' :: License -> Maybe DatetimeRange
validity} -> Maybe DatetimeRange
validity) (\s :: License
s@License' {} Maybe DatetimeRange
a -> License
s {$sel:validity:License' :: Maybe DatetimeRange
validity = Maybe DatetimeRange
a} :: License)

-- | License version.
license_version :: Lens.Lens' License (Prelude.Maybe Prelude.Text)
license_version :: Lens' License (Maybe Text)
license_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\License' {Maybe Text
version :: Maybe Text
$sel:version:License' :: License -> Maybe Text
version} -> Maybe Text
version) (\s :: License
s@License' {} Maybe Text
a -> License
s {$sel:version:License' :: Maybe Text
version = Maybe Text
a} :: License)

instance Data.FromJSON License where
  parseJSON :: Value -> Parser License
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"License"
      ( \Object
x ->
          Maybe Text
-> Maybe ConsumptionConfiguration
-> Maybe Text
-> Maybe [Entitlement]
-> Maybe Text
-> Maybe IssuerDetails
-> Maybe Text
-> Maybe [Metadata]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LicenseStatus
-> Maybe DatetimeRange
-> Maybe Text
-> License
License'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Beneficiary")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConsumptionConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Entitlements" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HomeRegion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Issuer")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseMetadata"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProductName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProductSKU")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Validity")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Version")
      )

instance Prelude.Hashable License where
  hashWithSalt :: Int -> License -> Int
hashWithSalt Int
_salt License' {Maybe [Entitlement]
Maybe [Metadata]
Maybe Text
Maybe DatetimeRange
Maybe IssuerDetails
Maybe LicenseStatus
Maybe ConsumptionConfiguration
version :: Maybe Text
validity :: Maybe DatetimeRange
status :: Maybe LicenseStatus
productSKU :: Maybe Text
productName :: Maybe Text
licenseName :: Maybe Text
licenseMetadata :: Maybe [Metadata]
licenseArn :: Maybe Text
issuer :: Maybe IssuerDetails
homeRegion :: Maybe Text
entitlements :: Maybe [Entitlement]
createTime :: Maybe Text
consumptionConfiguration :: Maybe ConsumptionConfiguration
beneficiary :: Maybe Text
$sel:version:License' :: License -> Maybe Text
$sel:validity:License' :: License -> Maybe DatetimeRange
$sel:status:License' :: License -> Maybe LicenseStatus
$sel:productSKU:License' :: License -> Maybe Text
$sel:productName:License' :: License -> Maybe Text
$sel:licenseName:License' :: License -> Maybe Text
$sel:licenseMetadata:License' :: License -> Maybe [Metadata]
$sel:licenseArn:License' :: License -> Maybe Text
$sel:issuer:License' :: License -> Maybe IssuerDetails
$sel:homeRegion:License' :: License -> Maybe Text
$sel:entitlements:License' :: License -> Maybe [Entitlement]
$sel:createTime:License' :: License -> Maybe Text
$sel:consumptionConfiguration:License' :: License -> Maybe ConsumptionConfiguration
$sel:beneficiary:License' :: License -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
beneficiary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConsumptionConfiguration
consumptionConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Entitlement]
entitlements
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
homeRegion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IssuerDetails
issuer
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
licenseArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Metadata]
licenseMetadata
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
licenseName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
productName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
productSKU
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LicenseStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DatetimeRange
validity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
version

instance Prelude.NFData License where
  rnf :: License -> ()
rnf License' {Maybe [Entitlement]
Maybe [Metadata]
Maybe Text
Maybe DatetimeRange
Maybe IssuerDetails
Maybe LicenseStatus
Maybe ConsumptionConfiguration
version :: Maybe Text
validity :: Maybe DatetimeRange
status :: Maybe LicenseStatus
productSKU :: Maybe Text
productName :: Maybe Text
licenseName :: Maybe Text
licenseMetadata :: Maybe [Metadata]
licenseArn :: Maybe Text
issuer :: Maybe IssuerDetails
homeRegion :: Maybe Text
entitlements :: Maybe [Entitlement]
createTime :: Maybe Text
consumptionConfiguration :: Maybe ConsumptionConfiguration
beneficiary :: Maybe Text
$sel:version:License' :: License -> Maybe Text
$sel:validity:License' :: License -> Maybe DatetimeRange
$sel:status:License' :: License -> Maybe LicenseStatus
$sel:productSKU:License' :: License -> Maybe Text
$sel:productName:License' :: License -> Maybe Text
$sel:licenseName:License' :: License -> Maybe Text
$sel:licenseMetadata:License' :: License -> Maybe [Metadata]
$sel:licenseArn:License' :: License -> Maybe Text
$sel:issuer:License' :: License -> Maybe IssuerDetails
$sel:homeRegion:License' :: License -> Maybe Text
$sel:entitlements:License' :: License -> Maybe [Entitlement]
$sel:createTime:License' :: License -> Maybe Text
$sel:consumptionConfiguration:License' :: License -> Maybe ConsumptionConfiguration
$sel:beneficiary:License' :: License -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
beneficiary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConsumptionConfiguration
consumptionConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Entitlement]
entitlements
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
homeRegion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IssuerDetails
issuer
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
licenseArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Metadata]
licenseMetadata
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
licenseName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
productName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
productSKU
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LicenseStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DatetimeRange
validity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version