{-# 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.LexModels.StartMigration
(
StartMigration (..),
newStartMigration,
startMigration_v1BotName,
startMigration_v1BotVersion,
startMigration_v2BotName,
startMigration_v2BotRole,
startMigration_migrationStrategy,
StartMigrationResponse (..),
newStartMigrationResponse,
startMigrationResponse_v1BotVersion,
startMigrationResponse_migrationStrategy,
startMigrationResponse_migrationTimestamp,
startMigrationResponse_v2BotId,
startMigrationResponse_v1BotLocale,
startMigrationResponse_v1BotName,
startMigrationResponse_v2BotRole,
startMigrationResponse_migrationId,
startMigrationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LexModels.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StartMigration = StartMigration'
{
StartMigration -> Text
v1BotName :: Prelude.Text,
StartMigration -> Text
v1BotVersion :: Prelude.Text,
StartMigration -> Text
v2BotName :: Prelude.Text,
StartMigration -> Text
v2BotRole :: Prelude.Text,
StartMigration -> MigrationStrategy
migrationStrategy :: MigrationStrategy
}
deriving (StartMigration -> StartMigration -> Bool
(StartMigration -> StartMigration -> Bool)
-> (StartMigration -> StartMigration -> Bool) -> Eq StartMigration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMigration -> StartMigration -> Bool
$c/= :: StartMigration -> StartMigration -> Bool
== :: StartMigration -> StartMigration -> Bool
$c== :: StartMigration -> StartMigration -> Bool
Prelude.Eq, ReadPrec [StartMigration]
ReadPrec StartMigration
Int -> ReadS StartMigration
ReadS [StartMigration]
(Int -> ReadS StartMigration)
-> ReadS [StartMigration]
-> ReadPrec StartMigration
-> ReadPrec [StartMigration]
-> Read StartMigration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMigration]
$creadListPrec :: ReadPrec [StartMigration]
readPrec :: ReadPrec StartMigration
$creadPrec :: ReadPrec StartMigration
readList :: ReadS [StartMigration]
$creadList :: ReadS [StartMigration]
readsPrec :: Int -> ReadS StartMigration
$creadsPrec :: Int -> ReadS StartMigration
Prelude.Read, Int -> StartMigration -> ShowS
[StartMigration] -> ShowS
StartMigration -> String
(Int -> StartMigration -> ShowS)
-> (StartMigration -> String)
-> ([StartMigration] -> ShowS)
-> Show StartMigration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMigration] -> ShowS
$cshowList :: [StartMigration] -> ShowS
show :: StartMigration -> String
$cshow :: StartMigration -> String
showsPrec :: Int -> StartMigration -> ShowS
$cshowsPrec :: Int -> StartMigration -> ShowS
Prelude.Show, (forall x. StartMigration -> Rep StartMigration x)
-> (forall x. Rep StartMigration x -> StartMigration)
-> Generic StartMigration
forall x. Rep StartMigration x -> StartMigration
forall x. StartMigration -> Rep StartMigration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartMigration x -> StartMigration
$cfrom :: forall x. StartMigration -> Rep StartMigration x
Prelude.Generic)
newStartMigration ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
MigrationStrategy ->
StartMigration
newStartMigration :: Text -> Text -> Text -> Text -> MigrationStrategy -> StartMigration
newStartMigration
Text
pV1BotName_
Text
pV1BotVersion_
Text
pV2BotName_
Text
pV2BotRole_
MigrationStrategy
pMigrationStrategy_ =
StartMigration' :: Text -> Text -> Text -> Text -> MigrationStrategy -> StartMigration
StartMigration'
{ $sel:v1BotName:StartMigration' :: Text
v1BotName = Text
pV1BotName_,
$sel:v1BotVersion:StartMigration' :: Text
v1BotVersion = Text
pV1BotVersion_,
$sel:v2BotName:StartMigration' :: Text
v2BotName = Text
pV2BotName_,
$sel:v2BotRole:StartMigration' :: Text
v2BotRole = Text
pV2BotRole_,
$sel:migrationStrategy:StartMigration' :: MigrationStrategy
migrationStrategy = MigrationStrategy
pMigrationStrategy_
}
startMigration_v1BotName :: Lens.Lens' StartMigration Prelude.Text
startMigration_v1BotName :: (Text -> f Text) -> StartMigration -> f StartMigration
startMigration_v1BotName = (StartMigration -> Text)
-> (StartMigration -> Text -> StartMigration)
-> Lens StartMigration StartMigration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigration' {Text
v1BotName :: Text
$sel:v1BotName:StartMigration' :: StartMigration -> Text
v1BotName} -> Text
v1BotName) (\s :: StartMigration
s@StartMigration' {} Text
a -> StartMigration
s {$sel:v1BotName:StartMigration' :: Text
v1BotName = Text
a} :: StartMigration)
startMigration_v1BotVersion :: Lens.Lens' StartMigration Prelude.Text
startMigration_v1BotVersion :: (Text -> f Text) -> StartMigration -> f StartMigration
startMigration_v1BotVersion = (StartMigration -> Text)
-> (StartMigration -> Text -> StartMigration)
-> Lens StartMigration StartMigration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigration' {Text
v1BotVersion :: Text
$sel:v1BotVersion:StartMigration' :: StartMigration -> Text
v1BotVersion} -> Text
v1BotVersion) (\s :: StartMigration
s@StartMigration' {} Text
a -> StartMigration
s {$sel:v1BotVersion:StartMigration' :: Text
v1BotVersion = Text
a} :: StartMigration)
startMigration_v2BotName :: Lens.Lens' StartMigration Prelude.Text
startMigration_v2BotName :: (Text -> f Text) -> StartMigration -> f StartMigration
startMigration_v2BotName = (StartMigration -> Text)
-> (StartMigration -> Text -> StartMigration)
-> Lens StartMigration StartMigration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigration' {Text
v2BotName :: Text
$sel:v2BotName:StartMigration' :: StartMigration -> Text
v2BotName} -> Text
v2BotName) (\s :: StartMigration
s@StartMigration' {} Text
a -> StartMigration
s {$sel:v2BotName:StartMigration' :: Text
v2BotName = Text
a} :: StartMigration)
startMigration_v2BotRole :: Lens.Lens' StartMigration Prelude.Text
startMigration_v2BotRole :: (Text -> f Text) -> StartMigration -> f StartMigration
startMigration_v2BotRole = (StartMigration -> Text)
-> (StartMigration -> Text -> StartMigration)
-> Lens StartMigration StartMigration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigration' {Text
v2BotRole :: Text
$sel:v2BotRole:StartMigration' :: StartMigration -> Text
v2BotRole} -> Text
v2BotRole) (\s :: StartMigration
s@StartMigration' {} Text
a -> StartMigration
s {$sel:v2BotRole:StartMigration' :: Text
v2BotRole = Text
a} :: StartMigration)
startMigration_migrationStrategy :: Lens.Lens' StartMigration MigrationStrategy
startMigration_migrationStrategy :: (MigrationStrategy -> f MigrationStrategy)
-> StartMigration -> f StartMigration
startMigration_migrationStrategy = (StartMigration -> MigrationStrategy)
-> (StartMigration -> MigrationStrategy -> StartMigration)
-> Lens
StartMigration StartMigration MigrationStrategy MigrationStrategy
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigration' {MigrationStrategy
migrationStrategy :: MigrationStrategy
$sel:migrationStrategy:StartMigration' :: StartMigration -> MigrationStrategy
migrationStrategy} -> MigrationStrategy
migrationStrategy) (\s :: StartMigration
s@StartMigration' {} MigrationStrategy
a -> StartMigration
s {$sel:migrationStrategy:StartMigration' :: MigrationStrategy
migrationStrategy = MigrationStrategy
a} :: StartMigration)
instance Core.AWSRequest StartMigration where
type
AWSResponse StartMigration =
StartMigrationResponse
request :: StartMigration -> Request StartMigration
request = Service -> StartMigration -> Request StartMigration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartMigration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StartMigration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartMigration))
-> Logger
-> Service
-> Proxy StartMigration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StartMigration)))
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 MigrationStrategy
-> Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse
StartMigrationResponse'
(Maybe Text
-> Maybe MigrationStrategy
-> Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe MigrationStrategy
-> Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
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
"v1BotVersion")
Either
String
(Maybe MigrationStrategy
-> Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
-> Either String (Maybe MigrationStrategy)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe MigrationStrategy)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"migrationStrategy")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
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
"migrationTimestamp")
Either
String
(Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
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
"v2BotId")
Either
String
(Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse)
-> Either String (Maybe Locale)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> StartMigrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Locale)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"v1BotLocale")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> StartMigrationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> Int -> StartMigrationResponse)
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
"v1BotName")
Either
String (Maybe Text -> Maybe Text -> Int -> StartMigrationResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> StartMigrationResponse)
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
"v2BotRole")
Either String (Maybe Text -> Int -> StartMigrationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartMigrationResponse)
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
"migrationId")
Either String (Int -> StartMigrationResponse)
-> Either String Int -> Either String StartMigrationResponse
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 StartMigration
instance Prelude.NFData StartMigration
instance Core.ToHeaders StartMigration where
toHeaders :: StartMigration -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartMigration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 StartMigration where
toJSON :: StartMigration -> Value
toJSON StartMigration' {Text
MigrationStrategy
migrationStrategy :: MigrationStrategy
v2BotRole :: Text
v2BotName :: Text
v1BotVersion :: Text
v1BotName :: Text
$sel:migrationStrategy:StartMigration' :: StartMigration -> MigrationStrategy
$sel:v2BotRole:StartMigration' :: StartMigration -> Text
$sel:v2BotName:StartMigration' :: StartMigration -> Text
$sel:v1BotVersion:StartMigration' :: StartMigration -> Text
$sel:v1BotName:StartMigration' :: StartMigration -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"v1BotName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
v1BotName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"v1BotVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
v1BotVersion),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"v2BotName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
v2BotName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"v2BotRole" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
v2BotRole),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"migrationStrategy" Text -> MigrationStrategy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MigrationStrategy
migrationStrategy)
]
)
instance Core.ToPath StartMigration where
toPath :: StartMigration -> ByteString
toPath = ByteString -> StartMigration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/migrations"
instance Core.ToQuery StartMigration where
toQuery :: StartMigration -> QueryString
toQuery = QueryString -> StartMigration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartMigrationResponse = StartMigrationResponse'
{
StartMigrationResponse -> Maybe Text
v1BotVersion :: Prelude.Maybe Prelude.Text,
StartMigrationResponse -> Maybe MigrationStrategy
migrationStrategy :: Prelude.Maybe MigrationStrategy,
StartMigrationResponse -> Maybe POSIX
migrationTimestamp :: Prelude.Maybe Core.POSIX,
StartMigrationResponse -> Maybe Text
v2BotId :: Prelude.Maybe Prelude.Text,
StartMigrationResponse -> Maybe Locale
v1BotLocale :: Prelude.Maybe Locale,
StartMigrationResponse -> Maybe Text
v1BotName :: Prelude.Maybe Prelude.Text,
StartMigrationResponse -> Maybe Text
v2BotRole :: Prelude.Maybe Prelude.Text,
StartMigrationResponse -> Maybe Text
migrationId :: Prelude.Maybe Prelude.Text,
StartMigrationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartMigrationResponse -> StartMigrationResponse -> Bool
(StartMigrationResponse -> StartMigrationResponse -> Bool)
-> (StartMigrationResponse -> StartMigrationResponse -> Bool)
-> Eq StartMigrationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMigrationResponse -> StartMigrationResponse -> Bool
$c/= :: StartMigrationResponse -> StartMigrationResponse -> Bool
== :: StartMigrationResponse -> StartMigrationResponse -> Bool
$c== :: StartMigrationResponse -> StartMigrationResponse -> Bool
Prelude.Eq, ReadPrec [StartMigrationResponse]
ReadPrec StartMigrationResponse
Int -> ReadS StartMigrationResponse
ReadS [StartMigrationResponse]
(Int -> ReadS StartMigrationResponse)
-> ReadS [StartMigrationResponse]
-> ReadPrec StartMigrationResponse
-> ReadPrec [StartMigrationResponse]
-> Read StartMigrationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMigrationResponse]
$creadListPrec :: ReadPrec [StartMigrationResponse]
readPrec :: ReadPrec StartMigrationResponse
$creadPrec :: ReadPrec StartMigrationResponse
readList :: ReadS [StartMigrationResponse]
$creadList :: ReadS [StartMigrationResponse]
readsPrec :: Int -> ReadS StartMigrationResponse
$creadsPrec :: Int -> ReadS StartMigrationResponse
Prelude.Read, Int -> StartMigrationResponse -> ShowS
[StartMigrationResponse] -> ShowS
StartMigrationResponse -> String
(Int -> StartMigrationResponse -> ShowS)
-> (StartMigrationResponse -> String)
-> ([StartMigrationResponse] -> ShowS)
-> Show StartMigrationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMigrationResponse] -> ShowS
$cshowList :: [StartMigrationResponse] -> ShowS
show :: StartMigrationResponse -> String
$cshow :: StartMigrationResponse -> String
showsPrec :: Int -> StartMigrationResponse -> ShowS
$cshowsPrec :: Int -> StartMigrationResponse -> ShowS
Prelude.Show, (forall x. StartMigrationResponse -> Rep StartMigrationResponse x)
-> (forall x.
Rep StartMigrationResponse x -> StartMigrationResponse)
-> Generic StartMigrationResponse
forall x. Rep StartMigrationResponse x -> StartMigrationResponse
forall x. StartMigrationResponse -> Rep StartMigrationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartMigrationResponse x -> StartMigrationResponse
$cfrom :: forall x. StartMigrationResponse -> Rep StartMigrationResponse x
Prelude.Generic)
newStartMigrationResponse ::
Prelude.Int ->
StartMigrationResponse
newStartMigrationResponse :: Int -> StartMigrationResponse
newStartMigrationResponse Int
pHttpStatus_ =
StartMigrationResponse' :: Maybe Text
-> Maybe MigrationStrategy
-> Maybe POSIX
-> Maybe Text
-> Maybe Locale
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StartMigrationResponse
StartMigrationResponse'
{ $sel:v1BotVersion:StartMigrationResponse' :: Maybe Text
v1BotVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:migrationStrategy:StartMigrationResponse' :: Maybe MigrationStrategy
migrationStrategy = Maybe MigrationStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:migrationTimestamp:StartMigrationResponse' :: Maybe POSIX
migrationTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:v2BotId:StartMigrationResponse' :: Maybe Text
v2BotId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:v1BotLocale:StartMigrationResponse' :: Maybe Locale
v1BotLocale = Maybe Locale
forall a. Maybe a
Prelude.Nothing,
$sel:v1BotName:StartMigrationResponse' :: Maybe Text
v1BotName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:v2BotRole:StartMigrationResponse' :: Maybe Text
v2BotRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:migrationId:StartMigrationResponse' :: Maybe Text
migrationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartMigrationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startMigrationResponse_v1BotVersion :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.Text)
startMigrationResponse_v1BotVersion :: (Maybe Text -> f (Maybe Text))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_v1BotVersion = (StartMigrationResponse -> Maybe Text)
-> (StartMigrationResponse -> Maybe Text -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Text
v1BotVersion :: Maybe Text
$sel:v1BotVersion:StartMigrationResponse' :: StartMigrationResponse -> Maybe Text
v1BotVersion} -> Maybe Text
v1BotVersion) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Text
a -> StartMigrationResponse
s {$sel:v1BotVersion:StartMigrationResponse' :: Maybe Text
v1BotVersion = Maybe Text
a} :: StartMigrationResponse)
startMigrationResponse_migrationStrategy :: Lens.Lens' StartMigrationResponse (Prelude.Maybe MigrationStrategy)
startMigrationResponse_migrationStrategy :: (Maybe MigrationStrategy -> f (Maybe MigrationStrategy))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_migrationStrategy = (StartMigrationResponse -> Maybe MigrationStrategy)
-> (StartMigrationResponse
-> Maybe MigrationStrategy -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe MigrationStrategy)
(Maybe MigrationStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe MigrationStrategy
migrationStrategy :: Maybe MigrationStrategy
$sel:migrationStrategy:StartMigrationResponse' :: StartMigrationResponse -> Maybe MigrationStrategy
migrationStrategy} -> Maybe MigrationStrategy
migrationStrategy) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe MigrationStrategy
a -> StartMigrationResponse
s {$sel:migrationStrategy:StartMigrationResponse' :: Maybe MigrationStrategy
migrationStrategy = Maybe MigrationStrategy
a} :: StartMigrationResponse)
startMigrationResponse_migrationTimestamp :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.UTCTime)
startMigrationResponse_migrationTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_migrationTimestamp = (StartMigrationResponse -> Maybe POSIX)
-> (StartMigrationResponse
-> Maybe POSIX -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe POSIX
migrationTimestamp :: Maybe POSIX
$sel:migrationTimestamp:StartMigrationResponse' :: StartMigrationResponse -> Maybe POSIX
migrationTimestamp} -> Maybe POSIX
migrationTimestamp) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe POSIX
a -> StartMigrationResponse
s {$sel:migrationTimestamp:StartMigrationResponse' :: Maybe POSIX
migrationTimestamp = Maybe POSIX
a} :: StartMigrationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> StartMigrationResponse -> f StartMigrationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StartMigrationResponse
-> f StartMigrationResponse
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
startMigrationResponse_v2BotId :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.Text)
startMigrationResponse_v2BotId :: (Maybe Text -> f (Maybe Text))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_v2BotId = (StartMigrationResponse -> Maybe Text)
-> (StartMigrationResponse -> Maybe Text -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Text
v2BotId :: Maybe Text
$sel:v2BotId:StartMigrationResponse' :: StartMigrationResponse -> Maybe Text
v2BotId} -> Maybe Text
v2BotId) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Text
a -> StartMigrationResponse
s {$sel:v2BotId:StartMigrationResponse' :: Maybe Text
v2BotId = Maybe Text
a} :: StartMigrationResponse)
startMigrationResponse_v1BotLocale :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Locale)
startMigrationResponse_v1BotLocale :: (Maybe Locale -> f (Maybe Locale))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_v1BotLocale = (StartMigrationResponse -> Maybe Locale)
-> (StartMigrationResponse
-> Maybe Locale -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Locale)
(Maybe Locale)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Locale
v1BotLocale :: Maybe Locale
$sel:v1BotLocale:StartMigrationResponse' :: StartMigrationResponse -> Maybe Locale
v1BotLocale} -> Maybe Locale
v1BotLocale) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Locale
a -> StartMigrationResponse
s {$sel:v1BotLocale:StartMigrationResponse' :: Maybe Locale
v1BotLocale = Maybe Locale
a} :: StartMigrationResponse)
startMigrationResponse_v1BotName :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.Text)
startMigrationResponse_v1BotName :: (Maybe Text -> f (Maybe Text))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_v1BotName = (StartMigrationResponse -> Maybe Text)
-> (StartMigrationResponse -> Maybe Text -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Text
v1BotName :: Maybe Text
$sel:v1BotName:StartMigrationResponse' :: StartMigrationResponse -> Maybe Text
v1BotName} -> Maybe Text
v1BotName) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Text
a -> StartMigrationResponse
s {$sel:v1BotName:StartMigrationResponse' :: Maybe Text
v1BotName = Maybe Text
a} :: StartMigrationResponse)
startMigrationResponse_v2BotRole :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.Text)
startMigrationResponse_v2BotRole :: (Maybe Text -> f (Maybe Text))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_v2BotRole = (StartMigrationResponse -> Maybe Text)
-> (StartMigrationResponse -> Maybe Text -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Text
v2BotRole :: Maybe Text
$sel:v2BotRole:StartMigrationResponse' :: StartMigrationResponse -> Maybe Text
v2BotRole} -> Maybe Text
v2BotRole) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Text
a -> StartMigrationResponse
s {$sel:v2BotRole:StartMigrationResponse' :: Maybe Text
v2BotRole = Maybe Text
a} :: StartMigrationResponse)
startMigrationResponse_migrationId :: Lens.Lens' StartMigrationResponse (Prelude.Maybe Prelude.Text)
startMigrationResponse_migrationId :: (Maybe Text -> f (Maybe Text))
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_migrationId = (StartMigrationResponse -> Maybe Text)
-> (StartMigrationResponse -> Maybe Text -> StartMigrationResponse)
-> Lens
StartMigrationResponse
StartMigrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Maybe Text
migrationId :: Maybe Text
$sel:migrationId:StartMigrationResponse' :: StartMigrationResponse -> Maybe Text
migrationId} -> Maybe Text
migrationId) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Maybe Text
a -> StartMigrationResponse
s {$sel:migrationId:StartMigrationResponse' :: Maybe Text
migrationId = Maybe Text
a} :: StartMigrationResponse)
startMigrationResponse_httpStatus :: Lens.Lens' StartMigrationResponse Prelude.Int
startMigrationResponse_httpStatus :: (Int -> f Int)
-> StartMigrationResponse -> f StartMigrationResponse
startMigrationResponse_httpStatus = (StartMigrationResponse -> Int)
-> (StartMigrationResponse -> Int -> StartMigrationResponse)
-> Lens StartMigrationResponse StartMigrationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMigrationResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartMigrationResponse' :: StartMigrationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartMigrationResponse
s@StartMigrationResponse' {} Int
a -> StartMigrationResponse
s {$sel:httpStatus:StartMigrationResponse' :: Int
httpStatus = Int
a} :: StartMigrationResponse)
instance Prelude.NFData StartMigrationResponse