{-# 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.Glue.Types.RegistryListItem where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types.RegistryStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RegistryListItem = RegistryListItem'
{
RegistryListItem -> Maybe RegistryStatus
status :: Prelude.Maybe RegistryStatus,
RegistryListItem -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
RegistryListItem -> Maybe Text
createdTime :: Prelude.Maybe Prelude.Text,
RegistryListItem -> Maybe Text
registryArn :: Prelude.Maybe Prelude.Text,
RegistryListItem -> Maybe Text
updatedTime :: Prelude.Maybe Prelude.Text,
RegistryListItem -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (RegistryListItem -> RegistryListItem -> Bool
(RegistryListItem -> RegistryListItem -> Bool)
-> (RegistryListItem -> RegistryListItem -> Bool)
-> Eq RegistryListItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegistryListItem -> RegistryListItem -> Bool
$c/= :: RegistryListItem -> RegistryListItem -> Bool
== :: RegistryListItem -> RegistryListItem -> Bool
$c== :: RegistryListItem -> RegistryListItem -> Bool
Prelude.Eq, ReadPrec [RegistryListItem]
ReadPrec RegistryListItem
Int -> ReadS RegistryListItem
ReadS [RegistryListItem]
(Int -> ReadS RegistryListItem)
-> ReadS [RegistryListItem]
-> ReadPrec RegistryListItem
-> ReadPrec [RegistryListItem]
-> Read RegistryListItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegistryListItem]
$creadListPrec :: ReadPrec [RegistryListItem]
readPrec :: ReadPrec RegistryListItem
$creadPrec :: ReadPrec RegistryListItem
readList :: ReadS [RegistryListItem]
$creadList :: ReadS [RegistryListItem]
readsPrec :: Int -> ReadS RegistryListItem
$creadsPrec :: Int -> ReadS RegistryListItem
Prelude.Read, Int -> RegistryListItem -> ShowS
[RegistryListItem] -> ShowS
RegistryListItem -> String
(Int -> RegistryListItem -> ShowS)
-> (RegistryListItem -> String)
-> ([RegistryListItem] -> ShowS)
-> Show RegistryListItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegistryListItem] -> ShowS
$cshowList :: [RegistryListItem] -> ShowS
show :: RegistryListItem -> String
$cshow :: RegistryListItem -> String
showsPrec :: Int -> RegistryListItem -> ShowS
$cshowsPrec :: Int -> RegistryListItem -> ShowS
Prelude.Show, (forall x. RegistryListItem -> Rep RegistryListItem x)
-> (forall x. Rep RegistryListItem x -> RegistryListItem)
-> Generic RegistryListItem
forall x. Rep RegistryListItem x -> RegistryListItem
forall x. RegistryListItem -> Rep RegistryListItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RegistryListItem x -> RegistryListItem
$cfrom :: forall x. RegistryListItem -> Rep RegistryListItem x
Prelude.Generic)
newRegistryListItem ::
RegistryListItem
newRegistryListItem :: RegistryListItem
newRegistryListItem =
RegistryListItem' :: Maybe RegistryStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RegistryListItem
RegistryListItem'
{ $sel:status:RegistryListItem' :: Maybe RegistryStatus
status = Maybe RegistryStatus
forall a. Maybe a
Prelude.Nothing,
$sel:registryName:RegistryListItem' :: Maybe Text
registryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:RegistryListItem' :: Maybe Text
createdTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:registryArn:RegistryListItem' :: Maybe Text
registryArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedTime:RegistryListItem' :: Maybe Text
updatedTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:RegistryListItem' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
registryListItem_status :: Lens.Lens' RegistryListItem (Prelude.Maybe RegistryStatus)
registryListItem_status :: (Maybe RegistryStatus -> f (Maybe RegistryStatus))
-> RegistryListItem -> f RegistryListItem
registryListItem_status = (RegistryListItem -> Maybe RegistryStatus)
-> (RegistryListItem -> Maybe RegistryStatus -> RegistryListItem)
-> Lens
RegistryListItem
RegistryListItem
(Maybe RegistryStatus)
(Maybe RegistryStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe RegistryStatus
status :: Maybe RegistryStatus
$sel:status:RegistryListItem' :: RegistryListItem -> Maybe RegistryStatus
status} -> Maybe RegistryStatus
status) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe RegistryStatus
a -> RegistryListItem
s {$sel:status:RegistryListItem' :: Maybe RegistryStatus
status = Maybe RegistryStatus
a} :: RegistryListItem)
registryListItem_registryName :: Lens.Lens' RegistryListItem (Prelude.Maybe Prelude.Text)
registryListItem_registryName :: (Maybe Text -> f (Maybe Text))
-> RegistryListItem -> f RegistryListItem
registryListItem_registryName = (RegistryListItem -> Maybe Text)
-> (RegistryListItem -> Maybe Text -> RegistryListItem)
-> Lens RegistryListItem RegistryListItem (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe Text
registryName :: Maybe Text
$sel:registryName:RegistryListItem' :: RegistryListItem -> Maybe Text
registryName} -> Maybe Text
registryName) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe Text
a -> RegistryListItem
s {$sel:registryName:RegistryListItem' :: Maybe Text
registryName = Maybe Text
a} :: RegistryListItem)
registryListItem_createdTime :: Lens.Lens' RegistryListItem (Prelude.Maybe Prelude.Text)
registryListItem_createdTime :: (Maybe Text -> f (Maybe Text))
-> RegistryListItem -> f RegistryListItem
registryListItem_createdTime = (RegistryListItem -> Maybe Text)
-> (RegistryListItem -> Maybe Text -> RegistryListItem)
-> Lens RegistryListItem RegistryListItem (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe Text
createdTime :: Maybe Text
$sel:createdTime:RegistryListItem' :: RegistryListItem -> Maybe Text
createdTime} -> Maybe Text
createdTime) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe Text
a -> RegistryListItem
s {$sel:createdTime:RegistryListItem' :: Maybe Text
createdTime = Maybe Text
a} :: RegistryListItem)
registryListItem_registryArn :: Lens.Lens' RegistryListItem (Prelude.Maybe Prelude.Text)
registryListItem_registryArn :: (Maybe Text -> f (Maybe Text))
-> RegistryListItem -> f RegistryListItem
registryListItem_registryArn = (RegistryListItem -> Maybe Text)
-> (RegistryListItem -> Maybe Text -> RegistryListItem)
-> Lens RegistryListItem RegistryListItem (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe Text
registryArn :: Maybe Text
$sel:registryArn:RegistryListItem' :: RegistryListItem -> Maybe Text
registryArn} -> Maybe Text
registryArn) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe Text
a -> RegistryListItem
s {$sel:registryArn:RegistryListItem' :: Maybe Text
registryArn = Maybe Text
a} :: RegistryListItem)
registryListItem_updatedTime :: Lens.Lens' RegistryListItem (Prelude.Maybe Prelude.Text)
registryListItem_updatedTime :: (Maybe Text -> f (Maybe Text))
-> RegistryListItem -> f RegistryListItem
registryListItem_updatedTime = (RegistryListItem -> Maybe Text)
-> (RegistryListItem -> Maybe Text -> RegistryListItem)
-> Lens RegistryListItem RegistryListItem (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe Text
updatedTime :: Maybe Text
$sel:updatedTime:RegistryListItem' :: RegistryListItem -> Maybe Text
updatedTime} -> Maybe Text
updatedTime) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe Text
a -> RegistryListItem
s {$sel:updatedTime:RegistryListItem' :: Maybe Text
updatedTime = Maybe Text
a} :: RegistryListItem)
registryListItem_description :: Lens.Lens' RegistryListItem (Prelude.Maybe Prelude.Text)
registryListItem_description :: (Maybe Text -> f (Maybe Text))
-> RegistryListItem -> f RegistryListItem
registryListItem_description = (RegistryListItem -> Maybe Text)
-> (RegistryListItem -> Maybe Text -> RegistryListItem)
-> Lens RegistryListItem RegistryListItem (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegistryListItem' {Maybe Text
description :: Maybe Text
$sel:description:RegistryListItem' :: RegistryListItem -> Maybe Text
description} -> Maybe Text
description) (\s :: RegistryListItem
s@RegistryListItem' {} Maybe Text
a -> RegistryListItem
s {$sel:description:RegistryListItem' :: Maybe Text
description = Maybe Text
a} :: RegistryListItem)
instance Core.FromJSON RegistryListItem where
parseJSON :: Value -> Parser RegistryListItem
parseJSON =
String
-> (Object -> Parser RegistryListItem)
-> Value
-> Parser RegistryListItem
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"RegistryListItem"
( \Object
x ->
Maybe RegistryStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RegistryListItem
RegistryListItem'
(Maybe RegistryStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RegistryListItem)
-> Parser (Maybe RegistryStatus)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RegistryListItem)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe RegistryStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> RegistryListItem)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> RegistryListItem)
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
"RegistryName")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> RegistryListItem)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> RegistryListItem)
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
"CreatedTime")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> RegistryListItem)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> RegistryListItem)
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
"RegistryArn")
Parser (Maybe Text -> Maybe Text -> RegistryListItem)
-> Parser (Maybe Text) -> Parser (Maybe Text -> RegistryListItem)
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
"UpdatedTime")
Parser (Maybe Text -> RegistryListItem)
-> Parser (Maybe Text) -> Parser RegistryListItem
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
"Description")
)
instance Prelude.Hashable RegistryListItem
instance Prelude.NFData RegistryListItem