{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.PutRepositoryCatalogData
-- 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)
--
-- Creates or updates the catalog data for a repository in a public
-- registry.
module Amazonka.ECRPublic.PutRepositoryCatalogData
  ( -- * Creating a Request
    PutRepositoryCatalogData (..),
    newPutRepositoryCatalogData,

    -- * Request Lenses
    putRepositoryCatalogData_registryId,
    putRepositoryCatalogData_repositoryName,
    putRepositoryCatalogData_catalogData,

    -- * Destructuring the Response
    PutRepositoryCatalogDataResponse (..),
    newPutRepositoryCatalogDataResponse,

    -- * Response Lenses
    putRepositoryCatalogDataResponse_catalogData,
    putRepositoryCatalogDataResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.ECRPublic.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newPutRepositoryCatalogData' smart constructor.
data PutRepositoryCatalogData = PutRepositoryCatalogData'
  { -- | The AWS account ID associated with the public registry the repository is
    -- in. If you do not specify a registry, the default public registry is
    -- assumed.
    PutRepositoryCatalogData -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
    -- | The name of the repository to create or update the catalog data for.
    PutRepositoryCatalogData -> Text
repositoryName :: Prelude.Text,
    -- | An object containing the catalog data for a repository. This data is
    -- publicly visible in the Amazon ECR Public Gallery.
    PutRepositoryCatalogData -> RepositoryCatalogDataInput
catalogData :: RepositoryCatalogDataInput
  }
  deriving (PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool
(PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool)
-> (PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool)
-> Eq PutRepositoryCatalogData
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool
$c/= :: PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool
== :: PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool
$c== :: PutRepositoryCatalogData -> PutRepositoryCatalogData -> Bool
Prelude.Eq, ReadPrec [PutRepositoryCatalogData]
ReadPrec PutRepositoryCatalogData
Int -> ReadS PutRepositoryCatalogData
ReadS [PutRepositoryCatalogData]
(Int -> ReadS PutRepositoryCatalogData)
-> ReadS [PutRepositoryCatalogData]
-> ReadPrec PutRepositoryCatalogData
-> ReadPrec [PutRepositoryCatalogData]
-> Read PutRepositoryCatalogData
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutRepositoryCatalogData]
$creadListPrec :: ReadPrec [PutRepositoryCatalogData]
readPrec :: ReadPrec PutRepositoryCatalogData
$creadPrec :: ReadPrec PutRepositoryCatalogData
readList :: ReadS [PutRepositoryCatalogData]
$creadList :: ReadS [PutRepositoryCatalogData]
readsPrec :: Int -> ReadS PutRepositoryCatalogData
$creadsPrec :: Int -> ReadS PutRepositoryCatalogData
Prelude.Read, Int -> PutRepositoryCatalogData -> ShowS
[PutRepositoryCatalogData] -> ShowS
PutRepositoryCatalogData -> String
(Int -> PutRepositoryCatalogData -> ShowS)
-> (PutRepositoryCatalogData -> String)
-> ([PutRepositoryCatalogData] -> ShowS)
-> Show PutRepositoryCatalogData
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutRepositoryCatalogData] -> ShowS
$cshowList :: [PutRepositoryCatalogData] -> ShowS
show :: PutRepositoryCatalogData -> String
$cshow :: PutRepositoryCatalogData -> String
showsPrec :: Int -> PutRepositoryCatalogData -> ShowS
$cshowsPrec :: Int -> PutRepositoryCatalogData -> ShowS
Prelude.Show, (forall x.
 PutRepositoryCatalogData -> Rep PutRepositoryCatalogData x)
-> (forall x.
    Rep PutRepositoryCatalogData x -> PutRepositoryCatalogData)
-> Generic PutRepositoryCatalogData
forall x.
Rep PutRepositoryCatalogData x -> PutRepositoryCatalogData
forall x.
PutRepositoryCatalogData -> Rep PutRepositoryCatalogData x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutRepositoryCatalogData x -> PutRepositoryCatalogData
$cfrom :: forall x.
PutRepositoryCatalogData -> Rep PutRepositoryCatalogData x
Prelude.Generic)

