{-# 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.Glue.PutSchemaVersionMetadata
-- 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)
--
-- Puts the metadata key value pair for a specified schema version ID. A
-- maximum of 10 key value pairs will be allowed per schema version. They
-- can be added over one or more calls.
module Amazonka.Glue.PutSchemaVersionMetadata
  ( -- * Creating a Request
    PutSchemaVersionMetadata (..),
    newPutSchemaVersionMetadata,

    -- * Request Lenses
    putSchemaVersionMetadata_schemaVersionId,
    putSchemaVersionMetadata_schemaId,
    putSchemaVersionMetadata_schemaVersionNumber,
    putSchemaVersionMetadata_metadataKeyValue,

    -- * Destructuring the Response
    PutSchemaVersionMetadataResponse (..),
    newPutSchemaVersionMetadataResponse,

    -- * Response Lenses
    putSchemaVersionMetadataResponse_registryName,
    putSchemaVersionMetadataResponse_schemaName,
    putSchemaVersionMetadataResponse_schemaVersionId,
    putSchemaVersionMetadataResponse_versionNumber,
    putSchemaVersionMetadataResponse_schemaArn,
    putSchemaVersionMetadataResponse_metadataKey,
    putSchemaVersionMetadataResponse_metadataValue,
    putSchemaVersionMetadataResponse_latestVersion,
    putSchemaVersionMetadataResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.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:/ 'newPutSchemaVersionMetadata' smart constructor.
data PutSchemaVersionMetadata = PutSchemaVersionMetadata'
  { -- | The unique version ID of the schema version.
    PutSchemaVersionMetadata -> Maybe Text
schemaVersionId :: Prelude.Maybe Prelude.Text,
    -- | The unique ID for the schema.
    PutSchemaVersionMetadata -> Maybe SchemaId
schemaId :: Prelude.Maybe SchemaId,
    -- | The version number of the schema.
    PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
schemaVersionNumber :: Prelude.Maybe SchemaVersionNumber,
    -- | The metadata key\'s corresponding value.
    PutSchemaVersionMetadata -> MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
  }
  deriving (PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
(PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool)
-> (PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool)
-> Eq PutSchemaVersionMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
$c/= :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
== :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
$c== :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
Prelude.Eq, ReadPrec [PutSchemaVersionMetadata]
ReadPrec PutSchemaVersionMetadata
Int -> ReadS PutSchemaVersionMetadata
ReadS [PutSchemaVersionMetadata]
(Int -> ReadS PutSchemaVersionMetadata)
-> ReadS [PutSchemaVersionMetadata]
-> ReadPrec PutSchemaVersionMetadata
-> ReadPrec [PutSchemaVersionMetadata]
-> Read PutSchemaVersionMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutSchemaVersionMetadata]
$creadListPrec :: ReadPrec [PutSchemaVersionMetadata]
readPrec :: ReadPrec PutSchemaVersionMetadata
$creadPrec :: ReadPrec PutSchemaVersionMetadata
readList :: ReadS [PutSchemaVersionMetadata]
$creadList :: ReadS [PutSchemaVersionMetadata]
readsPrec :: Int -> ReadS PutSchemaVersionMetadata
$creadsPrec :: Int -> ReadS PutSchemaVersionMetadata
Prelude.Read, Int -> PutSchemaVersionMetadata -> ShowS
[PutSchemaVersionMetadata] -> ShowS
PutSchemaVersionMetadata -> String
(Int -> PutSchemaVersionMetadata -> ShowS)
-> (PutSchemaVersionMetadata -> String)
-> ([PutSchemaVersionMetadata] -> ShowS)
-> Show PutSchemaVersionMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSchemaVersionMetadata] -> ShowS
$cshowList :: [PutSchemaVersionMetadata] -> ShowS
show :: PutSchemaVersionMetadata -> String
$cshow :: PutSchemaVersionMetadata -> String
showsPrec :: Int -> PutSchemaVersionMetadata -> ShowS
$cshowsPrec :: Int -> PutSchemaVersionMetadata -> ShowS
Prelude.Show, (forall x.
 PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x)
-> (forall x.
    Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata)
-> Generic PutSchemaVersionMetadata
forall x.
Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata
forall x.
PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata
$cfrom :: forall x.
PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x
Prelude.Generic)

