{-# 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.CreateDatasetImportJob
(
CreateDatasetImportJob (..),
newCreateDatasetImportJob,
createDatasetImportJob_timestampFormat,
createDatasetImportJob_useGeolocationForTimeZone,
createDatasetImportJob_geolocationFormat,
createDatasetImportJob_timeZone,
createDatasetImportJob_tags,
createDatasetImportJob_datasetImportJobName,
createDatasetImportJob_datasetArn,
createDatasetImportJob_dataSource,
CreateDatasetImportJobResponse (..),
newCreateDatasetImportJobResponse,
createDatasetImportJobResponse_datasetImportJobArn,
createDatasetImportJobResponse_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 CreateDatasetImportJob = CreateDatasetImportJob'
{
CreateDatasetImportJob -> Maybe Text
timestampFormat :: Prelude.Maybe Prelude.Text,
CreateDatasetImportJob -> Maybe Bool
useGeolocationForTimeZone :: Prelude.Maybe Prelude.Bool,
CreateDatasetImportJob -> Maybe Text
geolocationFormat :: Prelude.Maybe Prelude.Text,
CreateDatasetImportJob -> Maybe Text
timeZone :: Prelude.Maybe Prelude.Text,
CreateDatasetImportJob -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateDatasetImportJob -> Text
datasetImportJobName :: Prelude.Text,
CreateDatasetImportJob -> Text
datasetArn :: Prelude.Text,
CreateDatasetImportJob -> DataSource
dataSource :: DataSource
}
deriving (CreateDatasetImportJob -> CreateDatasetImportJob -> Bool
(CreateDatasetImportJob -> CreateDatasetImportJob -> Bool)
-> (CreateDatasetImportJob -> CreateDatasetImportJob -> Bool)
-> Eq CreateDatasetImportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDatasetImportJob -> CreateDatasetImportJob -> Bool
$c/= :: CreateDatasetImportJob -> CreateDatasetImportJob -> Bool
== :: CreateDatasetImportJob -> CreateDatasetImportJob -> Bool
$c== :: CreateDatasetImportJob -> CreateDatasetImportJob -> Bool
Prelude.Eq, Int -> CreateDatasetImportJob -> ShowS
[CreateDatasetImportJob] -> ShowS
CreateDatasetImportJob -> String
(Int -> CreateDatasetImportJob -> ShowS)
-> (CreateDatasetImportJob -> String)
-> ([CreateDatasetImportJob] -> ShowS)
-> Show CreateDatasetImportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDatasetImportJob] -> ShowS
$cshowList :: [CreateDatasetImportJob] -> ShowS
show :: CreateDatasetImportJob -> String
$cshow :: CreateDatasetImportJob -> String
showsPrec :: Int -> CreateDatasetImportJob -> ShowS
$cshowsPrec :: Int -> CreateDatasetImportJob -> ShowS
Prelude.Show, (forall x. CreateDatasetImportJob -> Rep CreateDatasetImportJob x)
-> (forall x.
Rep CreateDatasetImportJob x -> CreateDatasetImportJob)
-> Generic CreateDatasetImportJob
forall x. Rep CreateDatasetImportJob x -> CreateDatasetImportJob
forall x. CreateDatasetImportJob -> Rep CreateDatasetImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDatasetImportJob x -> CreateDatasetImportJob
$cfrom :: forall x. CreateDatasetImportJob -> Rep CreateDatasetImportJob x
Prelude.Generic)
newCreateDatasetImportJob ::
Prelude.Text ->
Prelude.Text ->
DataSource ->
CreateDatasetImportJob
newCreateDatasetImportJob :: Text -> Text -> DataSource -> CreateDatasetImportJob
newCreateDatasetImportJob
Text
pDatasetImportJobName_
Text
pDatasetArn_
DataSource
pDataSource_ =
CreateDatasetImportJob' :: Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Text
-> DataSource
-> CreateDatasetImportJob
CreateDatasetImportJob'
{ $sel:timestampFormat:CreateDatasetImportJob' :: Maybe Text
timestampFormat =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:useGeolocationForTimeZone:CreateDatasetImportJob' :: Maybe Bool
useGeolocationForTimeZone = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:geolocationFormat:CreateDatasetImportJob' :: Maybe Text
geolocationFormat = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timeZone:CreateDatasetImportJob' :: Maybe Text
timeZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDatasetImportJob' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:datasetImportJobName:CreateDatasetImportJob' :: Text
datasetImportJobName = Text
pDatasetImportJobName_,
$sel:datasetArn:CreateDatasetImportJob' :: Text
datasetArn = Text
pDatasetArn_,
$sel:dataSource:CreateDatasetImportJob' :: DataSource
dataSource = DataSource
pDataSource_
}
createDatasetImportJob_timestampFormat :: Lens.Lens' CreateDatasetImportJob (Prelude.Maybe Prelude.Text)
createDatasetImportJob_timestampFormat :: (Maybe Text -> f (Maybe Text))
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_timestampFormat = (CreateDatasetImportJob -> Maybe Text)
-> (CreateDatasetImportJob -> Maybe Text -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob
CreateDatasetImportJob
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Maybe Text
timestampFormat :: Maybe Text
$sel:timestampFormat:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
timestampFormat} -> Maybe Text
timestampFormat) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Maybe Text
a -> CreateDatasetImportJob
s {$sel:timestampFormat:CreateDatasetImportJob' :: Maybe Text
timestampFormat = Maybe Text
a} :: CreateDatasetImportJob)
createDatasetImportJob_useGeolocationForTimeZone :: Lens.Lens' CreateDatasetImportJob (Prelude.Maybe Prelude.Bool)
createDatasetImportJob_useGeolocationForTimeZone :: (Maybe Bool -> f (Maybe Bool))
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_useGeolocationForTimeZone = (CreateDatasetImportJob -> Maybe Bool)
-> (CreateDatasetImportJob -> Maybe Bool -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob
CreateDatasetImportJob
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Maybe Bool
useGeolocationForTimeZone :: Maybe Bool
$sel:useGeolocationForTimeZone:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Bool
useGeolocationForTimeZone} -> Maybe Bool
useGeolocationForTimeZone) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Maybe Bool
a -> CreateDatasetImportJob
s {$sel:useGeolocationForTimeZone:CreateDatasetImportJob' :: Maybe Bool
useGeolocationForTimeZone = Maybe Bool
a} :: CreateDatasetImportJob)
createDatasetImportJob_geolocationFormat :: Lens.Lens' CreateDatasetImportJob (Prelude.Maybe Prelude.Text)
createDatasetImportJob_geolocationFormat :: (Maybe Text -> f (Maybe Text))
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_geolocationFormat = (CreateDatasetImportJob -> Maybe Text)
-> (CreateDatasetImportJob -> Maybe Text -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob
CreateDatasetImportJob
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Maybe Text
geolocationFormat :: Maybe Text
$sel:geolocationFormat:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
geolocationFormat} -> Maybe Text
geolocationFormat) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Maybe Text
a -> CreateDatasetImportJob
s {$sel:geolocationFormat:CreateDatasetImportJob' :: Maybe Text
geolocationFormat = Maybe Text
a} :: CreateDatasetImportJob)
createDatasetImportJob_timeZone :: Lens.Lens' CreateDatasetImportJob (Prelude.Maybe Prelude.Text)
createDatasetImportJob_timeZone :: (Maybe Text -> f (Maybe Text))
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_timeZone = (CreateDatasetImportJob -> Maybe Text)
-> (CreateDatasetImportJob -> Maybe Text -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob
CreateDatasetImportJob
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Maybe Text
timeZone :: Maybe Text
$sel:timeZone:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
timeZone} -> Maybe Text
timeZone) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Maybe Text
a -> CreateDatasetImportJob
s {$sel:timeZone:CreateDatasetImportJob' :: Maybe Text
timeZone = Maybe Text
a} :: CreateDatasetImportJob)
createDatasetImportJob_tags :: Lens.Lens' CreateDatasetImportJob (Prelude.Maybe [Tag])
createDatasetImportJob_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_tags = (CreateDatasetImportJob -> Maybe [Tag])
-> (CreateDatasetImportJob
-> Maybe [Tag] -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob
CreateDatasetImportJob
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Maybe [Tag]
a -> CreateDatasetImportJob
s {$sel:tags:CreateDatasetImportJob' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDatasetImportJob) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDatasetImportJob -> f CreateDatasetImportJob)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDatasetImportJob
-> f CreateDatasetImportJob
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
createDatasetImportJob_datasetImportJobName :: Lens.Lens' CreateDatasetImportJob Prelude.Text
createDatasetImportJob_datasetImportJobName :: (Text -> f Text)
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_datasetImportJobName = (CreateDatasetImportJob -> Text)
-> (CreateDatasetImportJob -> Text -> CreateDatasetImportJob)
-> Lens CreateDatasetImportJob CreateDatasetImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Text
datasetImportJobName :: Text
$sel:datasetImportJobName:CreateDatasetImportJob' :: CreateDatasetImportJob -> Text
datasetImportJobName} -> Text
datasetImportJobName) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Text
a -> CreateDatasetImportJob
s {$sel:datasetImportJobName:CreateDatasetImportJob' :: Text
datasetImportJobName = Text
a} :: CreateDatasetImportJob)
createDatasetImportJob_datasetArn :: Lens.Lens' CreateDatasetImportJob Prelude.Text
createDatasetImportJob_datasetArn :: (Text -> f Text)
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_datasetArn = (CreateDatasetImportJob -> Text)
-> (CreateDatasetImportJob -> Text -> CreateDatasetImportJob)
-> Lens CreateDatasetImportJob CreateDatasetImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {Text
datasetArn :: Text
$sel:datasetArn:CreateDatasetImportJob' :: CreateDatasetImportJob -> Text
datasetArn} -> Text
datasetArn) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} Text
a -> CreateDatasetImportJob
s {$sel:datasetArn:CreateDatasetImportJob' :: Text
datasetArn = Text
a} :: CreateDatasetImportJob)
createDatasetImportJob_dataSource :: Lens.Lens' CreateDatasetImportJob DataSource
createDatasetImportJob_dataSource :: (DataSource -> f DataSource)
-> CreateDatasetImportJob -> f CreateDatasetImportJob
createDatasetImportJob_dataSource = (CreateDatasetImportJob -> DataSource)
-> (CreateDatasetImportJob -> DataSource -> CreateDatasetImportJob)
-> Lens
CreateDatasetImportJob CreateDatasetImportJob DataSource DataSource
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJob' {DataSource
dataSource :: DataSource
$sel:dataSource:CreateDatasetImportJob' :: CreateDatasetImportJob -> DataSource
dataSource} -> DataSource
dataSource) (\s :: CreateDatasetImportJob
s@CreateDatasetImportJob' {} DataSource
a -> CreateDatasetImportJob
s {$sel:dataSource:CreateDatasetImportJob' :: DataSource
dataSource = DataSource
a} :: CreateDatasetImportJob)
instance Core.AWSRequest CreateDatasetImportJob where
type
AWSResponse CreateDatasetImportJob =
CreateDatasetImportJobResponse
request :: CreateDatasetImportJob -> Request CreateDatasetImportJob
request = Service -> CreateDatasetImportJob -> Request CreateDatasetImportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDatasetImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDatasetImportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDatasetImportJob))
-> Logger
-> Service
-> Proxy CreateDatasetImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDatasetImportJob)))
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 -> CreateDatasetImportJobResponse
CreateDatasetImportJobResponse'
(Maybe Text -> Int -> CreateDatasetImportJobResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateDatasetImportJobResponse)
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
"DatasetImportJobArn")
Either String (Int -> CreateDatasetImportJobResponse)
-> Either String Int
-> Either String CreateDatasetImportJobResponse
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 CreateDatasetImportJob
instance Prelude.NFData CreateDatasetImportJob
instance Core.ToHeaders CreateDatasetImportJob where
toHeaders :: CreateDatasetImportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDatasetImportJob -> 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.CreateDatasetImportJob" ::
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 CreateDatasetImportJob where
toJSON :: CreateDatasetImportJob -> Value
toJSON CreateDatasetImportJob' {Maybe Bool
Maybe [Tag]
Maybe Text
Text
DataSource
dataSource :: DataSource
datasetArn :: Text
datasetImportJobName :: Text
tags :: Maybe [Tag]
timeZone :: Maybe Text
geolocationFormat :: Maybe Text
useGeolocationForTimeZone :: Maybe Bool
timestampFormat :: Maybe Text
$sel:dataSource:CreateDatasetImportJob' :: CreateDatasetImportJob -> DataSource
$sel:datasetArn:CreateDatasetImportJob' :: CreateDatasetImportJob -> Text
$sel:datasetImportJobName:CreateDatasetImportJob' :: CreateDatasetImportJob -> Text
$sel:tags:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe [Tag]
$sel:timeZone:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
$sel:geolocationFormat:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
$sel:useGeolocationForTimeZone:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Bool
$sel:timestampFormat:CreateDatasetImportJob' :: CreateDatasetImportJob -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"TimestampFormat" 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
timestampFormat,
(Text
"UseGeolocationForTimeZone" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
useGeolocationForTimeZone,
(Text
"GeolocationFormat" 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
geolocationFormat,
(Text
"TimeZone" 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
timeZone,
(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
"DatasetImportJobName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetImportJobName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatasetArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DataSource" Text -> DataSource -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DataSource
dataSource)
]
)
instance Core.ToPath CreateDatasetImportJob where
toPath :: CreateDatasetImportJob -> ByteString
toPath = ByteString -> CreateDatasetImportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateDatasetImportJob where
toQuery :: CreateDatasetImportJob -> QueryString
toQuery = QueryString -> CreateDatasetImportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDatasetImportJobResponse = CreateDatasetImportJobResponse'
{
CreateDatasetImportJobResponse -> Maybe Text
datasetImportJobArn :: Prelude.Maybe Prelude.Text,
CreateDatasetImportJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool
(CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool)
-> (CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool)
-> Eq CreateDatasetImportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool
$c/= :: CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool
== :: CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool
$c== :: CreateDatasetImportJobResponse
-> CreateDatasetImportJobResponse -> Bool
Prelude.Eq, ReadPrec [CreateDatasetImportJobResponse]
ReadPrec CreateDatasetImportJobResponse
Int -> ReadS CreateDatasetImportJobResponse
ReadS [CreateDatasetImportJobResponse]
(Int -> ReadS CreateDatasetImportJobResponse)
-> ReadS [CreateDatasetImportJobResponse]
-> ReadPrec CreateDatasetImportJobResponse
-> ReadPrec [CreateDatasetImportJobResponse]
-> Read CreateDatasetImportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDatasetImportJobResponse]
$creadListPrec :: ReadPrec [CreateDatasetImportJobResponse]
readPrec :: ReadPrec CreateDatasetImportJobResponse
$creadPrec :: ReadPrec CreateDatasetImportJobResponse
readList :: ReadS [CreateDatasetImportJobResponse]
$creadList :: ReadS [CreateDatasetImportJobResponse]
readsPrec :: Int -> ReadS CreateDatasetImportJobResponse
$creadsPrec :: Int -> ReadS CreateDatasetImportJobResponse
Prelude.Read, Int -> CreateDatasetImportJobResponse -> ShowS
[CreateDatasetImportJobResponse] -> ShowS
CreateDatasetImportJobResponse -> String
(Int -> CreateDatasetImportJobResponse -> ShowS)
-> (CreateDatasetImportJobResponse -> String)
-> ([CreateDatasetImportJobResponse] -> ShowS)
-> Show CreateDatasetImportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDatasetImportJobResponse] -> ShowS
$cshowList :: [CreateDatasetImportJobResponse] -> ShowS
show :: CreateDatasetImportJobResponse -> String
$cshow :: CreateDatasetImportJobResponse -> String
showsPrec :: Int -> CreateDatasetImportJobResponse -> ShowS
$cshowsPrec :: Int -> CreateDatasetImportJobResponse -> ShowS
Prelude.Show, (forall x.
CreateDatasetImportJobResponse
-> Rep CreateDatasetImportJobResponse x)
-> (forall x.
Rep CreateDatasetImportJobResponse x
-> CreateDatasetImportJobResponse)
-> Generic CreateDatasetImportJobResponse
forall x.
Rep CreateDatasetImportJobResponse x
-> CreateDatasetImportJobResponse
forall x.
CreateDatasetImportJobResponse
-> Rep CreateDatasetImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDatasetImportJobResponse x
-> CreateDatasetImportJobResponse
$cfrom :: forall x.
CreateDatasetImportJobResponse
-> Rep CreateDatasetImportJobResponse x
Prelude.Generic)
newCreateDatasetImportJobResponse ::
Prelude.Int ->
CreateDatasetImportJobResponse
newCreateDatasetImportJobResponse :: Int -> CreateDatasetImportJobResponse
newCreateDatasetImportJobResponse Int
pHttpStatus_ =
CreateDatasetImportJobResponse' :: Maybe Text -> Int -> CreateDatasetImportJobResponse
CreateDatasetImportJobResponse'
{ $sel:datasetImportJobArn:CreateDatasetImportJobResponse' :: Maybe Text
datasetImportJobArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDatasetImportJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDatasetImportJobResponse_datasetImportJobArn :: Lens.Lens' CreateDatasetImportJobResponse (Prelude.Maybe Prelude.Text)
createDatasetImportJobResponse_datasetImportJobArn :: (Maybe Text -> f (Maybe Text))
-> CreateDatasetImportJobResponse
-> f CreateDatasetImportJobResponse
createDatasetImportJobResponse_datasetImportJobArn = (CreateDatasetImportJobResponse -> Maybe Text)
-> (CreateDatasetImportJobResponse
-> Maybe Text -> CreateDatasetImportJobResponse)
-> Lens
CreateDatasetImportJobResponse
CreateDatasetImportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJobResponse' {Maybe Text
datasetImportJobArn :: Maybe Text
$sel:datasetImportJobArn:CreateDatasetImportJobResponse' :: CreateDatasetImportJobResponse -> Maybe Text
datasetImportJobArn} -> Maybe Text
datasetImportJobArn) (\s :: CreateDatasetImportJobResponse
s@CreateDatasetImportJobResponse' {} Maybe Text
a -> CreateDatasetImportJobResponse
s {$sel:datasetImportJobArn:CreateDatasetImportJobResponse' :: Maybe Text
datasetImportJobArn = Maybe Text
a} :: CreateDatasetImportJobResponse)
createDatasetImportJobResponse_httpStatus :: Lens.Lens' CreateDatasetImportJobResponse Prelude.Int
createDatasetImportJobResponse_httpStatus :: (Int -> f Int)
-> CreateDatasetImportJobResponse
-> f CreateDatasetImportJobResponse
createDatasetImportJobResponse_httpStatus = (CreateDatasetImportJobResponse -> Int)
-> (CreateDatasetImportJobResponse
-> Int -> CreateDatasetImportJobResponse)
-> Lens
CreateDatasetImportJobResponse
CreateDatasetImportJobResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDatasetImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDatasetImportJobResponse' :: CreateDatasetImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDatasetImportJobResponse
s@CreateDatasetImportJobResponse' {} Int
a -> CreateDatasetImportJobResponse
s {$sel:httpStatus:CreateDatasetImportJobResponse' :: Int
httpStatus = Int
a} :: CreateDatasetImportJobResponse)
instance
Prelude.NFData
CreateDatasetImportJobResponse