{-# 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 #-}
module Amazonka.Transcribe.UpdateVocabulary
(
UpdateVocabulary (..),
newUpdateVocabulary,
updateVocabulary_vocabularyFileUri,
updateVocabulary_phrases,
updateVocabulary_vocabularyName,
updateVocabulary_languageCode,
UpdateVocabularyResponse (..),
newUpdateVocabularyResponse,
updateVocabularyResponse_languageCode,
updateVocabularyResponse_vocabularyName,
updateVocabularyResponse_lastModifiedTime,
updateVocabularyResponse_vocabularyState,
updateVocabularyResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Transcribe.Types
data UpdateVocabulary = UpdateVocabulary'
{
UpdateVocabulary -> Maybe Text
vocabularyFileUri :: Prelude.Maybe Prelude.Text,
UpdateVocabulary -> Maybe [Text]
phrases :: Prelude.Maybe [Prelude.Text],
UpdateVocabulary -> Text
vocabularyName :: Prelude.Text,
UpdateVocabulary -> LanguageCode
languageCode :: LanguageCode
}
deriving (UpdateVocabulary -> UpdateVocabulary -> Bool
(UpdateVocabulary -> UpdateVocabulary -> Bool)
-> (UpdateVocabulary -> UpdateVocabulary -> Bool)
-> Eq UpdateVocabulary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVocabulary -> UpdateVocabulary -> Bool
$c/= :: UpdateVocabulary -> UpdateVocabulary -> Bool
== :: UpdateVocabulary -> UpdateVocabulary -> Bool
$c== :: UpdateVocabulary -> UpdateVocabulary -> Bool
Prelude.Eq, ReadPrec [UpdateVocabulary]
ReadPrec UpdateVocabulary
Int -> ReadS UpdateVocabulary
ReadS [UpdateVocabulary]
(Int -> ReadS UpdateVocabulary)
-> ReadS [UpdateVocabulary]
-> ReadPrec UpdateVocabulary
-> ReadPrec [UpdateVocabulary]
-> Read UpdateVocabulary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVocabulary]
$creadListPrec :: ReadPrec [UpdateVocabulary]
readPrec :: ReadPrec UpdateVocabulary
$creadPrec :: ReadPrec UpdateVocabulary
readList :: ReadS [UpdateVocabulary]
$creadList :: ReadS [UpdateVocabulary]
readsPrec :: Int -> ReadS UpdateVocabulary
$creadsPrec :: Int -> ReadS UpdateVocabulary
Prelude.Read, Int -> UpdateVocabulary -> ShowS
[UpdateVocabulary] -> ShowS
UpdateVocabulary -> String
(Int -> UpdateVocabulary -> ShowS)
-> (UpdateVocabulary -> String)
-> ([UpdateVocabulary] -> ShowS)
-> Show UpdateVocabulary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVocabulary] -> ShowS
$cshowList :: [UpdateVocabulary] -> ShowS
show :: UpdateVocabulary -> String
$cshow :: UpdateVocabulary -> String
showsPrec :: Int -> UpdateVocabulary -> ShowS
$cshowsPrec :: Int -> UpdateVocabulary -> ShowS
Prelude.Show, (forall x. UpdateVocabulary -> Rep UpdateVocabulary x)
-> (forall x. Rep UpdateVocabulary x -> UpdateVocabulary)
-> Generic UpdateVocabulary
forall x. Rep UpdateVocabulary x -> UpdateVocabulary
forall x. UpdateVocabulary -> Rep UpdateVocabulary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVocabulary x -> UpdateVocabulary
$cfrom :: forall x. UpdateVocabulary -> Rep UpdateVocabulary x
Prelude.Generic)
newUpdateVocabulary ::
Prelude.Text ->
LanguageCode ->
UpdateVocabulary
newUpdateVocabulary :: Text -> LanguageCode -> UpdateVocabulary
newUpdateVocabulary Text
pVocabularyName_ LanguageCode
pLanguageCode_ =
UpdateVocabulary' :: Maybe Text
-> Maybe [Text] -> Text -> LanguageCode -> UpdateVocabulary
UpdateVocabulary'
{ $sel:vocabularyFileUri:UpdateVocabulary' :: Maybe Text
vocabularyFileUri =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:phrases:UpdateVocabulary' :: Maybe [Text]
phrases = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyName:UpdateVocabulary' :: Text
vocabularyName = Text
pVocabularyName_,
$sel:languageCode:UpdateVocabulary' :: LanguageCode
languageCode = LanguageCode
pLanguageCode_
}
updateVocabulary_vocabularyFileUri :: Lens.Lens' UpdateVocabulary (Prelude.Maybe Prelude.Text)
updateVocabulary_vocabularyFileUri :: (Maybe Text -> f (Maybe Text))
-> UpdateVocabulary -> f UpdateVocabulary
updateVocabulary_vocabularyFileUri = (UpdateVocabulary -> Maybe Text)
-> (UpdateVocabulary -> Maybe Text -> UpdateVocabulary)
-> Lens UpdateVocabulary UpdateVocabulary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabulary' {Maybe Text
vocabularyFileUri :: Maybe Text
$sel:vocabularyFileUri:UpdateVocabulary' :: UpdateVocabulary -> Maybe Text
vocabularyFileUri} -> Maybe Text
vocabularyFileUri) (\s :: UpdateVocabulary
s@UpdateVocabulary' {} Maybe Text
a -> UpdateVocabulary
s {$sel:vocabularyFileUri:UpdateVocabulary' :: Maybe Text
vocabularyFileUri = Maybe Text
a} :: UpdateVocabulary)
updateVocabulary_phrases :: Lens.Lens' UpdateVocabulary (Prelude.Maybe [Prelude.Text])
updateVocabulary_phrases :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateVocabulary -> f UpdateVocabulary
updateVocabulary_phrases = (UpdateVocabulary -> Maybe [Text])
-> (UpdateVocabulary -> Maybe [Text] -> UpdateVocabulary)
-> Lens
UpdateVocabulary UpdateVocabulary (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabulary' {Maybe [Text]
phrases :: Maybe [Text]
$sel:phrases:UpdateVocabulary' :: UpdateVocabulary -> Maybe [Text]
phrases} -> Maybe [Text]
phrases) (\s :: UpdateVocabulary
s@UpdateVocabulary' {} Maybe [Text]
a -> UpdateVocabulary
s {$sel:phrases:UpdateVocabulary' :: Maybe [Text]
phrases = Maybe [Text]
a} :: UpdateVocabulary) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateVocabulary -> f UpdateVocabulary)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateVocabulary
-> f UpdateVocabulary
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
updateVocabulary_vocabularyName :: Lens.Lens' UpdateVocabulary Prelude.Text
updateVocabulary_vocabularyName :: (Text -> f Text) -> UpdateVocabulary -> f UpdateVocabulary
updateVocabulary_vocabularyName = (UpdateVocabulary -> Text)
-> (UpdateVocabulary -> Text -> UpdateVocabulary)
-> Lens UpdateVocabulary UpdateVocabulary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabulary' {Text
vocabularyName :: Text
$sel:vocabularyName:UpdateVocabulary' :: UpdateVocabulary -> Text
vocabularyName} -> Text
vocabularyName) (\s :: UpdateVocabulary
s@UpdateVocabulary' {} Text
a -> UpdateVocabulary
s {$sel:vocabularyName:UpdateVocabulary' :: Text
vocabularyName = Text
a} :: UpdateVocabulary)
updateVocabulary_languageCode :: Lens.Lens' UpdateVocabulary LanguageCode
updateVocabulary_languageCode :: (LanguageCode -> f LanguageCode)
-> UpdateVocabulary -> f UpdateVocabulary
updateVocabulary_languageCode = (UpdateVocabulary -> LanguageCode)
-> (UpdateVocabulary -> LanguageCode -> UpdateVocabulary)
-> Lens UpdateVocabulary UpdateVocabulary LanguageCode LanguageCode
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabulary' {LanguageCode
languageCode :: LanguageCode
$sel:languageCode:UpdateVocabulary' :: UpdateVocabulary -> LanguageCode
languageCode} -> LanguageCode
languageCode) (\s :: UpdateVocabulary
s@UpdateVocabulary' {} LanguageCode
a -> UpdateVocabulary
s {$sel:languageCode:UpdateVocabulary' :: LanguageCode
languageCode = LanguageCode
a} :: UpdateVocabulary)
instance Core.AWSRequest UpdateVocabulary where
type
AWSResponse UpdateVocabulary =
UpdateVocabularyResponse
request :: UpdateVocabulary -> Request UpdateVocabulary
request = Service -> UpdateVocabulary -> Request UpdateVocabulary
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateVocabulary
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateVocabulary)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateVocabulary))
-> Logger
-> Service
-> Proxy UpdateVocabulary
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateVocabulary)))
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 LanguageCode
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> UpdateVocabularyResponse
UpdateVocabularyResponse'
(Maybe LanguageCode
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> UpdateVocabularyResponse)
-> Either String (Maybe LanguageCode)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> UpdateVocabularyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LanguageCode")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> UpdateVocabularyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe VocabularyState -> Int -> UpdateVocabularyResponse)
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
"VocabularyName")
Either
String
(Maybe POSIX
-> Maybe VocabularyState -> Int -> UpdateVocabularyResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe VocabularyState -> Int -> UpdateVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
Either
String (Maybe VocabularyState -> Int -> UpdateVocabularyResponse)
-> Either String (Maybe VocabularyState)
-> Either String (Int -> UpdateVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe VocabularyState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VocabularyState")
Either String (Int -> UpdateVocabularyResponse)
-> Either String Int -> Either String UpdateVocabularyResponse
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 UpdateVocabulary
instance Prelude.NFData UpdateVocabulary
instance Core.ToHeaders UpdateVocabulary where
toHeaders :: UpdateVocabulary -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateVocabulary -> 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
"Transcribe.UpdateVocabulary" ::
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 UpdateVocabulary where
toJSON :: UpdateVocabulary -> Value
toJSON UpdateVocabulary' {Maybe [Text]
Maybe Text
Text
LanguageCode
languageCode :: LanguageCode
vocabularyName :: Text
phrases :: Maybe [Text]
vocabularyFileUri :: Maybe Text
$sel:languageCode:UpdateVocabulary' :: UpdateVocabulary -> LanguageCode
$sel:vocabularyName:UpdateVocabulary' :: UpdateVocabulary -> Text
$sel:phrases:UpdateVocabulary' :: UpdateVocabulary -> Maybe [Text]
$sel:vocabularyFileUri:UpdateVocabulary' :: UpdateVocabulary -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"VocabularyFileUri" 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
vocabularyFileUri,
(Text
"Phrases" 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]
phrases,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"VocabularyName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
vocabularyName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LanguageCode" Text -> LanguageCode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= LanguageCode
languageCode)
]
)
instance Core.ToPath UpdateVocabulary where
toPath :: UpdateVocabulary -> ByteString
toPath = ByteString -> UpdateVocabulary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateVocabulary where
toQuery :: UpdateVocabulary -> QueryString
toQuery = QueryString -> UpdateVocabulary -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateVocabularyResponse = UpdateVocabularyResponse'
{
UpdateVocabularyResponse -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
UpdateVocabularyResponse -> Maybe Text
vocabularyName :: Prelude.Maybe Prelude.Text,
UpdateVocabularyResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
UpdateVocabularyResponse -> Maybe VocabularyState
vocabularyState :: Prelude.Maybe VocabularyState,
UpdateVocabularyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool
(UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool)
-> (UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool)
-> Eq UpdateVocabularyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool
$c/= :: UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool
== :: UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool
$c== :: UpdateVocabularyResponse -> UpdateVocabularyResponse -> Bool
Prelude.Eq, ReadPrec [UpdateVocabularyResponse]
ReadPrec UpdateVocabularyResponse
Int -> ReadS UpdateVocabularyResponse
ReadS [UpdateVocabularyResponse]
(Int -> ReadS UpdateVocabularyResponse)
-> ReadS [UpdateVocabularyResponse]
-> ReadPrec UpdateVocabularyResponse
-> ReadPrec [UpdateVocabularyResponse]
-> Read UpdateVocabularyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVocabularyResponse]
$creadListPrec :: ReadPrec [UpdateVocabularyResponse]
readPrec :: ReadPrec UpdateVocabularyResponse
$creadPrec :: ReadPrec UpdateVocabularyResponse
readList :: ReadS [UpdateVocabularyResponse]
$creadList :: ReadS [UpdateVocabularyResponse]
readsPrec :: Int -> ReadS UpdateVocabularyResponse
$creadsPrec :: Int -> ReadS UpdateVocabularyResponse
Prelude.Read, Int -> UpdateVocabularyResponse -> ShowS
[UpdateVocabularyResponse] -> ShowS
UpdateVocabularyResponse -> String
(Int -> UpdateVocabularyResponse -> ShowS)
-> (UpdateVocabularyResponse -> String)
-> ([UpdateVocabularyResponse] -> ShowS)
-> Show UpdateVocabularyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVocabularyResponse] -> ShowS
$cshowList :: [UpdateVocabularyResponse] -> ShowS
show :: UpdateVocabularyResponse -> String
$cshow :: UpdateVocabularyResponse -> String
showsPrec :: Int -> UpdateVocabularyResponse -> ShowS
$cshowsPrec :: Int -> UpdateVocabularyResponse -> ShowS
Prelude.Show, (forall x.
UpdateVocabularyResponse -> Rep UpdateVocabularyResponse x)
-> (forall x.
Rep UpdateVocabularyResponse x -> UpdateVocabularyResponse)
-> Generic UpdateVocabularyResponse
forall x.
Rep UpdateVocabularyResponse x -> UpdateVocabularyResponse
forall x.
UpdateVocabularyResponse -> Rep UpdateVocabularyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateVocabularyResponse x -> UpdateVocabularyResponse
$cfrom :: forall x.
UpdateVocabularyResponse -> Rep UpdateVocabularyResponse x
Prelude.Generic)
newUpdateVocabularyResponse ::
Prelude.Int ->
UpdateVocabularyResponse
newUpdateVocabularyResponse :: Int -> UpdateVocabularyResponse
newUpdateVocabularyResponse Int
pHttpStatus_ =
UpdateVocabularyResponse' :: Maybe LanguageCode
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> UpdateVocabularyResponse
UpdateVocabularyResponse'
{ $sel:languageCode:UpdateVocabularyResponse' :: Maybe LanguageCode
languageCode =
Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyName:UpdateVocabularyResponse' :: Maybe Text
vocabularyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateVocabularyResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyState:UpdateVocabularyResponse' :: Maybe VocabularyState
vocabularyState = Maybe VocabularyState
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateVocabularyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateVocabularyResponse_languageCode :: Lens.Lens' UpdateVocabularyResponse (Prelude.Maybe LanguageCode)
updateVocabularyResponse_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse
updateVocabularyResponse_languageCode = (UpdateVocabularyResponse -> Maybe LanguageCode)
-> (UpdateVocabularyResponse
-> Maybe LanguageCode -> UpdateVocabularyResponse)
-> Lens
UpdateVocabularyResponse
UpdateVocabularyResponse
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabularyResponse' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:UpdateVocabularyResponse' :: UpdateVocabularyResponse -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: UpdateVocabularyResponse
s@UpdateVocabularyResponse' {} Maybe LanguageCode
a -> UpdateVocabularyResponse
s {$sel:languageCode:UpdateVocabularyResponse' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: UpdateVocabularyResponse)
updateVocabularyResponse_vocabularyName :: Lens.Lens' UpdateVocabularyResponse (Prelude.Maybe Prelude.Text)
updateVocabularyResponse_vocabularyName :: (Maybe Text -> f (Maybe Text))
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse
updateVocabularyResponse_vocabularyName = (UpdateVocabularyResponse -> Maybe Text)
-> (UpdateVocabularyResponse
-> Maybe Text -> UpdateVocabularyResponse)
-> Lens
UpdateVocabularyResponse
UpdateVocabularyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabularyResponse' {Maybe Text
vocabularyName :: Maybe Text
$sel:vocabularyName:UpdateVocabularyResponse' :: UpdateVocabularyResponse -> Maybe Text
vocabularyName} -> Maybe Text
vocabularyName) (\s :: UpdateVocabularyResponse
s@UpdateVocabularyResponse' {} Maybe Text
a -> UpdateVocabularyResponse
s {$sel:vocabularyName:UpdateVocabularyResponse' :: Maybe Text
vocabularyName = Maybe Text
a} :: UpdateVocabularyResponse)
updateVocabularyResponse_lastModifiedTime :: Lens.Lens' UpdateVocabularyResponse (Prelude.Maybe Prelude.UTCTime)
updateVocabularyResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse
updateVocabularyResponse_lastModifiedTime = (UpdateVocabularyResponse -> Maybe POSIX)
-> (UpdateVocabularyResponse
-> Maybe POSIX -> UpdateVocabularyResponse)
-> Lens
UpdateVocabularyResponse
UpdateVocabularyResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabularyResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateVocabularyResponse' :: UpdateVocabularyResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateVocabularyResponse
s@UpdateVocabularyResponse' {} Maybe POSIX
a -> UpdateVocabularyResponse
s {$sel:lastModifiedTime:UpdateVocabularyResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateVocabularyResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateVocabularyResponse
-> f UpdateVocabularyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
updateVocabularyResponse_vocabularyState :: Lens.Lens' UpdateVocabularyResponse (Prelude.Maybe VocabularyState)
updateVocabularyResponse_vocabularyState :: (Maybe VocabularyState -> f (Maybe VocabularyState))
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse
updateVocabularyResponse_vocabularyState = (UpdateVocabularyResponse -> Maybe VocabularyState)
-> (UpdateVocabularyResponse
-> Maybe VocabularyState -> UpdateVocabularyResponse)
-> Lens
UpdateVocabularyResponse
UpdateVocabularyResponse
(Maybe VocabularyState)
(Maybe VocabularyState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabularyResponse' {Maybe VocabularyState
vocabularyState :: Maybe VocabularyState
$sel:vocabularyState:UpdateVocabularyResponse' :: UpdateVocabularyResponse -> Maybe VocabularyState
vocabularyState} -> Maybe VocabularyState
vocabularyState) (\s :: UpdateVocabularyResponse
s@UpdateVocabularyResponse' {} Maybe VocabularyState
a -> UpdateVocabularyResponse
s {$sel:vocabularyState:UpdateVocabularyResponse' :: Maybe VocabularyState
vocabularyState = Maybe VocabularyState
a} :: UpdateVocabularyResponse)
updateVocabularyResponse_httpStatus :: Lens.Lens' UpdateVocabularyResponse Prelude.Int
updateVocabularyResponse_httpStatus :: (Int -> f Int)
-> UpdateVocabularyResponse -> f UpdateVocabularyResponse
updateVocabularyResponse_httpStatus = (UpdateVocabularyResponse -> Int)
-> (UpdateVocabularyResponse -> Int -> UpdateVocabularyResponse)
-> Lens UpdateVocabularyResponse UpdateVocabularyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVocabularyResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateVocabularyResponse' :: UpdateVocabularyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateVocabularyResponse
s@UpdateVocabularyResponse' {} Int
a -> UpdateVocabularyResponse
s {$sel:httpStatus:UpdateVocabularyResponse' :: Int
httpStatus = Int
a} :: UpdateVocabularyResponse)
instance Prelude.NFData UpdateVocabularyResponse