-- |
-- Create a value of 'PutSchemaVersionMetadata' 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:
--
-- 'schemaVersionId', 'putSchemaVersionMetadata_schemaVersionId' - The unique version ID of the schema version.
--
-- 'schemaId', 'putSchemaVersionMetadata_schemaId' - The unique ID for the schema.
--
-- 'schemaVersionNumber', 'putSchemaVersionMetadata_schemaVersionNumber' - The version number of the schema.
--
-- 'metadataKeyValue', 'putSchemaVersionMetadata_metadataKeyValue' - The metadata key\'s corresponding value.
newPutSchemaVersionMetadata ::
  -- | 'metadataKeyValue'
  MetadataKeyValuePair ->
  PutSchemaVersionMetadata
newPutSchemaVersionMetadata :: MetadataKeyValuePair -> PutSchemaVersionMetadata
newPutSchemaVersionMetadata MetadataKeyValuePair
pMetadataKeyValue_ =
  PutSchemaVersionMetadata' :: Maybe Text
-> Maybe SchemaId
-> Maybe SchemaVersionNumber
-> MetadataKeyValuePair
-> PutSchemaVersionMetadata
PutSchemaVersionMetadata'
    { $sel:schemaVersionId:PutSchemaVersionMetadata' :: Maybe Text
schemaVersionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaId:PutSchemaVersionMetadata' :: Maybe SchemaId
schemaId = Maybe SchemaId
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaVersionNumber:PutSchemaVersionMetadata' :: Maybe SchemaVersionNumber
schemaVersionNumber = Maybe SchemaVersionNumber
forall a. Maybe a
Prelude.Nothing,
      $sel:metadataKeyValue:PutSchemaVersionMetadata' :: MetadataKeyValuePair
metadataKeyValue = MetadataKeyValuePair
pMetadataKeyValue_
    }

-- | The unique version ID of the schema version.
putSchemaVersionMetadata_schemaVersionId :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadata_schemaVersionId :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaVersionId = (PutSchemaVersionMetadata -> Maybe Text)
-> (PutSchemaVersionMetadata
    -> Maybe Text -> PutSchemaVersionMetadata)
-> Lens
     PutSchemaVersionMetadata
     PutSchemaVersionMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe Text
schemaVersionId :: Maybe Text
$sel:schemaVersionId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe Text
schemaVersionId} -> Maybe Text
schemaVersionId) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe Text
a -> PutSchemaVersionMetadata
s {$sel:schemaVersionId:PutSchemaVersionMetadata' :: Maybe Text
schemaVersionId = Maybe Text
a} :: PutSchemaVersionMetadata)

-- | The unique ID for the schema.
putSchemaVersionMetadata_schemaId :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe SchemaId)
putSchemaVersionMetadata_schemaId :: (Maybe SchemaId -> f (Maybe SchemaId))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaId = (PutSchemaVersionMetadata -> Maybe SchemaId)
-> (PutSchemaVersionMetadata
    -> Maybe SchemaId -> PutSchemaVersionMetadata)
-> Lens
     PutSchemaVersionMetadata
     PutSchemaVersionMetadata
     (Maybe SchemaId)
     (Maybe SchemaId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe SchemaId
schemaId :: Maybe SchemaId
$sel:schemaId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaId
schemaId} -> Maybe SchemaId
schemaId) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe SchemaId
a -> PutSchemaVersionMetadata
s {$sel:schemaId:PutSchemaVersionMetadata' :: Maybe SchemaId
schemaId = Maybe SchemaId
a} :: PutSchemaVersionMetadata)

-- | The version number of the schema.
putSchemaVersionMetadata_schemaVersionNumber :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe SchemaVersionNumber)
putSchemaVersionMetadata_schemaVersionNumber :: (Maybe SchemaVersionNumber -> f (Maybe SchemaVersionNumber))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaVersionNumber = (PutSchemaVersionMetadata -> Maybe SchemaVersionNumber)
-> (PutSchemaVersionMetadata
    -> Maybe SchemaVersionNumber -> PutSchemaVersionMetadata)
-> Lens
     PutSchemaVersionMetadata
     PutSchemaVersionMetadata
     (Maybe SchemaVersionNumber)
     (Maybe SchemaVersionNumber)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe SchemaVersionNumber
schemaVersionNumber :: Maybe SchemaVersionNumber
$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
schemaVersionNumber} -> Maybe SchemaVersionNumber
schemaVersionNumber) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe SchemaVersionNumber
a -> PutSchemaVersionMetadata
s {$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: Maybe SchemaVersionNumber
schemaVersionNumber = Maybe SchemaVersionNumber
a} :: PutSchemaVersionMetadata)

