{-# 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.FraudDetector.UpdateModelVersion
(
UpdateModelVersion (..),
newUpdateModelVersion,
updateModelVersion_externalEventsDetail,
updateModelVersion_ingestedEventsDetail,
updateModelVersion_tags,
updateModelVersion_modelId,
updateModelVersion_modelType,
updateModelVersion_majorVersionNumber,
UpdateModelVersionResponse (..),
newUpdateModelVersionResponse,
updateModelVersionResponse_status,
updateModelVersionResponse_modelType,
updateModelVersionResponse_modelId,
updateModelVersionResponse_modelVersionNumber,
updateModelVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.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
data UpdateModelVersion = UpdateModelVersion'
{
UpdateModelVersion -> Maybe ExternalEventsDetail
externalEventsDetail :: Prelude.Maybe ExternalEventsDetail,
UpdateModelVersion -> Maybe IngestedEventsDetail
ingestedEventsDetail :: Prelude.Maybe IngestedEventsDetail,
UpdateModelVersion -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
UpdateModelVersion -> Text
modelId :: Prelude.Text,
UpdateModelVersion -> ModelTypeEnum
modelType :: ModelTypeEnum,
UpdateModelVersion -> Text
majorVersionNumber :: Prelude.Text
}
deriving (UpdateModelVersion -> UpdateModelVersion -> Bool
(UpdateModelVersion -> UpdateModelVersion -> Bool)
-> (UpdateModelVersion -> UpdateModelVersion -> Bool)
-> Eq UpdateModelVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateModelVersion -> UpdateModelVersion -> Bool
$c/= :: UpdateModelVersion -> UpdateModelVersion -> Bool
== :: UpdateModelVersion -> UpdateModelVersion -> Bool
$c== :: UpdateModelVersion -> UpdateModelVersion -> Bool
Prelude.Eq, ReadPrec [UpdateModelVersion]
ReadPrec UpdateModelVersion
Int -> ReadS UpdateModelVersion
ReadS [UpdateModelVersion]
(Int -> ReadS UpdateModelVersion)
-> ReadS [UpdateModelVersion]
-> ReadPrec UpdateModelVersion
-> ReadPrec [UpdateModelVersion]
-> Read UpdateModelVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateModelVersion]
$creadListPrec :: ReadPrec [UpdateModelVersion]
readPrec :: ReadPrec UpdateModelVersion
$creadPrec :: ReadPrec UpdateModelVersion
readList :: ReadS [UpdateModelVersion]
$creadList :: ReadS [UpdateModelVersion]
readsPrec :: Int -> ReadS UpdateModelVersion
$creadsPrec :: Int -> ReadS UpdateModelVersion
Prelude.Read, Int -> UpdateModelVersion -> ShowS
[UpdateModelVersion] -> ShowS
UpdateModelVersion -> String
(Int -> UpdateModelVersion -> ShowS)
-> (UpdateModelVersion -> String)
-> ([UpdateModelVersion] -> ShowS)
-> Show UpdateModelVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateModelVersion] -> ShowS
$cshowList :: [UpdateModelVersion] -> ShowS
show :: UpdateModelVersion -> String
$cshow :: UpdateModelVersion -> String
showsPrec :: Int -> UpdateModelVersion -> ShowS
$cshowsPrec :: Int -> UpdateModelVersion -> ShowS
Prelude.Show, (forall x. UpdateModelVersion -> Rep UpdateModelVersion x)
-> (forall x. Rep UpdateModelVersion x -> UpdateModelVersion)
-> Generic UpdateModelVersion
forall x. Rep UpdateModelVersion x -> UpdateModelVersion
forall x. UpdateModelVersion -> Rep UpdateModelVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateModelVersion x -> UpdateModelVersion
$cfrom :: forall x. UpdateModelVersion -> Rep UpdateModelVersion x
Prelude.Generic)
newUpdateModelVersion ::
Prelude.Text ->
ModelTypeEnum ->
Prelude.Text ->
UpdateModelVersion
newUpdateModelVersion :: Text -> ModelTypeEnum -> Text -> UpdateModelVersion
newUpdateModelVersion
Text
pModelId_
ModelTypeEnum
pModelType_
Text
pMajorVersionNumber_ =
UpdateModelVersion' :: Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe [Tag]
-> Text
-> ModelTypeEnum
-> Text
-> UpdateModelVersion
UpdateModelVersion'
{ $sel:externalEventsDetail:UpdateModelVersion' :: Maybe ExternalEventsDetail
externalEventsDetail =
Maybe ExternalEventsDetail
forall a. Maybe a
Prelude.Nothing,
$sel:ingestedEventsDetail:UpdateModelVersion' :: Maybe IngestedEventsDetail
ingestedEventsDetail = Maybe IngestedEventsDetail
forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdateModelVersion' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:modelId:UpdateModelVersion' :: Text
modelId = Text
pModelId_,
$sel:modelType:UpdateModelVersion' :: ModelTypeEnum
modelType = ModelTypeEnum
pModelType_,
$sel:majorVersionNumber:UpdateModelVersion' :: Text
majorVersionNumber = Text
pMajorVersionNumber_
}
updateModelVersion_externalEventsDetail :: Lens.Lens' UpdateModelVersion (Prelude.Maybe ExternalEventsDetail)
updateModelVersion_externalEventsDetail :: (Maybe ExternalEventsDetail -> f (Maybe ExternalEventsDetail))
-> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_externalEventsDetail = (UpdateModelVersion -> Maybe ExternalEventsDetail)
-> (UpdateModelVersion
-> Maybe ExternalEventsDetail -> UpdateModelVersion)
-> Lens
UpdateModelVersion
UpdateModelVersion
(Maybe ExternalEventsDetail)
(Maybe ExternalEventsDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {Maybe ExternalEventsDetail
externalEventsDetail :: Maybe ExternalEventsDetail
$sel:externalEventsDetail:UpdateModelVersion' :: UpdateModelVersion -> Maybe ExternalEventsDetail
externalEventsDetail} -> Maybe ExternalEventsDetail
externalEventsDetail) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} Maybe ExternalEventsDetail
a -> UpdateModelVersion
s {$sel:externalEventsDetail:UpdateModelVersion' :: Maybe ExternalEventsDetail
externalEventsDetail = Maybe ExternalEventsDetail
a} :: UpdateModelVersion)
updateModelVersion_ingestedEventsDetail :: Lens.Lens' UpdateModelVersion (Prelude.Maybe IngestedEventsDetail)
updateModelVersion_ingestedEventsDetail :: (Maybe IngestedEventsDetail -> f (Maybe IngestedEventsDetail))
-> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_ingestedEventsDetail = (UpdateModelVersion -> Maybe IngestedEventsDetail)
-> (UpdateModelVersion
-> Maybe IngestedEventsDetail -> UpdateModelVersion)
-> Lens
UpdateModelVersion
UpdateModelVersion
(Maybe IngestedEventsDetail)
(Maybe IngestedEventsDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {Maybe IngestedEventsDetail
ingestedEventsDetail :: Maybe IngestedEventsDetail
$sel:ingestedEventsDetail:UpdateModelVersion' :: UpdateModelVersion -> Maybe IngestedEventsDetail
ingestedEventsDetail} -> Maybe IngestedEventsDetail
ingestedEventsDetail) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} Maybe IngestedEventsDetail
a -> UpdateModelVersion
s {$sel:ingestedEventsDetail:UpdateModelVersion' :: Maybe IngestedEventsDetail
ingestedEventsDetail = Maybe IngestedEventsDetail
a} :: UpdateModelVersion)
updateModelVersion_tags :: Lens.Lens' UpdateModelVersion (Prelude.Maybe [Tag])
updateModelVersion_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_tags = (UpdateModelVersion -> Maybe [Tag])
-> (UpdateModelVersion -> Maybe [Tag] -> UpdateModelVersion)
-> Lens
UpdateModelVersion UpdateModelVersion (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:UpdateModelVersion' :: UpdateModelVersion -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} Maybe [Tag]
a -> UpdateModelVersion
s {$sel:tags:UpdateModelVersion' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: UpdateModelVersion) ((Maybe [Tag] -> f (Maybe [Tag]))
-> UpdateModelVersion -> f UpdateModelVersion)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> UpdateModelVersion
-> f UpdateModelVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateModelVersion_modelId :: Lens.Lens' UpdateModelVersion Prelude.Text
updateModelVersion_modelId :: (Text -> f Text) -> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_modelId = (UpdateModelVersion -> Text)
-> (UpdateModelVersion -> Text -> UpdateModelVersion)
-> Lens UpdateModelVersion UpdateModelVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {Text
modelId :: Text
$sel:modelId:UpdateModelVersion' :: UpdateModelVersion -> Text
modelId} -> Text
modelId) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} Text
a -> UpdateModelVersion
s {$sel:modelId:UpdateModelVersion' :: Text
modelId = Text
a} :: UpdateModelVersion)
updateModelVersion_modelType :: Lens.Lens' UpdateModelVersion ModelTypeEnum
updateModelVersion_modelType :: (ModelTypeEnum -> f ModelTypeEnum)
-> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_modelType = (UpdateModelVersion -> ModelTypeEnum)
-> (UpdateModelVersion -> ModelTypeEnum -> UpdateModelVersion)
-> Lens
UpdateModelVersion UpdateModelVersion ModelTypeEnum ModelTypeEnum
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {ModelTypeEnum
modelType :: ModelTypeEnum
$sel:modelType:UpdateModelVersion' :: UpdateModelVersion -> ModelTypeEnum
modelType} -> ModelTypeEnum
modelType) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} ModelTypeEnum
a -> UpdateModelVersion
s {$sel:modelType:UpdateModelVersion' :: ModelTypeEnum
modelType = ModelTypeEnum
a} :: UpdateModelVersion)
updateModelVersion_majorVersionNumber :: Lens.Lens' UpdateModelVersion Prelude.Text
updateModelVersion_majorVersionNumber :: (Text -> f Text) -> UpdateModelVersion -> f UpdateModelVersion
updateModelVersion_majorVersionNumber = (UpdateModelVersion -> Text)
-> (UpdateModelVersion -> Text -> UpdateModelVersion)
-> Lens UpdateModelVersion UpdateModelVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersion' {Text
majorVersionNumber :: Text
$sel:majorVersionNumber:UpdateModelVersion' :: UpdateModelVersion -> Text
majorVersionNumber} -> Text
majorVersionNumber) (\s :: UpdateModelVersion
s@UpdateModelVersion' {} Text
a -> UpdateModelVersion
s {$sel:majorVersionNumber:UpdateModelVersion' :: Text
majorVersionNumber = Text
a} :: UpdateModelVersion)
instance Core.AWSRequest UpdateModelVersion where
type
AWSResponse UpdateModelVersion =
UpdateModelVersionResponse
request :: UpdateModelVersion -> Request UpdateModelVersion
request = Service -> UpdateModelVersion -> Request UpdateModelVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateModelVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateModelVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateModelVersion))
-> Logger
-> Service
-> Proxy UpdateModelVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateModelVersion)))
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 ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateModelVersionResponse
UpdateModelVersionResponse'
(Maybe Text
-> Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateModelVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ModelTypeEnum
-> Maybe Text -> Maybe Text -> Int -> UpdateModelVersionResponse)
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
"status")
Either
String
(Maybe ModelTypeEnum
-> Maybe Text -> Maybe Text -> Int -> UpdateModelVersionResponse)
-> Either String (Maybe ModelTypeEnum)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> UpdateModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ModelTypeEnum)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"modelType")
Either
String
(Maybe Text -> Maybe Text -> Int -> UpdateModelVersionResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateModelVersionResponse)
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
"modelId")
Either String (Maybe Text -> Int -> UpdateModelVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateModelVersionResponse)
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
"modelVersionNumber")
Either String (Int -> UpdateModelVersionResponse)
-> Either String Int -> Either String UpdateModelVersionResponse
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 UpdateModelVersion
instance Prelude.NFData UpdateModelVersion
instance Core.ToHeaders UpdateModelVersion where
toHeaders :: UpdateModelVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateModelVersion -> 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
"AWSHawksNestServiceFacade.UpdateModelVersion" ::
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 UpdateModelVersion where
toJSON :: UpdateModelVersion -> Value
toJSON UpdateModelVersion' {Maybe [Tag]
Maybe ExternalEventsDetail
Maybe IngestedEventsDetail
Text
ModelTypeEnum
majorVersionNumber :: Text
modelType :: ModelTypeEnum
modelId :: Text
tags :: Maybe [Tag]
ingestedEventsDetail :: Maybe IngestedEventsDetail
externalEventsDetail :: Maybe ExternalEventsDetail
$sel:majorVersionNumber:UpdateModelVersion' :: UpdateModelVersion -> Text
$sel:modelType:UpdateModelVersion' :: UpdateModelVersion -> ModelTypeEnum
$sel:modelId:UpdateModelVersion' :: UpdateModelVersion -> Text
$sel:tags:UpdateModelVersion' :: UpdateModelVersion -> Maybe [Tag]
$sel:ingestedEventsDetail:UpdateModelVersion' :: UpdateModelVersion -> Maybe IngestedEventsDetail
$sel:externalEventsDetail:UpdateModelVersion' :: UpdateModelVersion -> Maybe ExternalEventsDetail
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"externalEventsDetail" Text -> ExternalEventsDetail -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ExternalEventsDetail -> Pair)
-> Maybe ExternalEventsDetail -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExternalEventsDetail
externalEventsDetail,
(Text
"ingestedEventsDetail" Text -> IngestedEventsDetail -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(IngestedEventsDetail -> Pair)
-> Maybe IngestedEventsDetail -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IngestedEventsDetail
ingestedEventsDetail,
(Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"modelId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
modelId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"modelType" Text -> ModelTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ModelTypeEnum
modelType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"majorVersionNumber" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
majorVersionNumber)
]
)
instance Core.ToPath UpdateModelVersion where
toPath :: UpdateModelVersion -> ByteString
toPath = ByteString -> UpdateModelVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateModelVersion where
toQuery :: UpdateModelVersion -> QueryString
toQuery = QueryString -> UpdateModelVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateModelVersionResponse = UpdateModelVersionResponse'
{
UpdateModelVersionResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
UpdateModelVersionResponse -> Maybe ModelTypeEnum
modelType :: Prelude.Maybe ModelTypeEnum,
UpdateModelVersionResponse -> Maybe Text
modelId :: Prelude.Maybe Prelude.Text,
UpdateModelVersionResponse -> Maybe Text
modelVersionNumber :: Prelude.Maybe Prelude.Text,
UpdateModelVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool
(UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool)
-> (UpdateModelVersionResponse
-> UpdateModelVersionResponse -> Bool)
-> Eq UpdateModelVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool
$c/= :: UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool
== :: UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool
$c== :: UpdateModelVersionResponse -> UpdateModelVersionResponse -> Bool
Prelude.Eq, ReadPrec [UpdateModelVersionResponse]
ReadPrec UpdateModelVersionResponse
Int -> ReadS UpdateModelVersionResponse
ReadS [UpdateModelVersionResponse]
(Int -> ReadS UpdateModelVersionResponse)
-> ReadS [UpdateModelVersionResponse]
-> ReadPrec UpdateModelVersionResponse
-> ReadPrec [UpdateModelVersionResponse]
-> Read UpdateModelVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateModelVersionResponse]
$creadListPrec :: ReadPrec [UpdateModelVersionResponse]
readPrec :: ReadPrec UpdateModelVersionResponse
$creadPrec :: ReadPrec UpdateModelVersionResponse
readList :: ReadS [UpdateModelVersionResponse]
$creadList :: ReadS [UpdateModelVersionResponse]
readsPrec :: Int -> ReadS UpdateModelVersionResponse
$creadsPrec :: Int -> ReadS UpdateModelVersionResponse
Prelude.Read, Int -> UpdateModelVersionResponse -> ShowS
[UpdateModelVersionResponse] -> ShowS
UpdateModelVersionResponse -> String
(Int -> UpdateModelVersionResponse -> ShowS)
-> (UpdateModelVersionResponse -> String)
-> ([UpdateModelVersionResponse] -> ShowS)
-> Show UpdateModelVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateModelVersionResponse] -> ShowS
$cshowList :: [UpdateModelVersionResponse] -> ShowS
show :: UpdateModelVersionResponse -> String
$cshow :: UpdateModelVersionResponse -> String
showsPrec :: Int -> UpdateModelVersionResponse -> ShowS
$cshowsPrec :: Int -> UpdateModelVersionResponse -> ShowS
Prelude.Show, (forall x.
UpdateModelVersionResponse -> Rep UpdateModelVersionResponse x)
-> (forall x.
Rep UpdateModelVersionResponse x -> UpdateModelVersionResponse)
-> Generic UpdateModelVersionResponse
forall x.
Rep UpdateModelVersionResponse x -> UpdateModelVersionResponse
forall x.
UpdateModelVersionResponse -> Rep UpdateModelVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateModelVersionResponse x -> UpdateModelVersionResponse
$cfrom :: forall x.
UpdateModelVersionResponse -> Rep UpdateModelVersionResponse x
Prelude.Generic)
newUpdateModelVersionResponse ::
Prelude.Int ->
UpdateModelVersionResponse
newUpdateModelVersionResponse :: Int -> UpdateModelVersionResponse
newUpdateModelVersionResponse Int
pHttpStatus_ =
UpdateModelVersionResponse' :: Maybe Text
-> Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Int
-> UpdateModelVersionResponse
UpdateModelVersionResponse'
{ $sel:status:UpdateModelVersionResponse' :: Maybe Text
status =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelType:UpdateModelVersionResponse' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:modelId:UpdateModelVersionResponse' :: Maybe Text
modelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelVersionNumber:UpdateModelVersionResponse' :: Maybe Text
modelVersionNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateModelVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateModelVersionResponse_status :: Lens.Lens' UpdateModelVersionResponse (Prelude.Maybe Prelude.Text)
updateModelVersionResponse_status :: (Maybe Text -> f (Maybe Text))
-> UpdateModelVersionResponse -> f UpdateModelVersionResponse
updateModelVersionResponse_status = (UpdateModelVersionResponse -> Maybe Text)
-> (UpdateModelVersionResponse
-> Maybe Text -> UpdateModelVersionResponse)
-> Lens
UpdateModelVersionResponse
UpdateModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersionResponse' {Maybe Text
status :: Maybe Text
$sel:status:UpdateModelVersionResponse' :: UpdateModelVersionResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: UpdateModelVersionResponse
s@UpdateModelVersionResponse' {} Maybe Text
a -> UpdateModelVersionResponse
s {$sel:status:UpdateModelVersionResponse' :: Maybe Text
status = Maybe Text
a} :: UpdateModelVersionResponse)
updateModelVersionResponse_modelType :: Lens.Lens' UpdateModelVersionResponse (Prelude.Maybe ModelTypeEnum)
updateModelVersionResponse_modelType :: (Maybe ModelTypeEnum -> f (Maybe ModelTypeEnum))
-> UpdateModelVersionResponse -> f UpdateModelVersionResponse
updateModelVersionResponse_modelType = (UpdateModelVersionResponse -> Maybe ModelTypeEnum)
-> (UpdateModelVersionResponse
-> Maybe ModelTypeEnum -> UpdateModelVersionResponse)
-> Lens
UpdateModelVersionResponse
UpdateModelVersionResponse
(Maybe ModelTypeEnum)
(Maybe ModelTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersionResponse' {Maybe ModelTypeEnum
modelType :: Maybe ModelTypeEnum
$sel:modelType:UpdateModelVersionResponse' :: UpdateModelVersionResponse -> Maybe ModelTypeEnum
modelType} -> Maybe ModelTypeEnum
modelType) (\s :: UpdateModelVersionResponse
s@UpdateModelVersionResponse' {} Maybe ModelTypeEnum
a -> UpdateModelVersionResponse
s {$sel:modelType:UpdateModelVersionResponse' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
a} :: UpdateModelVersionResponse)
updateModelVersionResponse_modelId :: Lens.Lens' UpdateModelVersionResponse (Prelude.Maybe Prelude.Text)
updateModelVersionResponse_modelId :: (Maybe Text -> f (Maybe Text))
-> UpdateModelVersionResponse -> f UpdateModelVersionResponse
updateModelVersionResponse_modelId = (UpdateModelVersionResponse -> Maybe Text)
-> (UpdateModelVersionResponse
-> Maybe Text -> UpdateModelVersionResponse)
-> Lens
UpdateModelVersionResponse
UpdateModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersionResponse' {Maybe Text
modelId :: Maybe Text
$sel:modelId:UpdateModelVersionResponse' :: UpdateModelVersionResponse -> Maybe Text
modelId} -> Maybe Text
modelId) (\s :: UpdateModelVersionResponse
s@UpdateModelVersionResponse' {} Maybe Text
a -> UpdateModelVersionResponse
s {$sel:modelId:UpdateModelVersionResponse' :: Maybe Text
modelId = Maybe Text
a} :: UpdateModelVersionResponse)
updateModelVersionResponse_modelVersionNumber :: Lens.Lens' UpdateModelVersionResponse (Prelude.Maybe Prelude.Text)
updateModelVersionResponse_modelVersionNumber :: (Maybe Text -> f (Maybe Text))
-> UpdateModelVersionResponse -> f UpdateModelVersionResponse
updateModelVersionResponse_modelVersionNumber = (UpdateModelVersionResponse -> Maybe Text)
-> (UpdateModelVersionResponse
-> Maybe Text -> UpdateModelVersionResponse)
-> Lens
UpdateModelVersionResponse
UpdateModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersionResponse' {Maybe Text
modelVersionNumber :: Maybe Text
$sel:modelVersionNumber:UpdateModelVersionResponse' :: UpdateModelVersionResponse -> Maybe Text
modelVersionNumber} -> Maybe Text
modelVersionNumber) (\s :: UpdateModelVersionResponse
s@UpdateModelVersionResponse' {} Maybe Text
a -> UpdateModelVersionResponse
s {$sel:modelVersionNumber:UpdateModelVersionResponse' :: Maybe Text
modelVersionNumber = Maybe Text
a} :: UpdateModelVersionResponse)
updateModelVersionResponse_httpStatus :: Lens.Lens' UpdateModelVersionResponse Prelude.Int
updateModelVersionResponse_httpStatus :: (Int -> f Int)
-> UpdateModelVersionResponse -> f UpdateModelVersionResponse
updateModelVersionResponse_httpStatus = (UpdateModelVersionResponse -> Int)
-> (UpdateModelVersionResponse
-> Int -> UpdateModelVersionResponse)
-> Lens
UpdateModelVersionResponse UpdateModelVersionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateModelVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateModelVersionResponse' :: UpdateModelVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateModelVersionResponse
s@UpdateModelVersionResponse' {} Int
a -> UpdateModelVersionResponse
s {$sel:httpStatus:UpdateModelVersionResponse' :: Int
httpStatus = Int
a} :: UpdateModelVersionResponse)
instance Prelude.NFData UpdateModelVersionResponse