{-# 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.Forecast.CreateDataset
(
CreateDataset (..),
newCreateDataset,
createDataset_dataFrequency,
createDataset_encryptionConfig,
createDataset_tags,
createDataset_datasetName,
createDataset_domain,
createDataset_datasetType,
createDataset_schema,
CreateDatasetResponse (..),
newCreateDatasetResponse,
createDatasetResponse_datasetArn,
createDatasetResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Forecast.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 CreateDataset = CreateDataset'
{
CreateDataset -> Maybe Text
dataFrequency :: Prelude.Maybe Prelude.Text,
CreateDataset -> Maybe EncryptionConfig
encryptionConfig :: Prelude.Maybe EncryptionConfig,
CreateDataset -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateDataset -> Text
datasetName :: Prelude.Text,
CreateDataset -> Domain
domain :: Domain,
CreateDataset -> DatasetType
datasetType :: DatasetType,
CreateDataset -> Schema
schema :: Schema
}
deriving (CreateDataset -> CreateDataset -> Bool
(CreateDataset -> CreateDataset -> Bool)
-> (CreateDataset -> CreateDataset -> Bool) -> Eq CreateDataset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDataset -> CreateDataset -> Bool
$c/= :: CreateDataset -> CreateDataset -> Bool
== :: CreateDataset -> CreateDataset -> Bool
$c== :: CreateDataset -> CreateDataset -> Bool
Prelude.Eq, Int -> CreateDataset -> ShowS
[CreateDataset] -> ShowS
CreateDataset -> String
(Int -> CreateDataset -> ShowS)
-> (CreateDataset -> String)
-> ([CreateDataset] -> ShowS)
-> Show CreateDataset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDataset] -> ShowS
$cshowList :: [CreateDataset] -> ShowS
show :: CreateDataset -> String
$cshow :: CreateDataset -> String
showsPrec :: Int -> CreateDataset -> ShowS
$cshowsPrec :: Int -> CreateDataset -> ShowS
Prelude.Show, (forall x. CreateDataset -> Rep CreateDataset x)
-> (forall x. Rep CreateDataset x -> CreateDataset)
-> Generic CreateDataset
forall x. Rep CreateDataset x -> CreateDataset
forall x. CreateDataset -> Rep CreateDataset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDataset x -> CreateDataset
$cfrom :: forall x. CreateDataset -> Rep CreateDataset x
Prelude.Generic)
newCreateDataset ::
Prelude.Text ->
Domain ->
DatasetType ->
Schema ->
CreateDataset
newCreateDataset :: Text -> Domain -> DatasetType -> Schema -> CreateDataset
newCreateDataset
Text
pDatasetName_
Domain
pDomain_
DatasetType
pDatasetType_
Schema
pSchema_ =
CreateDataset' :: Maybe Text
-> Maybe EncryptionConfig
-> Maybe [Tag]
-> Text
-> Domain
-> DatasetType
-> Schema
-> CreateDataset
CreateDataset'
{ $sel:dataFrequency:CreateDataset' :: Maybe Text
dataFrequency = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionConfig:CreateDataset' :: Maybe EncryptionConfig
encryptionConfig = Maybe EncryptionConfig
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDataset' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:datasetName:CreateDataset' :: Text
datasetName = Text
pDatasetName_,
$sel:domain:CreateDataset' :: Domain
domain = Domain
pDomain_,
$sel:datasetType:CreateDataset' :: DatasetType
datasetType = DatasetType
pDatasetType_,
$sel:schema:CreateDataset' :: Schema
schema = Schema
pSchema_
}
createDataset_dataFrequency :: Lens.Lens' CreateDataset (Prelude.Maybe Prelude.Text)
createDataset_dataFrequency :: (Maybe Text -> f (Maybe Text)) -> CreateDataset -> f CreateDataset
createDataset_dataFrequency = (CreateDataset -> Maybe Text)
-> (CreateDataset -> Maybe Text -> CreateDataset)
-> Lens CreateDataset CreateDataset (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Maybe Text
dataFrequency :: Maybe Text
$sel:dataFrequency:CreateDataset' :: CreateDataset -> Maybe Text
dataFrequency} -> Maybe Text
dataFrequency) (\s :: CreateDataset
s@CreateDataset' {} Maybe Text
a -> CreateDataset
s {$sel:dataFrequency:CreateDataset' :: Maybe Text
dataFrequency = Maybe Text
a} :: CreateDataset)
createDataset_encryptionConfig :: Lens.Lens' CreateDataset (Prelude.Maybe EncryptionConfig)
createDataset_encryptionConfig :: (Maybe EncryptionConfig -> f (Maybe EncryptionConfig))
-> CreateDataset -> f CreateDataset
createDataset_encryptionConfig = (CreateDataset -> Maybe EncryptionConfig)
-> (CreateDataset -> Maybe EncryptionConfig -> CreateDataset)
-> Lens
CreateDataset
CreateDataset
(Maybe EncryptionConfig)
(Maybe EncryptionConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Maybe EncryptionConfig
encryptionConfig :: Maybe EncryptionConfig
$sel:encryptionConfig:CreateDataset' :: CreateDataset -> Maybe EncryptionConfig
encryptionConfig} -> Maybe EncryptionConfig
encryptionConfig) (\s :: CreateDataset
s@CreateDataset' {} Maybe EncryptionConfig
a -> CreateDataset
s {$sel:encryptionConfig:CreateDataset' :: Maybe EncryptionConfig
encryptionConfig = Maybe EncryptionConfig
a} :: CreateDataset)
createDataset_tags :: Lens.Lens' CreateDataset (Prelude.Maybe [Tag])
createDataset_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDataset -> f CreateDataset
createDataset_tags = (CreateDataset -> Maybe [Tag])
-> (CreateDataset -> Maybe [Tag] -> CreateDataset)
-> Lens CreateDataset CreateDataset (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDataset' :: CreateDataset -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDataset
s@CreateDataset' {} Maybe [Tag]
a -> CreateDataset
s {$sel:tags:CreateDataset' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDataset) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDataset -> f CreateDataset)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDataset
-> f CreateDataset
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
createDataset_datasetName :: Lens.Lens' CreateDataset Prelude.Text
createDataset_datasetName :: (Text -> f Text) -> CreateDataset -> f CreateDataset
createDataset_datasetName = (CreateDataset -> Text)
-> (CreateDataset -> Text -> CreateDataset)
-> Lens CreateDataset CreateDataset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Text
datasetName :: Text
$sel:datasetName:CreateDataset' :: CreateDataset -> Text
datasetName} -> Text
datasetName) (\s :: CreateDataset
s@CreateDataset' {} Text
a -> CreateDataset
s {$sel:datasetName:CreateDataset' :: Text
datasetName = Text
a} :: CreateDataset)
createDataset_domain :: Lens.Lens' CreateDataset Domain
createDataset_domain :: (Domain -> f Domain) -> CreateDataset -> f CreateDataset
createDataset_domain = (CreateDataset -> Domain)
-> (CreateDataset -> Domain -> CreateDataset)
-> Lens CreateDataset CreateDataset Domain Domain
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Domain
domain :: Domain
$sel:domain:CreateDataset' :: CreateDataset -> Domain
domain} -> Domain
domain) (\s :: CreateDataset
s@CreateDataset' {} Domain
a -> CreateDataset
s {$sel:domain:CreateDataset' :: Domain
domain = Domain
a} :: CreateDataset)
createDataset_datasetType :: Lens.Lens' CreateDataset DatasetType
createDataset_datasetType :: (DatasetType -> f DatasetType) -> CreateDataset -> f CreateDataset
createDataset_datasetType = (CreateDataset -> DatasetType)
-> (CreateDataset -> DatasetType -> CreateDataset)
-> Lens CreateDataset CreateDataset DatasetType DatasetType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {DatasetType
datasetType :: DatasetType
$sel:datasetType:CreateDataset' :: CreateDataset -> DatasetType
datasetType} -> DatasetType
datasetType) (\s :: CreateDataset
s@CreateDataset' {} DatasetType
a -> CreateDataset
s {$sel:datasetType:CreateDataset' :: DatasetType
datasetType = DatasetType
a} :: CreateDataset)
createDataset_schema :: Lens.Lens' CreateDataset Schema
createDataset_schema :: (Schema -> f Schema) -> CreateDataset -> f CreateDataset
createDataset_schema = (CreateDataset -> Schema)
-> (CreateDataset -> Schema -> CreateDataset)
-> Lens CreateDataset CreateDataset Schema Schema
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataset' {Schema
schema :: Schema
$sel:schema:CreateDataset' :: CreateDataset -> Schema
schema} -> Schema
schema) (\s :: CreateDataset
s@CreateDataset' {} Schema
a -> CreateDataset
s {$sel:schema:CreateDataset' :: Schema
schema = Schema
a} :: CreateDataset)
instance Core.AWSRequest CreateDataset where
type
AWSResponse CreateDataset =
CreateDatasetResponse
request :: CreateDataset -> Request CreateDataset
request = Service -> CreateDataset -> Request CreateDataset
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDataset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDataset)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDataset))
-> Logger
-> Service
-> Proxy CreateDataset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDataset)))
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 -> Int -> CreateDatasetResponse
CreateDatasetResponse'
(Maybe Text -> Int -> CreateDatasetResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateDatasetResponse)
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
"DatasetArn")
Either String (Int -> CreateDatasetResponse)
-> Either String Int -> Either String CreateDatasetResponse
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 CreateDataset
instance Prelude.NFData CreateDataset
instance Core.ToHeaders CreateDataset where
toHeaders :: CreateDataset -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDataset -> 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
"AmazonForecast.CreateDataset" ::
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 CreateDataset where
toJSON :: CreateDataset -> Value
toJSON CreateDataset' {Maybe [Tag]
Maybe Text
Maybe EncryptionConfig
Text
DatasetType
Domain
Schema
schema :: Schema
datasetType :: DatasetType
domain :: Domain
datasetName :: Text
tags :: Maybe [Tag]
encryptionConfig :: Maybe EncryptionConfig
dataFrequency :: Maybe Text
$sel:schema:CreateDataset' :: CreateDataset -> Schema
$sel:datasetType:CreateDataset' :: CreateDataset -> DatasetType
$sel:domain:CreateDataset' :: CreateDataset -> Domain
$sel:datasetName:CreateDataset' :: CreateDataset -> Text
$sel:tags:CreateDataset' :: CreateDataset -> Maybe [Tag]
$sel:encryptionConfig:CreateDataset' :: CreateDataset -> Maybe EncryptionConfig
$sel:dataFrequency:CreateDataset' :: CreateDataset -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DataFrequency" 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
dataFrequency,
(Text
"EncryptionConfig" Text -> EncryptionConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EncryptionConfig -> Pair) -> Maybe EncryptionConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfig
encryptionConfig,
(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
"DatasetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Domain" Text -> Domain -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Domain
domain),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatasetType" Text -> DatasetType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DatasetType
datasetType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Schema" Text -> Schema -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Schema
schema)
]
)
instance Core.ToPath CreateDataset where
toPath :: CreateDataset -> ByteString
toPath = ByteString -> CreateDataset -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateDataset where
toQuery :: CreateDataset -> QueryString
toQuery = QueryString -> CreateDataset -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDatasetResponse = CreateDatasetResponse'
{
CreateDatasetResponse -> Maybe Text
datasetArn :: Prelude.Maybe Prelude.Text,
CreateDatasetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDatasetResponse -> CreateDatasetResponse -> Bool
(CreateDatasetResponse -> CreateDatasetResponse -> Bool)
-> (CreateDatasetResponse -> CreateDatasetResponse -> Bool)
-> Eq CreateDatasetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDatasetResponse -> CreateDatasetResponse -> Bool
$c/= :: CreateDatasetResponse -> CreateDatasetResponse -> Bool
== :: CreateDatasetResponse -> CreateDatasetResponse -> Bool
$c== :: CreateDatasetResponse -> CreateDatasetResponse -> Bool
Prelude.Eq, ReadPrec [CreateDatasetResponse]
ReadPrec CreateDatasetResponse
Int -> ReadS CreateDatasetResponse
ReadS [CreateDatasetResponse]
(Int -> ReadS CreateDatasetResponse)
-> ReadS [CreateDatasetResponse]
-> ReadPrec CreateDatasetResponse
-> ReadPrec [CreateDatasetResponse]
-> Read CreateDatasetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDatasetResponse]
$creadListPrec :: ReadPrec [CreateDatasetResponse]
readPrec :: ReadPrec CreateDatasetResponse
$creadPrec :: ReadPrec CreateDatasetResponse
readList :: ReadS [CreateDatasetResponse]
$creadList :: ReadS [CreateDatasetResponse]
readsPrec :: Int -> ReadS CreateDatasetResponse
$creadsPrec :: Int -> ReadS CreateDatasetResponse
Prelude.Read, Int -> CreateDatasetResponse -> ShowS
[CreateDatasetResponse] -> ShowS
CreateDatasetResponse -> String
(Int -> CreateDatasetResponse -> ShowS)
-> (CreateDatasetResponse -> String)
-> ([CreateDatasetResponse] -> ShowS)
-> Show CreateDatasetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDatasetResponse] -> ShowS
$cshowList :: [CreateDatasetResponse] -> ShowS
show :: CreateDatasetResponse -> String
$cshow :: CreateDatasetResponse -> String
showsPrec :: Int -> CreateDatasetResponse -> ShowS
$cshowsPrec :: Int -> CreateDatasetResponse -> ShowS
Prelude.Show, (forall x. CreateDatasetResponse -> Rep CreateDatasetResponse x)
-> (forall x. Rep CreateDatasetResponse x -> CreateDatasetResponse)
-> Generic CreateDatasetResponse
forall x. Rep CreateDatasetResponse x -> CreateDatasetResponse
forall x. CreateDatasetResponse -> Rep CreateDatasetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDatasetResponse x -> CreateDatasetResponse
$cfrom :: forall x. CreateDatasetResponse -> Rep CreateDatasetResponse x
Prelude.Generic)
newCreateDatasetResponse ::
Prelude.Int ->
CreateDatasetResponse
newCreateDatasetResponse :: Int -> CreateDatasetResponse
newCreateDatasetResponse Int
pHttpStatus_ =
CreateDatasetResponse' :: Maybe Text -> Int -> CreateDatasetResponse
CreateDatasetResponse'
{ $sel:datasetArn:CreateDatasetResponse' :: Maybe Text
datasetArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDatasetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDatasetResponse_datasetArn :: Lens.Lens' CreateDatasetResponse (Prelude.Maybe Prelude.Text)
createDatasetResponse_datasetArn :: (Maybe Text -> f (Maybe Text))
-> CreateDatasetResponse -> f CreateDatasetResponse
createDatasetResponse_datasetArn = (CreateDatasetResponse -> Maybe Text)
-> (CreateDatasetResponse -> Maybe Text -> CreateDatasetResponse)
-> Lens
CreateDatasetResponse
CreateDatasetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetResponse' {Maybe Text
datasetArn :: Maybe Text
$sel:datasetArn:CreateDatasetResponse' :: CreateDatasetResponse -> Maybe Text
datasetArn} -> Maybe Text
datasetArn) (\s :: CreateDatasetResponse
s@CreateDatasetResponse' {} Maybe Text
a -> CreateDatasetResponse
s {$sel:datasetArn:CreateDatasetResponse' :: Maybe Text
datasetArn = Maybe Text
a} :: CreateDatasetResponse)
createDatasetResponse_httpStatus :: Lens.Lens' CreateDatasetResponse Prelude.Int
createDatasetResponse_httpStatus :: (Int -> f Int) -> CreateDatasetResponse -> f CreateDatasetResponse
createDatasetResponse_httpStatus = (CreateDatasetResponse -> Int)
-> (CreateDatasetResponse -> Int -> CreateDatasetResponse)
-> Lens CreateDatasetResponse CreateDatasetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDatasetResponse' :: CreateDatasetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDatasetResponse
s@CreateDatasetResponse' {} Int
a -> CreateDatasetResponse
s {$sel:httpStatus:CreateDatasetResponse' :: Int
httpStatus = Int
a} :: CreateDatasetResponse)
instance Prelude.NFData CreateDatasetResponse