-- | The metadata key\'s corresponding value.
putSchemaVersionMetadata_metadataKeyValue :: Lens.Lens' PutSchemaVersionMetadata MetadataKeyValuePair
putSchemaVersionMetadata_metadataKeyValue :: (MetadataKeyValuePair -> f MetadataKeyValuePair)
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_metadataKeyValue = (PutSchemaVersionMetadata -> MetadataKeyValuePair)
-> (PutSchemaVersionMetadata
    -> MetadataKeyValuePair -> PutSchemaVersionMetadata)
-> Lens
     PutSchemaVersionMetadata
     PutSchemaVersionMetadata
     MetadataKeyValuePair
     MetadataKeyValuePair
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
$sel:metadataKeyValue:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> MetadataKeyValuePair
metadataKeyValue} -> MetadataKeyValuePair
metadataKeyValue) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} MetadataKeyValuePair
a -> PutSchemaVersionMetadata
s {$sel:metadataKeyValue:PutSchemaVersionMetadata' :: MetadataKeyValuePair
metadataKeyValue = MetadataKeyValuePair
a} :: PutSchemaVersionMetadata)

instance Core.AWSRequest PutSchemaVersionMetadata where
  type
    AWSResponse PutSchemaVersionMetadata =
      PutSchemaVersionMetadataResponse
  request :: PutSchemaVersionMetadata -> Request PutSchemaVersionMetadata