-- |
-- Create a value of 'PutRepositoryCatalogData' 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:
--
-- 'registryId', 'putRepositoryCatalogData_registryId' - The AWS account ID associated with the public registry the repository is
-- in. If you do not specify a registry, the default public registry is
-- assumed.
--
-- 'repositoryName', 'putRepositoryCatalogData_repositoryName' - The name of the repository to create or update the catalog data for.
--
-- 'catalogData', 'putRepositoryCatalogData_catalogData' - An object containing the catalog data for a repository. This data is
-- publicly visible in the Amazon ECR Public Gallery.
newPutRepositoryCatalogData ::
  -- | 'repositoryName'
  Prelude.Text ->
  -- | 'catalogData'
  RepositoryCatalogDataInput ->
  PutRepositoryCatalogData
newPutRepositoryCatalogData :: Text -> RepositoryCatalogDataInput -> PutRepositoryCatalogData
newPutRepositoryCatalogData
  Text
pRepositoryName_
  RepositoryCatalogDataInput
pCatalogData_ =
    PutRepositoryCatalogData' :: Maybe Text
-> Text -> RepositoryCatalogDataInput -> PutRepositoryCatalogData
PutRepositoryCatalogData'
      { $sel:registryId:PutRepositoryCatalogData' :: Maybe Text
registryId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:repositoryName:PutRepositoryCatalogData' :: Text
repositoryName = Text
pRepositoryName_,
        $sel:catalogData:PutRepositoryCatalogData' :: RepositoryCatalogDataInput
catalogData = RepositoryCatalogDataInput
pCatalogData_
      }

-- | The AWS account ID associated with the public registry the repository is
-- in. If you do not specify a registry, the default public registry is
-- assumed.
putRepositoryCatalogData_registryId :: Lens.Lens' PutRepositoryCatalogData (Prelude.Maybe Prelude.Text)
putRepositoryCatalogData_registryId :: (Maybe Text -> f (Maybe Text))
-> PutRepositoryCatalogData -> f PutRepositoryCatalogData
putRepositoryCatalogData_registryId = (PutRepositoryCatalogData -> Maybe Text)
-> (PutRepositoryCatalogData
    -> Maybe Text -> PutRepositoryCatalogData)
-> Lens
     PutRepositoryCatalogData
     PutRepositoryCatalogData
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRepositoryCatalogData' {Maybe Text
registryId :: Maybe Text
$sel:registryId:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: PutRepositoryCatalogData
s@PutRepositoryCatalogData' {} Maybe Text
a -> PutRepositoryCatalogData
s {$sel:registryId:PutRepositoryCatalogData' :: Maybe Text
registryId = Maybe Text
a} :: PutRepositoryCatalogData)

-- | The name of the repository to create or update the catalog data for.
putRepositoryCatalogData_repositoryName :: Lens.Lens' PutRepositoryCatalogData Prelude.Text
putRepositoryCatalogData_repositoryName :: (Text -> f Text)
-> PutRepositoryCatalogData -> f PutRepositoryCatalogData
putRepositoryCatalogData_repositoryName = (PutRepositoryCatalogData -> Text)
-> (PutRepositoryCatalogData -> Text -> PutRepositoryCatalogData)
-> Lens PutRepositoryCatalogData PutRepositoryCatalogData Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRepositoryCatalogData' {Text
repositoryName :: Text
$sel:repositoryName:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> Text
repositoryName} -> Text
repositoryName) (\s :: PutRepositoryCatalogData
s@PutRepositoryCatalogData' {} Text
a -> PutRepositoryCatalogData
s {$sel:repositoryName:PutRepositoryCatalogData' :: Text
repositoryName = Text
a} :: PutRepositoryCatalogData)

