{-# 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 #-}
module Amazonka.VoiceId.Types.DomainSummary 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
data DomainSummary = DomainSummary'
{
DomainSummary -> Maybe DomainStatus
domainStatus :: Prelude.Maybe DomainStatus,
DomainSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DomainSummary -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
DomainSummary -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DomainSummary -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
DomainSummary -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
DomainSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DomainSummary -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Prelude.Maybe ServerSideEncryptionConfiguration
}
deriving (DomainSummary -> DomainSummary -> Bool
(DomainSummary -> DomainSummary -> Bool)
-> (DomainSummary -> DomainSummary -> Bool) -> Eq DomainSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DomainSummary -> DomainSummary -> Bool
$c/= :: DomainSummary -> DomainSummary -> Bool
== :: DomainSummary -> DomainSummary -> Bool
$c== :: DomainSummary -> DomainSummary -> Bool
Prelude.Eq, Int -> DomainSummary -> ShowS
[DomainSummary] -> ShowS
DomainSummary -> String
(Int -> DomainSummary -> ShowS)
-> (DomainSummary -> String)
-> ([DomainSummary] -> ShowS)
-> Show DomainSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DomainSummary] -> ShowS
$cshowList :: [DomainSummary] -> ShowS
show :: DomainSummary -> String
$cshow :: DomainSummary -> String
showsPrec :: Int -> DomainSummary -> ShowS
$cshowsPrec :: Int -> DomainSummary -> ShowS
Prelude.Show, (forall x. DomainSummary -> Rep DomainSummary x)
-> (forall x. Rep DomainSummary x -> DomainSummary)
-> Generic DomainSummary
forall x. Rep DomainSummary x -> DomainSummary
forall x. DomainSummary -> Rep DomainSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DomainSummary x -> DomainSummary
$cfrom :: forall x. DomainSummary -> Rep DomainSummary x
Prelude.Generic)
newDomainSummary ::
DomainSummary
newDomainSummary :: DomainSummary
newDomainSummary =
DomainSummary' :: Maybe DomainStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary
DomainSummary'
{ $sel:domainStatus:DomainSummary' :: Maybe DomainStatus
domainStatus = Maybe DomainStatus
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DomainSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:DomainSummary' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DomainSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:domainId:DomainSummary' :: Maybe Text
domainId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:DomainSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:description:DomainSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryptionConfiguration:DomainSummary' :: Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfiguration
forall a. Maybe a
Prelude.Nothing
}
domainSummary_domainStatus :: Lens.Lens' DomainSummary (Prelude.Maybe DomainStatus)
domainSummary_domainStatus :: (Maybe DomainStatus -> f (Maybe DomainStatus))
-> DomainSummary -> f DomainSummary
domainSummary_domainStatus = (DomainSummary -> Maybe DomainStatus)
-> (DomainSummary -> Maybe DomainStatus -> DomainSummary)
-> Lens
DomainSummary
DomainSummary
(Maybe DomainStatus)
(Maybe DomainStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe DomainStatus
domainStatus :: Maybe DomainStatus
$sel:domainStatus:DomainSummary' :: DomainSummary -> Maybe DomainStatus
domainStatus} -> Maybe DomainStatus
domainStatus) (\s :: DomainSummary
s@DomainSummary' {} Maybe DomainStatus
a -> DomainSummary
s {$sel:domainStatus:DomainSummary' :: Maybe DomainStatus
domainStatus = Maybe DomainStatus
a} :: DomainSummary)
domainSummary_arn :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.Text)
domainSummary_arn :: (Maybe Text -> f (Maybe Text)) -> DomainSummary -> f DomainSummary
domainSummary_arn = (DomainSummary -> Maybe Text)
-> (DomainSummary -> Maybe Text -> DomainSummary)
-> Lens DomainSummary DomainSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:DomainSummary' :: DomainSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DomainSummary
s@DomainSummary' {} Maybe Text
a -> DomainSummary
s {$sel:arn:DomainSummary' :: Maybe Text
arn = Maybe Text
a} :: DomainSummary)
domainSummary_createdAt :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.UTCTime)
domainSummary_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DomainSummary -> f DomainSummary
domainSummary_createdAt = (DomainSummary -> Maybe POSIX)
-> (DomainSummary -> Maybe POSIX -> DomainSummary)
-> Lens DomainSummary DomainSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DomainSummary' :: DomainSummary -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DomainSummary
s@DomainSummary' {} Maybe POSIX
a -> DomainSummary
s {$sel:createdAt:DomainSummary' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DomainSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> DomainSummary -> f DomainSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DomainSummary
-> f DomainSummary
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
domainSummary_name :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.Text)
domainSummary_name :: (Maybe Text -> f (Maybe Text)) -> DomainSummary -> f DomainSummary
domainSummary_name = (DomainSummary -> Maybe (Sensitive Text))
-> (DomainSummary -> Maybe (Sensitive Text) -> DomainSummary)
-> Lens
DomainSummary
DomainSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:DomainSummary' :: DomainSummary -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: DomainSummary
s@DomainSummary' {} Maybe (Sensitive Text)
a -> DomainSummary
s {$sel:name:DomainSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: DomainSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DomainSummary -> f DomainSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DomainSummary
-> f DomainSummary
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
domainSummary_domainId :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.Text)
domainSummary_domainId :: (Maybe Text -> f (Maybe Text)) -> DomainSummary -> f DomainSummary
domainSummary_domainId = (DomainSummary -> Maybe Text)
-> (DomainSummary -> Maybe Text -> DomainSummary)
-> Lens DomainSummary DomainSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe Text
domainId :: Maybe Text
$sel:domainId:DomainSummary' :: DomainSummary -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: DomainSummary
s@DomainSummary' {} Maybe Text
a -> DomainSummary
s {$sel:domainId:DomainSummary' :: Maybe Text
domainId = Maybe Text
a} :: DomainSummary)
domainSummary_updatedAt :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.UTCTime)
domainSummary_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DomainSummary -> f DomainSummary
domainSummary_updatedAt = (DomainSummary -> Maybe POSIX)
-> (DomainSummary -> Maybe POSIX -> DomainSummary)
-> Lens DomainSummary DomainSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:DomainSummary' :: DomainSummary -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: DomainSummary
s@DomainSummary' {} Maybe POSIX
a -> DomainSummary
s {$sel:updatedAt:DomainSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: DomainSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> DomainSummary -> f DomainSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DomainSummary
-> f DomainSummary
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
domainSummary_description :: Lens.Lens' DomainSummary (Prelude.Maybe Prelude.Text)
domainSummary_description :: (Maybe Text -> f (Maybe Text)) -> DomainSummary -> f DomainSummary
domainSummary_description = (DomainSummary -> Maybe (Sensitive Text))
-> (DomainSummary -> Maybe (Sensitive Text) -> DomainSummary)
-> Lens
DomainSummary
DomainSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:DomainSummary' :: DomainSummary -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: DomainSummary
s@DomainSummary' {} Maybe (Sensitive Text)
a -> DomainSummary
s {$sel:description:DomainSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: DomainSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DomainSummary -> f DomainSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DomainSummary
-> f DomainSummary
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
domainSummary_serverSideEncryptionConfiguration :: Lens.Lens' DomainSummary (Prelude.Maybe ServerSideEncryptionConfiguration)
domainSummary_serverSideEncryptionConfiguration :: (Maybe ServerSideEncryptionConfiguration
-> f (Maybe ServerSideEncryptionConfiguration))
-> DomainSummary -> f DomainSummary
domainSummary_serverSideEncryptionConfiguration = (DomainSummary -> Maybe ServerSideEncryptionConfiguration)
-> (DomainSummary
-> Maybe ServerSideEncryptionConfiguration -> DomainSummary)
-> Lens
DomainSummary
DomainSummary
(Maybe ServerSideEncryptionConfiguration)
(Maybe ServerSideEncryptionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainSummary' {Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfiguration
$sel:serverSideEncryptionConfiguration:DomainSummary' :: DomainSummary -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration} -> Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration) (\s :: DomainSummary
s@DomainSummary' {} Maybe ServerSideEncryptionConfiguration
a -> DomainSummary
s {$sel:serverSideEncryptionConfiguration:DomainSummary' :: Maybe ServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfiguration
a} :: DomainSummary)
instance Core.FromJSON DomainSummary where
parseJSON :: Value -> Parser DomainSummary
parseJSON =
String
-> (Object -> Parser DomainSummary)
-> Value
-> Parser DomainSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DomainSummary"
( \Object
x ->
Maybe DomainStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary
DomainSummary'
(Maybe DomainStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
-> Parser (Maybe DomainStatus)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
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
-> DomainSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
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
-> DomainSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
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
-> DomainSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
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
-> DomainSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration
-> DomainSummary)
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
-> DomainSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryptionConfiguration -> DomainSummary)
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 -> DomainSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe ServerSideEncryptionConfiguration -> DomainSummary)
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 -> DomainSummary)
-> Parser (Maybe ServerSideEncryptionConfiguration)
-> Parser DomainSummary
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 DomainSummary
instance Prelude.NFData DomainSummary