{-# 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.DataExchange.Types.ImportAssetFromApiGatewayApiResponseDetails
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DataExchange.Types.ImportAssetFromApiGatewayApiResponseDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DataExchange.Types.ProtocolType
import qualified Amazonka.Prelude as Prelude

-- | The response details.
--
-- /See:/ 'newImportAssetFromApiGatewayApiResponseDetails' smart constructor.
data ImportAssetFromApiGatewayApiResponseDetails = ImportAssetFromApiGatewayApiResponseDetails'
  { -- | The API description.
    ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
apiDescription :: Prelude.Maybe Prelude.Text,
    -- | The API key.
    ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
apiKey :: Prelude.Maybe Prelude.Text,
    -- | The API ID.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
apiId :: Prelude.Text,
    -- | The API name.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
apiName :: Prelude.Text,
    -- | The Base64-encoded Md5 hash for the API asset, used to ensure the
    -- integrity of the API at that location.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
apiSpecificationMd5Hash :: Prelude.Text,
    -- | The upload URL of the API specification.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
apiSpecificationUploadUrl :: Prelude.Text,
    -- | The date and time that the upload URL expires, in ISO 8601 format.
    ImportAssetFromApiGatewayApiResponseDetails -> ISO8601
apiSpecificationUploadUrlExpiresAt :: Data.ISO8601,
    -- | The data set ID.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
dataSetId :: Prelude.Text,
    -- | The protocol type.
    ImportAssetFromApiGatewayApiResponseDetails -> ProtocolType
protocolType :: ProtocolType,
    -- | The revision ID.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
revisionId :: Prelude.Text,
    -- | The API stage.
    ImportAssetFromApiGatewayApiResponseDetails -> Text
stage :: Prelude.Text
  }
  deriving (ImportAssetFromApiGatewayApiResponseDetails
-> ImportAssetFromApiGatewayApiResponseDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportAssetFromApiGatewayApiResponseDetails
-> ImportAssetFromApiGatewayApiResponseDetails -> Bool
$c/= :: ImportAssetFromApiGatewayApiResponseDetails
-> ImportAssetFromApiGatewayApiResponseDetails -> Bool
== :: ImportAssetFromApiGatewayApiResponseDetails
-> ImportAssetFromApiGatewayApiResponseDetails -> Bool
$c== :: ImportAssetFromApiGatewayApiResponseDetails
-> ImportAssetFromApiGatewayApiResponseDetails -> Bool
Prelude.Eq, ReadPrec [ImportAssetFromApiGatewayApiResponseDetails]
ReadPrec ImportAssetFromApiGatewayApiResponseDetails
Int -> ReadS ImportAssetFromApiGatewayApiResponseDetails
ReadS [ImportAssetFromApiGatewayApiResponseDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportAssetFromApiGatewayApiResponseDetails]
$creadListPrec :: ReadPrec [ImportAssetFromApiGatewayApiResponseDetails]
readPrec :: ReadPrec ImportAssetFromApiGatewayApiResponseDetails
$creadPrec :: ReadPrec ImportAssetFromApiGatewayApiResponseDetails
readList :: ReadS [ImportAssetFromApiGatewayApiResponseDetails]
$creadList :: ReadS [ImportAssetFromApiGatewayApiResponseDetails]
readsPrec :: Int -> ReadS ImportAssetFromApiGatewayApiResponseDetails
$creadsPrec :: Int -> ReadS ImportAssetFromApiGatewayApiResponseDetails
Prelude.Read, Int -> ImportAssetFromApiGatewayApiResponseDetails -> ShowS
[ImportAssetFromApiGatewayApiResponseDetails] -> ShowS
ImportAssetFromApiGatewayApiResponseDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportAssetFromApiGatewayApiResponseDetails] -> ShowS
$cshowList :: [ImportAssetFromApiGatewayApiResponseDetails] -> ShowS
show :: ImportAssetFromApiGatewayApiResponseDetails -> String
$cshow :: ImportAssetFromApiGatewayApiResponseDetails -> String
showsPrec :: Int -> ImportAssetFromApiGatewayApiResponseDetails -> ShowS
$cshowsPrec :: Int -> ImportAssetFromApiGatewayApiResponseDetails -> ShowS
Prelude.Show, forall x.
Rep ImportAssetFromApiGatewayApiResponseDetails x
-> ImportAssetFromApiGatewayApiResponseDetails
forall x.
ImportAssetFromApiGatewayApiResponseDetails
-> Rep ImportAssetFromApiGatewayApiResponseDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportAssetFromApiGatewayApiResponseDetails x
-> ImportAssetFromApiGatewayApiResponseDetails
$cfrom :: forall x.
ImportAssetFromApiGatewayApiResponseDetails
-> Rep ImportAssetFromApiGatewayApiResponseDetails x
Prelude.Generic)