-- | An object containing the catalog data for a repository. This data is
-- publicly visible in the Amazon ECR Public Gallery.
putRepositoryCatalogData_catalogData :: Lens.Lens' PutRepositoryCatalogData RepositoryCatalogDataInput
putRepositoryCatalogData_catalogData :: (RepositoryCatalogDataInput -> f RepositoryCatalogDataInput)
-> PutRepositoryCatalogData -> f PutRepositoryCatalogData
putRepositoryCatalogData_catalogData = (PutRepositoryCatalogData -> RepositoryCatalogDataInput)
-> (PutRepositoryCatalogData
    -> RepositoryCatalogDataInput -> PutRepositoryCatalogData)
-> Lens
     PutRepositoryCatalogData
     PutRepositoryCatalogData
     RepositoryCatalogDataInput
     RepositoryCatalogDataInput
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRepositoryCatalogData' {RepositoryCatalogDataInput
catalogData :: RepositoryCatalogDataInput
$sel:catalogData:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> RepositoryCatalogDataInput
catalogData} -> RepositoryCatalogDataInput
catalogData) (\s :: PutRepositoryCatalogData
s@PutRepositoryCatalogData' {} RepositoryCatalogDataInput
a -> PutRepositoryCatalogData
s {$sel:catalogData:PutRepositoryCatalogData' :: RepositoryCatalogDataInput
catalogData = RepositoryCatalogDataInput
a} :: PutRepositoryCatalogData)

instance Core.AWSRequest PutRepositoryCatalogData where
  type
    AWSResponse PutRepositoryCatalogData =
      PutRepositoryCatalogDataResponse
  request :: PutRepositoryCatalogData -> Request PutRepositoryCatalogData
request = Service
-> PutRepositoryCatalogData -> Request PutRepositoryCatalogData
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutRepositoryCatalogData
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutRepositoryCatalogData)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse PutRepositoryCatalogData))
-> Logger
-> Service
-> Proxy PutRepositoryCatalogData
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutRepositoryCatalogData)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe RepositoryCatalogData
-> Int -> PutRepositoryCatalogDataResponse
PutRepositoryCatalogDataResponse'
            (Maybe RepositoryCatalogData
 -> Int -> PutRepositoryCatalogDataResponse)
-> Either String (Maybe RepositoryCatalogData)
-> Either String (Int -> PutRepositoryCatalogDataResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RepositoryCatalogData)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"catalogData")
            Either String (Int -> PutRepositoryCatalogDataResponse)
-> Either String Int
-> Either String PutRepositoryCatalogDataResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable PutRepositoryCatalogData

instance Prelude.NFData PutRepositoryCatalogData

instance Core.ToHeaders PutRepositoryCatalogData where
  toHeaders :: PutRepositoryCatalogData -> ResponseHeaders
toHeaders =
    ResponseHeaders -> PutRepositoryCatalogData -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SpencerFrontendService.PutRepositoryCatalogData" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON PutRepositoryCatalogData where
  toJSON :: PutRepositoryCatalogData -> Value
toJSON PutRepositoryCatalogData' {Maybe Text
Text
RepositoryCatalogDataInput
catalogData :: RepositoryCatalogDataInput
repositoryName :: Text
registryId :: Maybe Text
$sel:catalogData:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> RepositoryCatalogDataInput
$sel:repositoryName:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> Text
$sel:registryId:PutRepositoryCatalogData' :: PutRepositoryCatalogData -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"registryId" 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
registryId,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"catalogData" Text -> RepositoryCatalogDataInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RepositoryCatalogDataInput
catalogData)
          ]
      )

instance Core.ToPath PutRepositoryCatalogData where
  toPath :: PutRepositoryCatalogData -> ByteString
toPath = ByteString -> PutRepositoryCatalogData -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery PutRepositoryCatalogData where
  toQuery :: PutRepositoryCatalogData -> QueryString
