{-# 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.VoiceId.Types.Domain
-- 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)
module Amazonka.VoiceId.Types.Domain where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.VoiceId.Types.DomainStatus
import Amazonka.VoiceId.Types.ServerSideEncryptionConfiguration

-- | Contains all the information about a domain.
--
-- /See:/ 'newDomain' smart constructor.
data Domain = Domain'
  { -- | The current status of the domain.
    Domain -> Maybe DomainStatus
domainStatus :: Prelude.Maybe DomainStatus,
    -- | The Amazon Resource Name (ARN) for the domain.
    Domain -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The timestamp at which the domain is created.
    Domain -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The client-provided name for the domain.
    Domain -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The service-generated identifier for the domain.
    Domain -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
    -- | The timestamp showing the domain\'s last update.
    Domain -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
    -- | The client-provided description of the domain.
    Domain -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The server-side encryption configuration containing the KMS Key
    -- Identifier you want Voice ID to use to encrypt your data.
    Domain -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Prelude.Maybe ServerSideEncryptionConfiguration
  }
  deriving (Domain -> Domain -> Bool
(Domain -> Domain -> Bool)
-> (Domain -> Domain -> Bool) -> Eq Domain
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Domain -> Domain -> Bool
$c/= :: Domain -> Domain -> Bool
== :: Domain -> Domain -> Bool
$c== :: Domain -> Domain -> Bool
Prelude.Eq, Int -> Domain -> ShowS
[Domain] -> ShowS
Domain -> String
(Int -> Domain -> ShowS)
-> (Domain -> String) -> ([Domain] -> ShowS) -> Show Domain
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Domain] -> ShowS
$cshowList :: [Domain] -> ShowS
show :: Domain -> String
$cshow :: Domain -> String
showsPrec :: Int -> Domain -> ShowS
$cshowsPrec :: Int -> Domain -> ShowS
Prelude.Show, (forall x. Domain -> Rep Domain x)
-> (forall x. Rep Domain x -> Domain) -> Generic Domain
forall x. Rep Domain x -> Domain
forall x. Domain -> Rep Domain x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Domain x -> Domain
$cfrom :: forall x. Domain -> Rep Domain x
Prelude.Generic)

-- |
-- Create a value of 'Domain' 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:
--
-- 'domainStatus', 'domain_domainStatus' - The current status of the domain.
--
-- 'arn', 'domain_arn' - The Amazon Resource Name (ARN) for the domain.
--
-- 'createdAt', 'domain_createdAt' - The timestamp at which the domain is created.
--
-- 'name', 'domain_name' - The client-provided name for the domain.
--
-- 'domainId', 'domain_domainId' - The service-generated identifier for the domain.
--
-- 'updatedAt', 'domain_updatedAt' - The timestamp showing the domain\'s last update.
--
-- 'description', 'domain_description' - The client-provided description of the domain.
--
-- 'serverSideEncryptionConfiguration', 'domain_serverSideEncryptionConfiguration' - The server-side encryption configuration containing the KMS Key
-- Identifier you want Voice ID to use to encrypt your data.
newDomain ::
  Domain
newDomain :: Domain
newDomain =
  Domain' :: Maybe DomainStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> Domain
Domain'
    { $sel:domainStatus:Domain' :: Maybe DomainStatus
domainStatus = Maybe DomainStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:Domain' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Domain' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:Domain' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:Domain' :: Maybe Text
domainId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:Domain' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:description:Domain' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:serverSideEncryptionConfiguration:Domain' :: Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfiguration
forall a. Maybe a
Prelude.Nothing
    }

-- | The current status of the domain.
domain_domainStatus :: Lens.Lens' Domain (Prelude.Maybe DomainStatus)
domain_domainStatus :: (Maybe DomainStatus -> f (Maybe DomainStatus))
-> Domain -> f Domain
domain_domainStatus = (Domain -> Maybe DomainStatus)
-> (Domain -> Maybe DomainStatus -> Domain)
-> Lens Domain Domain (Maybe DomainStatus) (Maybe DomainStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe DomainStatus
domainStatus :: Maybe DomainStatus
$sel:domainStatus:Domain' :: Domain -> Maybe DomainStatus
domainStatus} -> Maybe DomainStatus
domainStatus) (\s :: Domain
s@Domain' {} Maybe DomainStatus
a -> Domain
s {$sel:domainStatus:Domain' :: Maybe DomainStatus
domainStatus = Maybe DomainStatus
a} :: Domain)

-- | The Amazon Resource Name (ARN) for the domain.
domain_arn :: Lens.Lens' Domain (Prelude.Maybe Prelude.Text)
domain_arn :: (Maybe Text -> f (Maybe Text)) -> Domain -> f Domain
domain_arn = (Domain -> Maybe Text)
-> (Domain -> Maybe Text -> Domain)
-> Lens Domain Domain (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe Text
arn :: Maybe Text
$sel:arn:Domain' :: Domain -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Domain
s@Domain' {} Maybe Text
a -> Domain
s {$sel:arn:Domain' :: Maybe Text
arn = Maybe Text
a} :: Domain)