request = Service
-> PutSchemaVersionMetadata -> Request PutSchemaVersionMetadata
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutSchemaVersionMetadata
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutSchemaVersionMetadata)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse PutSchemaVersionMetadata))
-> Logger
-> Service
-> Proxy PutSchemaVersionMetadata
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutSchemaVersionMetadata)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Int
 -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Int
      -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RegistryName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Int
   -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Int
      -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SchemaName")
            Either
  String
  (Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Int
   -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Natural
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Int
      -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SchemaVersionId")
            Either
  String
  (Maybe Natural
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Int
   -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Int
      -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VersionNumber")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Int
   -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Int
      -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SchemaArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Int
   -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MetadataKey")
            Either
  String
  (Maybe Text
   -> Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MetadataValue")
            Either
  String (Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestVersion")
            Either String (Int -> PutSchemaVersionMetadataResponse)
-> Either String Int
-> Either String PutSchemaVersionMetadataResponse
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 PutSchemaVersionMetadata

instance Prelude.NFData PutSchemaVersionMetadata

instance Core.ToHeaders PutSchemaVersionMetadata where
  toHeaders :: PutSchemaVersionMetadata -> ResponseHeaders
toHeaders =
    ResponseHeaders -> PutSchemaVersionMetadata -> 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
"AWSGlue.PutSchemaVersionMetadata" ::
                          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 PutSchemaVersionMetadata where
  toJSON :: PutSchemaVersionMetadata -> Value
toJSON PutSchemaVersionMetadata' {Maybe Text
Maybe SchemaId
Maybe SchemaVersionNumber
MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
schemaVersionNumber :: Maybe SchemaVersionNumber
schemaId :: Maybe SchemaId
schemaVersionId :: Maybe Text
$sel:metadataKeyValue:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> MetadataKeyValuePair
$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
$sel:schemaId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaId
$sel:schemaVersionId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"SchemaVersionId" 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
schemaVersionId,
            (Text
"SchemaId" Text -> SchemaId -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SchemaId -> Pair) -> Maybe SchemaId -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaId
schemaId,
            (Text
"SchemaVersionNumber" Text -> SchemaVersionNumber -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SchemaVersionNumber -> Pair)
-> Maybe SchemaVersionNumber -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaVersionNumber
schemaVersionNumber,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"MetadataKeyValue" Text -> MetadataKeyValuePair -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MetadataKeyValuePair
metadataKeyValue)
          ]
      )

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

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

-- | /See:/ 'newPutSchemaVersionMetadataResponse' smart constructor.
data PutSchemaVersionMetadataResponse = PutSchemaVersionMetadataResponse'
  { -- | The name for the registry.
    PutSchemaVersionMetadataResponse -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
    -- | The name for the schema.
    PutSchemaVersionMetadataResponse -> Maybe Text
schemaName :: Prelude.Maybe Prelude.Text,
    -- | The unique version ID of the schema version.
    PutSchemaVersionMetadataResponse -> Maybe Text
schemaVersionId :: Prelude.Maybe Prelude.Text,
    -- | The version number of the schema.
    PutSchemaVersionMetadataResponse -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) for the schema.
    PutSchemaVersionMetadataResponse -> Maybe Text
schemaArn :: Prelude.Maybe Prelude.Text,
    -- | The metadata key.
    PutSchemaVersionMetadataResponse -> Maybe Text
metadataKey :: Prelude.Maybe Prelude.Text,
    -- | The value of the metadata key.
    PutSchemaVersionMetadataResponse -> Maybe Text
metadataValue :: Prelude.Maybe Prelude.Text,
    -- | The latest version of the schema.
    PutSchemaVersionMetadataResponse -> Maybe Bool
latestVersion :: Prelude.Maybe Prelude.Bool,
    -- | The response's http status code.
    PutSchemaVersionMetadataResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
(PutSchemaVersionMetadataResponse
 -> PutSchemaVersionMetadataResponse -> Bool)
-> (PutSchemaVersionMetadataResponse
    -> PutSchemaVersionMetadataResponse -> Bool)
-> Eq PutSchemaVersionMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
$c/= :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
== :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
$c== :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
Prelude.Eq, ReadPrec [PutSchemaVersionMetadataResponse]
ReadPrec PutSchemaVersionMetadataResponse
Int -> ReadS PutSchemaVersionMetadataResponse
ReadS [PutSchemaVersionMetadataResponse]
(Int -> ReadS PutSchemaVersionMetadataResponse)
-> ReadS [PutSchemaVersionMetadataResponse]
-> ReadPrec PutSchemaVersionMetadataResponse
-> ReadPrec [PutSchemaVersionMetadataResponse]
-> Read PutSchemaVersionMetadataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutSchemaVersionMetadataResponse]
$creadListPrec :: ReadPrec [PutSchemaVersionMetadataResponse]
readPrec :: ReadPrec PutSchemaVersionMetadataResponse
$creadPrec :: ReadPrec PutSchemaVersionMetadataResponse
readList :: ReadS [PutSchemaVersionMetadataResponse]
$creadList :: ReadS [PutSchemaVersionMetadataResponse]
readsPrec :: Int -> ReadS PutSchemaVersionMetadataResponse
$creadsPrec :: Int -> ReadS PutSchemaVersionMetadataResponse
Prelude.Read, Int -> PutSchemaVersionMetadataResponse -> ShowS
[PutSchemaVersionMetadataResponse] -> ShowS
PutSchemaVersionMetadataResponse -> String
(Int -> PutSchemaVersionMetadataResponse -> ShowS)
-> (PutSchemaVersionMetadataResponse -> String)
-> ([PutSchemaVersionMetadataResponse] -> ShowS)
-> Show PutSchemaVersionMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSchemaVersionMetadataResponse] -> ShowS
$cshowList :: [PutSchemaVersionMetadataResponse] -> ShowS
show :: PutSchemaVersionMetadataResponse -> String
$cshow :: PutSchemaVersionMetadataResponse -> String
showsPrec :: Int -> PutSchemaVersionMetadataResponse -> ShowS
$cshowsPrec :: Int -> PutSchemaVersionMetadataResponse -> ShowS
Prelude.Show, (forall x.
 PutSchemaVersionMetadataResponse
 -> Rep PutSchemaVersionMetadataResponse x)
-> (forall x.
    Rep PutSchemaVersionMetadataResponse x
    -> PutSchemaVersionMetadataResponse)