toQuery = QueryString -> PutRepositoryCatalogData -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newPutRepositoryCatalogDataResponse' smart constructor.
data PutRepositoryCatalogDataResponse = PutRepositoryCatalogDataResponse'
  { -- | The catalog data for the repository.
    PutRepositoryCatalogDataResponse -> Maybe RepositoryCatalogData
catalogData :: Prelude.Maybe RepositoryCatalogData,
    -- | The response's http status code.
    PutRepositoryCatalogDataResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutRepositoryCatalogDataResponse
-> PutRepositoryCatalogDataResponse -> Bool
(PutRepositoryCatalogDataResponse
 -> PutRepositoryCatalogDataResponse -> Bool)
-> (PutRepositoryCatalogDataResponse
    -> PutRepositoryCatalogDataResponse -> Bool)
-> Eq PutRepositoryCatalogDataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutRepositoryCatalogDataResponse
-> PutRepositoryCatalogDataResponse -> Bool
$c/= :: PutRepositoryCatalogDataResponse
-> PutRepositoryCatalogDataResponse -> Bool
== :: PutRepositoryCatalogDataResponse
-> PutRepositoryCatalogDataResponse -> Bool
$c== :: PutRepositoryCatalogDataResponse
-> PutRepositoryCatalogDataResponse -> Bool
Prelude.Eq, ReadPrec [PutRepositoryCatalogDataResponse]
ReadPrec PutRepositoryCatalogDataResponse
Int -> ReadS PutRepositoryCatalogDataResponse
ReadS [PutRepositoryCatalogDataResponse]
(Int -> ReadS PutRepositoryCatalogDataResponse)
-> ReadS [PutRepositoryCatalogDataResponse]
-> ReadPrec PutRepositoryCatalogDataResponse
-> ReadPrec [PutRepositoryCatalogDataResponse]
-> Read PutRepositoryCatalogDataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutRepositoryCatalogDataResponse]
$creadListPrec :: ReadPrec [PutRepositoryCatalogDataResponse]
readPrec :: ReadPrec PutRepositoryCatalogDataResponse
$creadPrec :: ReadPrec PutRepositoryCatalogDataResponse
readList :: ReadS [PutRepositoryCatalogDataResponse]
$creadList :: ReadS [PutRepositoryCatalogDataResponse]
readsPrec :: Int -> ReadS PutRepositoryCatalogDataResponse
$creadsPrec :: Int -> ReadS PutRepositoryCatalogDataResponse
Prelude.Read, Int -> PutRepositoryCatalogDataResponse -> ShowS
[PutRepositoryCatalogDataResponse] -> ShowS
PutRepositoryCatalogDataResponse -> String
(Int -> PutRepositoryCatalogDataResponse -> ShowS)
-> (PutRepositoryCatalogDataResponse -> String)
-> ([PutRepositoryCatalogDataResponse] -> ShowS)
-> Show PutRepositoryCatalogDataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutRepositoryCatalogDataResponse] -> ShowS
$cshowList :: [PutRepositoryCatalogDataResponse] -> ShowS
show :: PutRepositoryCatalogDataResponse -> String
$cshow :: PutRepositoryCatalogDataResponse -> String
showsPrec :: Int -> PutRepositoryCatalogDataResponse -> ShowS
$cshowsPrec :: Int -> PutRepositoryCatalogDataResponse -> ShowS
Prelude.Show, (forall x.
 PutRepositoryCatalogDataResponse
 -> Rep PutRepositoryCatalogDataResponse x)
-> (forall x.
    Rep PutRepositoryCatalogDataResponse x
    -> PutRepositoryCatalogDataResponse)