-- |
-- Create a value of 'ImportAssetFromApiGatewayApiResponseDetails' 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:
--
-- 'apiDescription', 'importAssetFromApiGatewayApiResponseDetails_apiDescription' - The API description.
--
-- 'apiKey', 'importAssetFromApiGatewayApiResponseDetails_apiKey' - The API key.
--
-- 'apiId', 'importAssetFromApiGatewayApiResponseDetails_apiId' - The API ID.
--
-- 'apiName', 'importAssetFromApiGatewayApiResponseDetails_apiName' - The API name.
--
-- 'apiSpecificationMd5Hash', 'importAssetFromApiGatewayApiResponseDetails_apiSpecificationMd5Hash' - The Base64-encoded Md5 hash for the API asset, used to ensure the
-- integrity of the API at that location.
--
-- 'apiSpecificationUploadUrl', 'importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrl' - The upload URL of the API specification.
--
-- 'apiSpecificationUploadUrlExpiresAt', 'importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrlExpiresAt' - The date and time that the upload URL expires, in ISO 8601 format.
--
-- 'dataSetId', 'importAssetFromApiGatewayApiResponseDetails_dataSetId' - The data set ID.
--
-- 'protocolType', 'importAssetFromApiGatewayApiResponseDetails_protocolType' - The protocol type.
--
-- 'revisionId', 'importAssetFromApiGatewayApiResponseDetails_revisionId' - The revision ID.
--
-- 'stage', 'importAssetFromApiGatewayApiResponseDetails_stage' - The API stage.
newImportAssetFromApiGatewayApiResponseDetails ::
  -- | 'apiId'
  Prelude.Text ->
  -- | 'apiName'
  Prelude.Text ->
  -- | 'apiSpecificationMd5Hash'
  Prelude.Text ->
  -- | 'apiSpecificationUploadUrl'
  Prelude.Text ->
  -- | 'apiSpecificationUploadUrlExpiresAt'
  Prelude.UTCTime ->
  -- | 'dataSetId'
  Prelude.Text ->
  -- | 'protocolType'
  ProtocolType ->
  -- | 'revisionId'
  Prelude.Text ->
  -- | 'stage'
  Prelude.Text ->
  ImportAssetFromApiGatewayApiResponseDetails
newImportAssetFromApiGatewayApiResponseDetails :: Text
-> Text
-> Text
-> Text
-> UTCTime
-> Text
-> ProtocolType
-> Text
-> Text
-> ImportAssetFromApiGatewayApiResponseDetails
newImportAssetFromApiGatewayApiResponseDetails
  Text
pApiId_
  Text
pApiName_
  Text
pApiSpecificationMd5Hash_
  Text
pApiSpecificationUploadUrl_
  UTCTime
pApiSpecificationUploadUrlExpiresAt_
  Text
pDataSetId_
  ProtocolType
pProtocolType_
  Text
pRevisionId_
  Text
pStage_ =
    ImportAssetFromApiGatewayApiResponseDetails'
      { $sel:apiDescription:ImportAssetFromApiGatewayApiResponseDetails' :: Maybe Text
apiDescription =
          forall a. Maybe a
Prelude.Nothing,
        $sel:apiKey:ImportAssetFromApiGatewayApiResponseDetails' :: Maybe Text
apiKey = forall a. Maybe a
Prelude.Nothing,
        $sel:apiId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiId = Text
pApiId_,
        $sel:apiName:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiName = Text
pApiName_,
        $sel:apiSpecificationMd5Hash:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiSpecificationMd5Hash =
          Text
pApiSpecificationMd5Hash_,
        $sel:apiSpecificationUploadUrl:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiSpecificationUploadUrl =
          Text
pApiSpecificationUploadUrl_,
        $sel:apiSpecificationUploadUrlExpiresAt:ImportAssetFromApiGatewayApiResponseDetails' :: ISO8601
apiSpecificationUploadUrlExpiresAt =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
            forall t b. AReview t b -> b -> t
Lens.# UTCTime
pApiSpecificationUploadUrlExpiresAt_,
        $sel:dataSetId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
dataSetId = Text
pDataSetId_,
        $sel:protocolType:ImportAssetFromApiGatewayApiResponseDetails' :: ProtocolType
protocolType = ProtocolType
pProtocolType_,
        $sel:revisionId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
revisionId = Text
pRevisionId_,
        $sel:stage:ImportAssetFromApiGatewayApiResponseDetails' :: Text
stage = Text
pStage_
      }

