{-# 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.ECRPublic.Types.RepositoryCatalogDataInput
-- 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.ECRPublic.Types.RepositoryCatalogDataInput where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | An object containing the catalog data for a repository. This data is
-- publicly visible in the Amazon ECR Public Gallery.
--
-- /See:/ 'newRepositoryCatalogDataInput' smart constructor.
data RepositoryCatalogDataInput = RepositoryCatalogDataInput'
  { -- | The base64-encoded repository logo payload.
    --
    -- The repository logo is only publicly visible in the Amazon ECR Public
    -- Gallery for verified accounts.
    RepositoryCatalogDataInput -> Maybe Base64
logoImageBlob :: Prelude.Maybe Core.Base64,
    -- | The system architecture that the images in the repository are compatible
    -- with. On the Amazon ECR Public Gallery, the following supported
    -- architectures will appear as badges on the repository and are used as
    -- search filters.
    --
    -- -   @Linux@
    --
    -- -   @Windows@
    --
    -- If an unsupported tag is added to your repository catalog data, it will
    -- be associated with the repository and can be retrieved using the API but
    -- will not be discoverable in the Amazon ECR Public Gallery.
    RepositoryCatalogDataInput -> Maybe [Text]
architectures :: Prelude.Maybe [Prelude.Text],
    -- | Detailed information on how to use the contents of the repository. It is
    -- publicly visible in the Amazon ECR Public Gallery. The usage text
    -- provides context, support information, and additional usage details for
    -- users of the repository. The text must be in markdown format.
    RepositoryCatalogDataInput -> Maybe Text
usageText :: Prelude.Maybe Prelude.Text,
    -- | A detailed description of the contents of the repository. It is publicly
    -- visible in the Amazon ECR Public Gallery. The text must be in markdown
    -- format.
    RepositoryCatalogDataInput -> Maybe Text
aboutText :: Prelude.Maybe Prelude.Text,
    -- | The operating systems that the images in the repository are compatible
    -- with. On the Amazon ECR Public Gallery, the following supported
    -- operating systems will appear as badges on the repository and are used
    -- as search filters.
    --
    -- -   @ARM@
    --
    -- -   @ARM 64@
    --
    -- -   @x86@
    --
    -- -   @x86-64@
    --
    -- If an unsupported tag is added to your repository catalog data, it will
    -- be associated with the repository and can be retrieved using the API but
    -- will not be discoverable in the Amazon ECR Public Gallery.
    RepositoryCatalogDataInput -> Maybe [Text]
operatingSystems :: Prelude.Maybe [Prelude.Text],
    -- | A short description of the contents of the repository. This text appears
    -- in both the image details and also when searching for repositories on
    -- the Amazon ECR Public Gallery.
    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)

-- |
-- Create a value of 'RepositoryCatalogDataInput' 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:
--
-- 'logoImageBlob', 'repositoryCatalogDataInput_logoImageBlob' - The base64-encoded repository logo payload.
--
-- The repository logo is only publicly visible in the Amazon ECR Public
-- Gallery for verified accounts.--
-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.
-- -- The underlying isomorphism will encode to Base64 representation during
-- -- serialisation, and decode from Base64 representation during deserialisation.
-- -- This 'Lens' accepts and returns only raw unencoded data.
--
-- 'architectures', 'repositoryCatalogDataInput_architectures' - The system architecture that the images in the repository are compatible
-- with. On the Amazon ECR Public Gallery, the following supported
-- architectures will appear as badges on the repository and are used as
-- search filters.
--
-- -   @Linux@
--
-- -   @Windows@
--
-- If an unsupported tag is added to your repository catalog data, it will
-- be associated with the repository and can be retrieved using the API but
-- will not be discoverable in the Amazon ECR Public Gallery.
--
-- 'usageText', 'repositoryCatalogDataInput_usageText' - Detailed information on how to use the contents of the repository. It is
-- publicly visible in the Amazon ECR Public Gallery. The usage text
-- provides context, support information, and additional usage details for
-- users of the repository. The text must be in markdown format.
--
-- 'aboutText', 'repositoryCatalogDataInput_aboutText' - A detailed description of the contents of the repository. It is publicly
-- visible in the Amazon ECR Public Gallery. The text must be in markdown
-- format.
--
-- 'operatingSystems', 'repositoryCatalogDataInput_operatingSystems' - The operating systems that the images in the repository are compatible
-- with. On the Amazon ECR Public Gallery, the following supported
-- operating systems will appear as badges on the repository and are used
-- as search filters.
--
-- -   @ARM@
--
-- -   @ARM 64@
--
-- -   @x86@
--
-- -   @x86-64@
--
-- If an unsupported tag is added to your repository catalog data, it will
-- be associated with the repository and can be retrieved using the API but
-- will not be discoverable in the Amazon ECR Public Gallery.
--
-- 'description', 'repositoryCatalogDataInput_description' - A short description of the contents of the repository. This text appears
-- in both the image details and also when searching for repositories on
-- the Amazon ECR Public Gallery.
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
    }

-- | The base64-encoded repository logo payload.
--
-- The repository logo is only publicly visible in the Amazon ECR Public
-- Gallery for verified accounts.--
-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.
-- -- The underlying isomorphism will encode to Base64 representation during
-- -- serialisation, and decode from Base64 representation during deserialisation.
-- -- This 'Lens' accepts and returns only raw unencoded data.
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

-- | The system architecture that the images in the repository are compatible
-- with. On the Amazon ECR Public Gallery, the following supported
-- architectures will appear as badges on the repository and are used as
-- search filters.
--
-- -   @Linux@
--
-- -   @Windows@
--
-- If an unsupported tag is added to your repository catalog data, it will
-- be associated with the repository and can be retrieved using the API but
-- will not be discoverable in the Amazon ECR Public Gallery.
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

-- | Detailed information on how to use the contents of the repository. It is
-- publicly visible in the Amazon ECR Public Gallery. The usage text
-- provides context, support information, and additional usage details for
-- users of the repository. The text must be in markdown format.
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)

-- | A detailed description of the contents of the repository. It is publicly
-- visible in the Amazon ECR Public Gallery. The text must be in markdown
-- format.
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)

-- | The operating systems that the images in the repository are compatible
-- with. On the Amazon ECR Public Gallery, the following supported
-- operating systems will appear as badges on the repository and are used
-- as search filters.
--
-- -   @ARM@
--
-- -   @ARM 64@
--
-- -   @x86@
--
-- -   @x86-64@
--
-- If an unsupported tag is added to your repository catalog data, it will
-- be associated with the repository and can be retrieved using the API but
-- will not be discoverable in the Amazon ECR Public Gallery.
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

-- | A short description of the contents of the repository. This text appears
-- in both the image details and also when searching for repositories on
-- the Amazon ECR Public Gallery.
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
          ]
      )