-- | The timestamp at which the domain is created.
domain_createdAt :: Lens.Lens' Domain (Prelude.Maybe Prelude.UTCTime)
domain_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Domain -> f Domain
domain_createdAt = (Domain -> Maybe POSIX)
-> (Domain -> Maybe POSIX -> Domain)
-> Lens Domain Domain (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Domain' :: Domain -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Domain
s@Domain' {} Maybe POSIX
a -> Domain
s {$sel:createdAt:Domain' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Domain) ((Maybe POSIX -> f (Maybe POSIX)) -> Domain -> f Domain)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Domain
-> f Domain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The client-provided name for the domain.
domain_name :: Lens.Lens' Domain (Prelude.Maybe Prelude.Text)
domain_name :: (Maybe Text -> f (Maybe Text)) -> Domain -> f Domain
domain_name = (Domain -> Maybe (Sensitive Text))
-> (Domain -> Maybe (Sensitive Text) -> Domain)
-> Lens
     Domain Domain (Maybe (Sensitive Text)) (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:Domain' :: Domain -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: Domain
s@Domain' {} Maybe (Sensitive Text)
a -> Domain
s {$sel:name:Domain' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: Domain) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> Domain -> f Domain)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> Domain
-> f Domain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The service-generated identifier for the domain.
domain_domainId :: Lens.Lens' Domain (Prelude.Maybe Prelude.Text)
domain_domainId :: (Maybe Text -> f (Maybe Text)) -> Domain -> f Domain
domain_domainId = (Domain -> Maybe Text)
-> (Domain -> Maybe Text -> Domain)
-> Lens Domain Domain (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe Text
domainId :: Maybe Text
$sel:domainId:Domain' :: Domain -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: Domain
s@Domain' {} Maybe Text
a -> Domain
s {$sel:domainId:Domain' :: Maybe Text
domainId = Maybe Text
a} :: Domain)

-- | The timestamp showing the domain\'s last update.
domain_updatedAt :: Lens.Lens' Domain (Prelude.Maybe Prelude.UTCTime)
domain_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Domain -> f Domain
domain_updatedAt = (Domain -> Maybe POSIX)
-> (Domain -> Maybe POSIX -> Domain)
-> Lens Domain Domain (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:Domain' :: Domain -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: Domain
s@Domain' {} Maybe POSIX
a -> Domain
s {$sel:updatedAt:Domain' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: Domain) ((Maybe POSIX -> f (Maybe POSIX)) -> Domain -> f Domain)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Domain
-> f Domain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The client-provided description of the domain.
domain_description :: Lens.Lens' Domain (Prelude.Maybe Prelude.Text)
domain_description :: (Maybe Text -> f (Maybe Text)) -> Domain -> f Domain
domain_description = (Domain -> Maybe (Sensitive Text))
-> (Domain -> Maybe (Sensitive Text) -> Domain)
-> Lens
     Domain Domain (Maybe (Sensitive Text)) (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:Domain' :: Domain -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: Domain
s@Domain' {} Maybe (Sensitive Text)
a -> Domain
s {$sel:description:Domain' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: Domain) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> Domain -> f Domain)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> Domain
-> f Domain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The server-side encryption configuration containing the KMS Key
-- Identifier you want Voice ID to use to encrypt your data.
domain_serverSideEncryptionConfiguration :: Lens.Lens' Domain (Prelude.Maybe ServerSideEncryptionConfiguration)
domain_serverSideEncryptionConfiguration :: (Maybe ServerSideEncryptionConfiguration
 -> f (Maybe ServerSideEncryptionConfiguration))
-> Domain -> f Domain
domain_serverSideEncryptionConfiguration = (Domain -> Maybe ServerSideEncryptionConfiguration)
-> (Domain -> Maybe ServerSideEncryptionConfiguration -> Domain)
-> Lens
     Domain
     Domain
     (Maybe ServerSideEncryptionConfiguration)
     (Maybe ServerSideEncryptionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Domain' {Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfiguration
$sel:serverSideEncryptionConfiguration:Domain' :: Domain -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration} -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration) (\s :: Domain
s@Domain' {} Maybe ServerSideEncryptionConfiguration
a -> Domain
s {$sel:serverSideEncryptionConfiguration:Domain' :: Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfiguration
a} :: Domain)

instance Core.FromJSON Domain where
  parseJSON :: Value -> Parser Domain
parseJSON =
    String -> (Object -> Parser Domain) -> Value -> Parser Domain
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Domain"
      ( \Object
x ->
          Maybe DomainStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> Domain
Domain'
            (Maybe DomainStatus
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe (Sensitive Text)
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe (Sensitive Text)
 -> Maybe ServerSideEncryptionConfiguration
 -> Domain)
-> Parser (Maybe DomainStatus)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration
      -> Domain)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe DomainStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainStatus")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration
   -> Domain)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration
      -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
            Parser
  (Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration
   -> Domain)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration
      -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedAt")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration
   -> Domain)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration
      -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration
   -> Domain)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration
      -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainId")
            Parser
  (Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration
   -> Domain)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe ServerSideEncryptionConfiguration -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdatedAt")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe ServerSideEncryptionConfiguration -> Domain)
-> Parser (Maybe (Sensitive Text))
-> Parser (Maybe ServerSideEncryptionConfiguration -> Domain)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Description")
            Parser (Maybe ServerSideEncryptionConfiguration -> Domain)
-> Parser (Maybe ServerSideEncryptionConfiguration)
-> Parser Domain
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ServerSideEncryptionConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServerSideEncryptionConfiguration")
      )

instance Prelude.Hashable Domain

instance Prelude.NFData Domain