-- | The API description.
importAssetFromApiGatewayApiResponseDetails_apiDescription :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails (Prelude.Maybe Prelude.Text)
importAssetFromApiGatewayApiResponseDetails_apiDescription :: Lens' ImportAssetFromApiGatewayApiResponseDetails (Maybe Text)
importAssetFromApiGatewayApiResponseDetails_apiDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Maybe Text
apiDescription :: Maybe Text
$sel:apiDescription:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
apiDescription} -> Maybe Text
apiDescription) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Maybe Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiDescription:ImportAssetFromApiGatewayApiResponseDetails' :: Maybe Text
apiDescription = Maybe Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The API key.
importAssetFromApiGatewayApiResponseDetails_apiKey :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails (Prelude.Maybe Prelude.Text)
importAssetFromApiGatewayApiResponseDetails_apiKey :: Lens' ImportAssetFromApiGatewayApiResponseDetails (Maybe Text)
importAssetFromApiGatewayApiResponseDetails_apiKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Maybe Text
apiKey :: Maybe Text
$sel:apiKey:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
apiKey} -> Maybe Text
apiKey) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Maybe Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiKey:ImportAssetFromApiGatewayApiResponseDetails' :: Maybe Text
apiKey = Maybe Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The API ID.
importAssetFromApiGatewayApiResponseDetails_apiId :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_apiId :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_apiId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
apiId :: Text
$sel:apiId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
apiId} -> Text
apiId) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiId = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The API name.
importAssetFromApiGatewayApiResponseDetails_apiName :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_apiName :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_apiName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
apiName :: Text
$sel:apiName:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
apiName} -> Text
apiName) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiName:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiName = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The Base64-encoded Md5 hash for the API asset, used to ensure the
-- integrity of the API at that location.
importAssetFromApiGatewayApiResponseDetails_apiSpecificationMd5Hash :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_apiSpecificationMd5Hash :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_apiSpecificationMd5Hash = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
apiSpecificationMd5Hash :: Text
$sel:apiSpecificationMd5Hash:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
apiSpecificationMd5Hash} -> Text
apiSpecificationMd5Hash) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiSpecificationMd5Hash:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiSpecificationMd5Hash = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The upload URL of the API specification.
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrl :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrl :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
apiSpecificationUploadUrl :: Text
$sel:apiSpecificationUploadUrl:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
apiSpecificationUploadUrl} -> Text
apiSpecificationUploadUrl) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiSpecificationUploadUrl:ImportAssetFromApiGatewayApiResponseDetails' :: Text
apiSpecificationUploadUrl = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The date and time that the upload URL expires, in ISO 8601 format.
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrlExpiresAt :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.UTCTime
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrlExpiresAt :: Lens' ImportAssetFromApiGatewayApiResponseDetails UTCTime
importAssetFromApiGatewayApiResponseDetails_apiSpecificationUploadUrlExpiresAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {ISO8601
apiSpecificationUploadUrlExpiresAt :: ISO8601
$sel:apiSpecificationUploadUrlExpiresAt:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ISO8601
apiSpecificationUploadUrlExpiresAt} -> ISO8601
apiSpecificationUploadUrlExpiresAt) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} ISO8601
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:apiSpecificationUploadUrlExpiresAt:ImportAssetFromApiGatewayApiResponseDetails' :: ISO8601
apiSpecificationUploadUrlExpiresAt = ISO8601
a} :: ImportAssetFromApiGatewayApiResponseDetails) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The data set ID.
importAssetFromApiGatewayApiResponseDetails_dataSetId :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_dataSetId :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_dataSetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
dataSetId :: Text
$sel:dataSetId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
dataSetId} -> Text
dataSetId) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:dataSetId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
dataSetId = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The protocol type.
importAssetFromApiGatewayApiResponseDetails_protocolType :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails ProtocolType
importAssetFromApiGatewayApiResponseDetails_protocolType :: Lens' ImportAssetFromApiGatewayApiResponseDetails ProtocolType
importAssetFromApiGatewayApiResponseDetails_protocolType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {ProtocolType
protocolType :: ProtocolType
$sel:protocolType:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ProtocolType
protocolType} -> ProtocolType
protocolType) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} ProtocolType
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:protocolType:ImportAssetFromApiGatewayApiResponseDetails' :: ProtocolType
protocolType = ProtocolType
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The revision ID.
importAssetFromApiGatewayApiResponseDetails_revisionId :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_revisionId :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_revisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
revisionId :: Text
$sel:revisionId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
revisionId} -> Text
revisionId) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:revisionId:ImportAssetFromApiGatewayApiResponseDetails' :: Text
revisionId = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