-> Generic PutSchemaVersionMetadataResponse
forall x.
Rep PutSchemaVersionMetadataResponse x
-> PutSchemaVersionMetadataResponse
forall x.
PutSchemaVersionMetadataResponse
-> Rep PutSchemaVersionMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutSchemaVersionMetadataResponse x
-> PutSchemaVersionMetadataResponse
$cfrom :: forall x.
PutSchemaVersionMetadataResponse
-> Rep PutSchemaVersionMetadataResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutSchemaVersionMetadataResponse' 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:
--
-- 'registryName', 'putSchemaVersionMetadataResponse_registryName' - The name for the registry.
--
-- 'schemaName', 'putSchemaVersionMetadataResponse_schemaName' - The name for the schema.
--
-- 'schemaVersionId', 'putSchemaVersionMetadataResponse_schemaVersionId' - The unique version ID of the schema version.
--
-- 'versionNumber', 'putSchemaVersionMetadataResponse_versionNumber' - The version number of the schema.
--
-- 'schemaArn', 'putSchemaVersionMetadataResponse_schemaArn' - The Amazon Resource Name (ARN) for the schema.
--
-- 'metadataKey', 'putSchemaVersionMetadataResponse_metadataKey' - The metadata key.
--
-- 'metadataValue', 'putSchemaVersionMetadataResponse_metadataValue' - The value of the metadata key.
--
-- 'latestVersion', 'putSchemaVersionMetadataResponse_latestVersion' - The latest version of the schema.
--
-- 'httpStatus', 'putSchemaVersionMetadataResponse_httpStatus' - The response's http status code.
newPutSchemaVersionMetadataResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutSchemaVersionMetadataResponse
newPutSchemaVersionMetadataResponse :: Int -> PutSchemaVersionMetadataResponse
newPutSchemaVersionMetadataResponse Int
pHttpStatus_ =
  PutSchemaVersionMetadataResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse'
    { $sel:registryName:PutSchemaVersionMetadataResponse' :: Maybe Text
registryName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaName:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaVersionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:versionNumber:PutSchemaVersionMetadataResponse' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaArn:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:metadataKey:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:metadataValue:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataValue = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:latestVersion:PutSchemaVersionMetadataResponse' :: Maybe Bool
latestVersion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:PutSchemaVersionMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The name for the registry.
putSchemaVersionMetadataResponse_registryName :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_registryName :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_registryName = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
registryName :: Maybe Text
$sel:registryName:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
registryName} -> Maybe Text
registryName) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:registryName:PutSchemaVersionMetadataResponse' :: Maybe Text
registryName = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The name for the schema.
putSchemaVersionMetadataResponse_schemaName :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaName :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaName = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaName :: Maybe Text
$sel:schemaName:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaName} -> Maybe Text
schemaName) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaName:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaName = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The unique version ID of the schema version.
putSchemaVersionMetadataResponse_schemaVersionId :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaVersionId :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaVersionId = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaVersionId :: Maybe Text
$sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaVersionId} -> Maybe Text
schemaVersionId) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaVersionId = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The version number of the schema.
putSchemaVersionMetadataResponse_versionNumber :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Natural)
putSchemaVersionMetadataResponse_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_versionNumber = (PutSchemaVersionMetadataResponse -> Maybe Natural)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Natural -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Natural
a -> PutSchemaVersionMetadataResponse
s {$sel:versionNumber:PutSchemaVersionMetadataResponse' :: Maybe Natural
versionNumber = Maybe Natural
a} :: PutSchemaVersionMetadataResponse)

-- | The Amazon Resource Name (ARN) for the schema.
putSchemaVersionMetadataResponse_schemaArn :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaArn :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaArn = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaArn :: Maybe Text
$sel:schemaArn:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaArn} -> Maybe Text
schemaArn) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaArn:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaArn = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The metadata key.
putSchemaVersionMetadataResponse_metadataKey :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_metadataKey :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_metadataKey = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
metadataKey :: Maybe Text
$sel:metadataKey:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
metadataKey} -> Maybe Text
metadataKey) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:metadataKey:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataKey = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The value of the metadata key.
putSchemaVersionMetadataResponse_metadataValue :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_metadataValue :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_metadataValue = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
metadataValue :: Maybe Text
$sel:metadataValue:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
metadataValue} -> Maybe Text
metadataValue) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:metadataValue:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataValue = Maybe Text
a} :: PutSchemaVersionMetadataResponse)

-- | The latest version of the schema.
putSchemaVersionMetadataResponse_latestVersion :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Bool)
putSchemaVersionMetadataResponse_latestVersion :: (Maybe Bool -> f (Maybe Bool))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_latestVersion = (PutSchemaVersionMetadataResponse -> Maybe Bool)
-> (PutSchemaVersionMetadataResponse
    -> Maybe Bool -> PutSchemaVersionMetadataResponse)
-> Lens
     PutSchemaVersionMetadataResponse
     PutSchemaVersionMetadataResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Bool
latestVersion :: Maybe Bool
$sel:latestVersion:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Bool
latestVersion} -> Maybe Bool
latestVersion) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Bool
a -> PutSchemaVersionMetadataResponse
s {$sel:latestVersion:PutSchemaVersionMetadataResponse' :: Maybe Bool
latestVersion = Maybe Bool
a} :: PutSchemaVersionMetadataResponse)

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

instance
  Prelude.NFData
    PutSchemaVersionMetadataResponse