{-# 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.ECRPublic.Types.RepositoryCatalogDataInput where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RepositoryCatalogDataInput = RepositoryCatalogDataInput'
{
RepositoryCatalogDataInput -> Maybe Base64
logoImageBlob :: Prelude.Maybe Core.Base64,
RepositoryCatalogDataInput -> Maybe [Text]
architectures :: Prelude.Maybe [Prelude.Text],
RepositoryCatalogDataInput -> Maybe Text
usageText :: Prelude.Maybe Prelude.Text,
RepositoryCatalogDataInput -> Maybe Text
aboutText :: Prelude.Maybe Prelude.Text,
RepositoryCatalogDataInput -> Maybe [Text]
operatingSystems :: Prelude.Maybe [Prelude.Text],
RepositoryCatalogDataInput -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool
(RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool)
-> (RepositoryCatalogDataInput
-> RepositoryCatalogDataInput -> Bool)
-> Eq RepositoryCatalogDataInput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool
$c/= :: RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool
== :: RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool
$c== :: RepositoryCatalogDataInput -> RepositoryCatalogDataInput -> Bool
Prelude.Eq, ReadPrec [RepositoryCatalogDataInput]
ReadPrec RepositoryCatalogDataInput
Int -> ReadS RepositoryCatalogDataInput
ReadS [RepositoryCatalogDataInput]
(Int -> ReadS RepositoryCatalogDataInput)
-> ReadS [RepositoryCatalogDataInput]
-> ReadPrec RepositoryCatalogDataInput
-> ReadPrec [RepositoryCatalogDataInput]
-> Read RepositoryCatalogDataInput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RepositoryCatalogDataInput]
$creadListPrec :: ReadPrec [RepositoryCatalogDataInput]
readPrec :: ReadPrec RepositoryCatalogDataInput
$creadPrec :: ReadPrec RepositoryCatalogDataInput
readList :: ReadS [RepositoryCatalogDataInput]
$creadList :: ReadS [RepositoryCatalogDataInput]
readsPrec :: Int -> ReadS RepositoryCatalogDataInput
$creadsPrec :: Int -> ReadS RepositoryCatalogDataInput
Prelude.Read, Int -> RepositoryCatalogDataInput -> ShowS
[RepositoryCatalogDataInput] -> ShowS
RepositoryCatalogDataInput -> String
(Int -> RepositoryCatalogDataInput -> ShowS)
-> (RepositoryCatalogDataInput -> String)
-> ([RepositoryCatalogDataInput] -> ShowS)
-> Show RepositoryCatalogDataInput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepositoryCatalogDataInput] -> ShowS
$cshowList :: [RepositoryCatalogDataInput] -> ShowS
show :: RepositoryCatalogDataInput -> String
$cshow :: RepositoryCatalogDataInput -> String
showsPrec :: Int -> RepositoryCatalogDataInput -> ShowS
$cshowsPrec :: Int -> RepositoryCatalogDataInput -> ShowS
Prelude.Show, (forall x.
RepositoryCatalogDataInput -> Rep RepositoryCatalogDataInput x)
-> (forall x.
Rep RepositoryCatalogDataInput x -> RepositoryCatalogDataInput)
-> Generic RepositoryCatalogDataInput
forall x.
Rep RepositoryCatalogDataInput x -> RepositoryCatalogDataInput
forall x.
RepositoryCatalogDataInput -> Rep RepositoryCatalogDataInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RepositoryCatalogDataInput x -> RepositoryCatalogDataInput
$cfrom :: forall x.
RepositoryCatalogDataInput -> Rep RepositoryCatalogDataInput x
Prelude.Generic)
newRepositoryCatalogDataInput ::
RepositoryCatalogDataInput
newRepositoryCatalogDataInput :: RepositoryCatalogDataInput
newRepositoryCatalogDataInput =
RepositoryCatalogDataInput' :: Maybe Base64
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> RepositoryCatalogDataInput
RepositoryCatalogDataInput'
{ $sel:logoImageBlob:RepositoryCatalogDataInput' :: Maybe Base64
logoImageBlob =
Maybe Base64
forall a. Maybe a
Prelude.Nothing,
$sel:architectures:RepositoryCatalogDataInput' :: Maybe [Text]
architectures = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:usageText:RepositoryCatalogDataInput' :: Maybe Text
usageText = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:aboutText:RepositoryCatalogDataInput' :: Maybe Text
aboutText = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operatingSystems:RepositoryCatalogDataInput' :: Maybe [Text]
operatingSystems = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:description:RepositoryCatalogDataInput' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
repositoryCatalogDataInput_logoImageBlob :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe Prelude.ByteString)
repositoryCatalogDataInput_logoImageBlob :: (Maybe ByteString -> f (Maybe ByteString))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_logoImageBlob = (RepositoryCatalogDataInput -> Maybe Base64)
-> (RepositoryCatalogDataInput
-> Maybe Base64 -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe Base64)
(Maybe Base64)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe Base64
logoImageBlob :: Maybe Base64
$sel:logoImageBlob:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Base64
logoImageBlob} -> Maybe Base64
logoImageBlob) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe Base64
a -> RepositoryCatalogDataInput
s {$sel:logoImageBlob:RepositoryCatalogDataInput' :: Maybe Base64
logoImageBlob = Maybe Base64
a} :: RepositoryCatalogDataInput) ((Maybe Base64 -> f (Maybe Base64))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput)
-> ((Maybe ByteString -> f (Maybe ByteString))
-> Maybe Base64 -> f (Maybe Base64))
-> (Maybe ByteString -> f (Maybe ByteString))
-> RepositoryCatalogDataInput
-> f RepositoryCatalogDataInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso Base64 Base64 ByteString ByteString
-> Iso
(Maybe Base64) (Maybe Base64) (Maybe ByteString) (Maybe ByteString)
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 Base64 Base64 ByteString ByteString
Iso' Base64 ByteString
Core._Base64
repositoryCatalogDataInput_architectures :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe [Prelude.Text])
repositoryCatalogDataInput_architectures :: (Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_architectures = (RepositoryCatalogDataInput -> Maybe [Text])
-> (RepositoryCatalogDataInput
-> Maybe [Text] -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe [Text]
architectures :: Maybe [Text]
$sel:architectures:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe [Text]
architectures} -> Maybe [Text]
architectures) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe [Text]
a -> RepositoryCatalogDataInput
s {$sel:architectures:RepositoryCatalogDataInput' :: Maybe [Text]
architectures = Maybe [Text]
a} :: RepositoryCatalogDataInput) ((Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput
-> f RepositoryCatalogDataInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
repositoryCatalogDataInput_usageText :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe Prelude.Text)
repositoryCatalogDataInput_usageText :: (Maybe Text -> f (Maybe Text))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_usageText = (RepositoryCatalogDataInput -> Maybe Text)
-> (RepositoryCatalogDataInput
-> Maybe Text -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe Text
usageText :: Maybe Text
$sel:usageText:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
usageText} -> Maybe Text
usageText) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe Text
a -> RepositoryCatalogDataInput
s {$sel:usageText:RepositoryCatalogDataInput' :: Maybe Text
usageText = Maybe Text
a} :: RepositoryCatalogDataInput)
repositoryCatalogDataInput_aboutText :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe Prelude.Text)
repositoryCatalogDataInput_aboutText :: (Maybe Text -> f (Maybe Text))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_aboutText = (RepositoryCatalogDataInput -> Maybe Text)
-> (RepositoryCatalogDataInput
-> Maybe Text -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe Text
aboutText :: Maybe Text
$sel:aboutText:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
aboutText} -> Maybe Text
aboutText) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe Text
a -> RepositoryCatalogDataInput
s {$sel:aboutText:RepositoryCatalogDataInput' :: Maybe Text
aboutText = Maybe Text
a} :: RepositoryCatalogDataInput)
repositoryCatalogDataInput_operatingSystems :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe [Prelude.Text])
repositoryCatalogDataInput_operatingSystems :: (Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_operatingSystems = (RepositoryCatalogDataInput -> Maybe [Text])
-> (RepositoryCatalogDataInput
-> Maybe [Text] -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe [Text]
operatingSystems :: Maybe [Text]
$sel:operatingSystems:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe [Text]
operatingSystems} -> Maybe [Text]
operatingSystems) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe [Text]
a -> RepositoryCatalogDataInput
s {$sel:operatingSystems:RepositoryCatalogDataInput' :: Maybe [Text]
operatingSystems = Maybe [Text]
a} :: RepositoryCatalogDataInput) ((Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RepositoryCatalogDataInput
-> f RepositoryCatalogDataInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
repositoryCatalogDataInput_description :: Lens.Lens' RepositoryCatalogDataInput (Prelude.Maybe Prelude.Text)
repositoryCatalogDataInput_description :: (Maybe Text -> f (Maybe Text))
-> RepositoryCatalogDataInput -> f RepositoryCatalogDataInput
repositoryCatalogDataInput_description = (RepositoryCatalogDataInput -> Maybe Text)
-> (RepositoryCatalogDataInput
-> Maybe Text -> RepositoryCatalogDataInput)
-> Lens
RepositoryCatalogDataInput
RepositoryCatalogDataInput
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryCatalogDataInput' {Maybe Text
description :: Maybe Text
$sel:description:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
description} -> Maybe Text
description) (\s :: RepositoryCatalogDataInput
s@RepositoryCatalogDataInput' {} Maybe Text
a -> RepositoryCatalogDataInput
s {$sel:description:RepositoryCatalogDataInput' :: Maybe Text
description = Maybe Text
a} :: RepositoryCatalogDataInput)
instance Prelude.Hashable RepositoryCatalogDataInput
instance Prelude.NFData RepositoryCatalogDataInput
instance Core.ToJSON RepositoryCatalogDataInput where
toJSON :: RepositoryCatalogDataInput -> Value
toJSON RepositoryCatalogDataInput' {Maybe [Text]
Maybe Text
Maybe Base64
description :: Maybe Text
operatingSystems :: Maybe [Text]
aboutText :: Maybe Text
usageText :: Maybe Text
architectures :: Maybe [Text]
logoImageBlob :: Maybe Base64
$sel:description:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
$sel:operatingSystems:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe [Text]
$sel:aboutText:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
$sel:usageText:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Text
$sel:architectures:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe [Text]
$sel:logoImageBlob:RepositoryCatalogDataInput' :: RepositoryCatalogDataInput -> Maybe Base64
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"logoImageBlob" Text -> Base64 -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Base64 -> Pair) -> Maybe Base64 -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Base64
logoImageBlob,
(Text
"architectures" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
architectures,
(Text
"usageText" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
usageText,
(Text
"aboutText" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
aboutText,
(Text
"operatingSystems" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
operatingSystems,
(Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description
]
)