-- | The API stage.
importAssetFromApiGatewayApiResponseDetails_stage :: Lens.Lens' ImportAssetFromApiGatewayApiResponseDetails Prelude.Text
importAssetFromApiGatewayApiResponseDetails_stage :: Lens' ImportAssetFromApiGatewayApiResponseDetails Text
importAssetFromApiGatewayApiResponseDetails_stage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromApiGatewayApiResponseDetails' {Text
stage :: Text
$sel:stage:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
stage} -> Text
stage) (\s :: ImportAssetFromApiGatewayApiResponseDetails
s@ImportAssetFromApiGatewayApiResponseDetails' {} Text
a -> ImportAssetFromApiGatewayApiResponseDetails
s {$sel:stage:ImportAssetFromApiGatewayApiResponseDetails' :: Text
stage = Text
a} :: ImportAssetFromApiGatewayApiResponseDetails)

instance
  Data.FromJSON
    ImportAssetFromApiGatewayApiResponseDetails
  where
  parseJSON :: Value -> Parser ImportAssetFromApiGatewayApiResponseDetails
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ImportAssetFromApiGatewayApiResponseDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> Text
-> ISO8601
-> Text
-> ProtocolType
-> Text
-> Text
-> ImportAssetFromApiGatewayApiResponseDetails
ImportAssetFromApiGatewayApiResponseDetails'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ApiDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ApiKey")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ApiId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ApiName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ApiSpecificationMd5Hash")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ApiSpecificationUploadUrl")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ApiSpecificationUploadUrlExpiresAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"DataSetId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ProtocolType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RevisionId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Stage")
      )

instance
  Prelude.Hashable
    ImportAssetFromApiGatewayApiResponseDetails
  where
  hashWithSalt :: Int -> ImportAssetFromApiGatewayApiResponseDetails -> Int
hashWithSalt
    Int
_salt
    ImportAssetFromApiGatewayApiResponseDetails' {Maybe Text
Text
ISO8601
ProtocolType
stage :: Text
revisionId :: Text
protocolType :: ProtocolType
dataSetId :: Text
apiSpecificationUploadUrlExpiresAt :: ISO8601
apiSpecificationUploadUrl :: Text
apiSpecificationMd5Hash :: Text
apiName :: Text
apiId :: Text
apiKey :: Maybe Text
apiDescription :: Maybe Text
$sel:stage:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:revisionId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:protocolType:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ProtocolType
$sel:dataSetId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiSpecificationUploadUrlExpiresAt:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ISO8601
$sel:apiSpecificationUploadUrl:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiSpecificationMd5Hash:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiName:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiKey:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
$sel:apiDescription:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
apiDescription
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
apiKey
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiSpecificationMd5Hash
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiSpecificationUploadUrl
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
apiSpecificationUploadUrlExpiresAt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataSetId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ProtocolType
protocolType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
revisionId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
stage

instance
  Prelude.NFData
    ImportAssetFromApiGatewayApiResponseDetails
  where
  rnf :: ImportAssetFromApiGatewayApiResponseDetails -> ()
rnf ImportAssetFromApiGatewayApiResponseDetails' {Maybe Text
Text
ISO8601
ProtocolType
stage :: Text
revisionId :: Text
protocolType :: ProtocolType
dataSetId :: Text
apiSpecificationUploadUrlExpiresAt :: ISO8601
apiSpecificationUploadUrl :: Text
apiSpecificationMd5Hash :: Text
apiName :: Text
apiId :: Text
apiKey :: Maybe Text
apiDescription :: Maybe Text
$sel:stage:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:revisionId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:protocolType:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ProtocolType
$sel:dataSetId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiSpecificationUploadUrlExpiresAt:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> ISO8601
$sel:apiSpecificationUploadUrl:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiSpecificationMd5Hash:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiName:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiId:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Text
$sel:apiKey:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
$sel:apiDescription:ImportAssetFromApiGatewayApiResponseDetails' :: ImportAssetFromApiGatewayApiResponseDetails -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
apiDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
apiKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiSpecificationMd5Hash
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiSpecificationUploadUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
apiSpecificationUploadUrlExpiresAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataSetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ProtocolType
protocolType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
revisionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
stage