-> Generic PutRepositoryCatalogDataResponse
forall x.
Rep PutRepositoryCatalogDataResponse x
-> PutRepositoryCatalogDataResponse
forall x.
PutRepositoryCatalogDataResponse
-> Rep PutRepositoryCatalogDataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutRepositoryCatalogDataResponse x
-> PutRepositoryCatalogDataResponse
$cfrom :: forall x.
PutRepositoryCatalogDataResponse
-> Rep PutRepositoryCatalogDataResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutRepositoryCatalogDataResponse' 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:
--
-- 'catalogData', 'putRepositoryCatalogDataResponse_catalogData' - The catalog data for the repository.
--
-- 'httpStatus', 'putRepositoryCatalogDataResponse_httpStatus' - The response's http status code.
newPutRepositoryCatalogDataResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutRepositoryCatalogDataResponse
newPutRepositoryCatalogDataResponse :: Int -> PutRepositoryCatalogDataResponse
newPutRepositoryCatalogDataResponse Int
pHttpStatus_ =
  PutRepositoryCatalogDataResponse' :: Maybe RepositoryCatalogData
-> Int -> PutRepositoryCatalogDataResponse
PutRepositoryCatalogDataResponse'
    { $sel:catalogData:PutRepositoryCatalogDataResponse' :: Maybe RepositoryCatalogData
catalogData =
        Maybe RepositoryCatalogData
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:PutRepositoryCatalogDataResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The catalog data for the repository.
putRepositoryCatalogDataResponse_catalogData :: Lens.Lens' PutRepositoryCatalogDataResponse (Prelude.Maybe RepositoryCatalogData)
putRepositoryCatalogDataResponse_catalogData :: (Maybe RepositoryCatalogData -> f (Maybe RepositoryCatalogData))
-> PutRepositoryCatalogDataResponse
-> f PutRepositoryCatalogDataResponse
putRepositoryCatalogDataResponse_catalogData = (PutRepositoryCatalogDataResponse -> Maybe RepositoryCatalogData)
-> (PutRepositoryCatalogDataResponse
    -> Maybe RepositoryCatalogData -> PutRepositoryCatalogDataResponse)
-> Lens
     PutRepositoryCatalogDataResponse
     PutRepositoryCatalogDataResponse
     (Maybe RepositoryCatalogData)
     (Maybe RepositoryCatalogData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRepositoryCatalogDataResponse' {Maybe RepositoryCatalogData
catalogData :: Maybe RepositoryCatalogData
$sel:catalogData:PutRepositoryCatalogDataResponse' :: PutRepositoryCatalogDataResponse -> Maybe RepositoryCatalogData
catalogData} -> Maybe RepositoryCatalogData
catalogData) (\s :: PutRepositoryCatalogDataResponse
s@PutRepositoryCatalogDataResponse' {} Maybe RepositoryCatalogData
a -> PutRepositoryCatalogDataResponse
s {$sel:catalogData:PutRepositoryCatalogDataResponse' :: Maybe RepositoryCatalogData
catalogData = Maybe RepositoryCatalogData
a} :: PutRepositoryCatalogDataResponse)

-- | The response's http status code.
putRepositoryCatalogDataResponse_httpStatus :: Lens.Lens' PutRepositoryCatalogDataResponse Prelude.Int
putRepositoryCatalogDataResponse_httpStatus :: (Int -> f Int)
-> PutRepositoryCatalogDataResponse
-> f PutRepositoryCatalogDataResponse
putRepositoryCatalogDataResponse_httpStatus = (PutRepositoryCatalogDataResponse -> Int)
-> (PutRepositoryCatalogDataResponse
    -> Int -> PutRepositoryCatalogDataResponse)
-> Lens
     PutRepositoryCatalogDataResponse
     PutRepositoryCatalogDataResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRepositoryCatalogDataResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutRepositoryCatalogDataResponse' :: PutRepositoryCatalogDataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutRepositoryCatalogDataResponse
s@PutRepositoryCatalogDataResponse' {} Int
a -> PutRepositoryCatalogDataResponse
s {$sel:httpStatus:PutRepositoryCatalogDataResponse' :: Int
httpStatus = Int
a} :: PutRepositoryCatalogDataResponse)

instance
  Prelude.NFData
    PutRepositoryCatalogDataResponse