{-# 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.MarketplaceAnalytics.StartSupportDataExport
(
StartSupportDataExport (..),
newStartSupportDataExport,
startSupportDataExport_customerDefinedValues,
startSupportDataExport_destinationS3Prefix,
startSupportDataExport_dataSetType,
startSupportDataExport_fromDate,
startSupportDataExport_roleNameArn,
startSupportDataExport_destinationS3BucketName,
startSupportDataExport_snsTopicArn,
StartSupportDataExportResponse (..),
newStartSupportDataExportResponse,
startSupportDataExportResponse_dataSetRequestId,
startSupportDataExportResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MarketplaceAnalytics.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StartSupportDataExport = StartSupportDataExport'
{
StartSupportDataExport -> Maybe (HashMap Text Text)
customerDefinedValues :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
StartSupportDataExport -> Maybe Text
destinationS3Prefix :: Prelude.Maybe Prelude.Text,
StartSupportDataExport -> SupportDataSetType
dataSetType :: SupportDataSetType,
StartSupportDataExport -> POSIX
fromDate :: Core.POSIX,
StartSupportDataExport -> Text
roleNameArn :: Prelude.Text,
StartSupportDataExport -> Text
destinationS3BucketName :: Prelude.Text,
StartSupportDataExport -> Text
snsTopicArn :: Prelude.Text
}
deriving (StartSupportDataExport -> StartSupportDataExport -> Bool
(StartSupportDataExport -> StartSupportDataExport -> Bool)
-> (StartSupportDataExport -> StartSupportDataExport -> Bool)
-> Eq StartSupportDataExport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSupportDataExport -> StartSupportDataExport -> Bool
$c/= :: StartSupportDataExport -> StartSupportDataExport -> Bool
== :: StartSupportDataExport -> StartSupportDataExport -> Bool
$c== :: StartSupportDataExport -> StartSupportDataExport -> Bool
Prelude.Eq, ReadPrec [StartSupportDataExport]
ReadPrec StartSupportDataExport
Int -> ReadS StartSupportDataExport
ReadS [StartSupportDataExport]
(Int -> ReadS StartSupportDataExport)
-> ReadS [StartSupportDataExport]
-> ReadPrec StartSupportDataExport
-> ReadPrec [StartSupportDataExport]
-> Read StartSupportDataExport
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSupportDataExport]
$creadListPrec :: ReadPrec [StartSupportDataExport]
readPrec :: ReadPrec StartSupportDataExport
$creadPrec :: ReadPrec StartSupportDataExport
readList :: ReadS [StartSupportDataExport]
$creadList :: ReadS [StartSupportDataExport]
readsPrec :: Int -> ReadS StartSupportDataExport
$creadsPrec :: Int -> ReadS StartSupportDataExport
Prelude.Read, Int -> StartSupportDataExport -> ShowS
[StartSupportDataExport] -> ShowS
StartSupportDataExport -> String
(Int -> StartSupportDataExport -> ShowS)
-> (StartSupportDataExport -> String)
-> ([StartSupportDataExport] -> ShowS)
-> Show StartSupportDataExport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSupportDataExport] -> ShowS
$cshowList :: [StartSupportDataExport] -> ShowS
show :: StartSupportDataExport -> String
$cshow :: StartSupportDataExport -> String
showsPrec :: Int -> StartSupportDataExport -> ShowS
$cshowsPrec :: Int -> StartSupportDataExport -> ShowS
Prelude.Show, (forall x. StartSupportDataExport -> Rep StartSupportDataExport x)
-> (forall x.
Rep StartSupportDataExport x -> StartSupportDataExport)
-> Generic StartSupportDataExport
forall x. Rep StartSupportDataExport x -> StartSupportDataExport
forall x. StartSupportDataExport -> Rep StartSupportDataExport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartSupportDataExport x -> StartSupportDataExport
$cfrom :: forall x. StartSupportDataExport -> Rep StartSupportDataExport x
Prelude.Generic)
newStartSupportDataExport ::
SupportDataSetType ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
StartSupportDataExport
newStartSupportDataExport :: SupportDataSetType
-> UTCTime -> Text -> Text -> Text -> StartSupportDataExport
newStartSupportDataExport
SupportDataSetType
pDataSetType_
UTCTime
pFromDate_
Text
pRoleNameArn_
Text
pDestinationS3BucketName_
Text
pSnsTopicArn_ =
StartSupportDataExport' :: Maybe (HashMap Text Text)
-> Maybe Text
-> SupportDataSetType
-> POSIX
-> Text
-> Text
-> Text
-> StartSupportDataExport
StartSupportDataExport'
{ $sel:customerDefinedValues:StartSupportDataExport' :: Maybe (HashMap Text Text)
customerDefinedValues =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:destinationS3Prefix:StartSupportDataExport' :: Maybe Text
destinationS3Prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataSetType:StartSupportDataExport' :: SupportDataSetType
dataSetType = SupportDataSetType
pDataSetType_,
$sel:fromDate:StartSupportDataExport' :: POSIX
fromDate = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pFromDate_,
$sel:roleNameArn:StartSupportDataExport' :: Text
roleNameArn = Text
pRoleNameArn_,
$sel:destinationS3BucketName:StartSupportDataExport' :: Text
destinationS3BucketName = Text
pDestinationS3BucketName_,
$sel:snsTopicArn:StartSupportDataExport' :: Text
snsTopicArn = Text
pSnsTopicArn_
}
startSupportDataExport_customerDefinedValues :: Lens.Lens' StartSupportDataExport (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startSupportDataExport_customerDefinedValues :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_customerDefinedValues = (StartSupportDataExport -> Maybe (HashMap Text Text))
-> (StartSupportDataExport
-> Maybe (HashMap Text Text) -> StartSupportDataExport)
-> Lens
StartSupportDataExport
StartSupportDataExport
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {Maybe (HashMap Text Text)
customerDefinedValues :: Maybe (HashMap Text Text)
$sel:customerDefinedValues:StartSupportDataExport' :: StartSupportDataExport -> Maybe (HashMap Text Text)
customerDefinedValues} -> Maybe (HashMap Text Text)
customerDefinedValues) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} Maybe (HashMap Text Text)
a -> StartSupportDataExport
s {$sel:customerDefinedValues:StartSupportDataExport' :: Maybe (HashMap Text Text)
customerDefinedValues = Maybe (HashMap Text Text)
a} :: StartSupportDataExport) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSupportDataExport -> f StartSupportDataExport)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSupportDataExport
-> f StartSupportDataExport
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSupportDataExport_destinationS3Prefix :: Lens.Lens' StartSupportDataExport (Prelude.Maybe Prelude.Text)
startSupportDataExport_destinationS3Prefix :: (Maybe Text -> f (Maybe Text))
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_destinationS3Prefix = (StartSupportDataExport -> Maybe Text)
-> (StartSupportDataExport -> Maybe Text -> StartSupportDataExport)
-> Lens
StartSupportDataExport
StartSupportDataExport
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {Maybe Text
destinationS3Prefix :: Maybe Text
$sel:destinationS3Prefix:StartSupportDataExport' :: StartSupportDataExport -> Maybe Text
destinationS3Prefix} -> Maybe Text
destinationS3Prefix) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} Maybe Text
a -> StartSupportDataExport
s {$sel:destinationS3Prefix:StartSupportDataExport' :: Maybe Text
destinationS3Prefix = Maybe Text
a} :: StartSupportDataExport)
startSupportDataExport_dataSetType :: Lens.Lens' StartSupportDataExport SupportDataSetType
startSupportDataExport_dataSetType :: (SupportDataSetType -> f SupportDataSetType)
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_dataSetType = (StartSupportDataExport -> SupportDataSetType)
-> (StartSupportDataExport
-> SupportDataSetType -> StartSupportDataExport)
-> Lens
StartSupportDataExport
StartSupportDataExport
SupportDataSetType
SupportDataSetType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {SupportDataSetType
dataSetType :: SupportDataSetType
$sel:dataSetType:StartSupportDataExport' :: StartSupportDataExport -> SupportDataSetType
dataSetType} -> SupportDataSetType
dataSetType) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} SupportDataSetType
a -> StartSupportDataExport
s {$sel:dataSetType:StartSupportDataExport' :: SupportDataSetType
dataSetType = SupportDataSetType
a} :: StartSupportDataExport)
startSupportDataExport_fromDate :: Lens.Lens' StartSupportDataExport Prelude.UTCTime
startSupportDataExport_fromDate :: (UTCTime -> f UTCTime)
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_fromDate = (StartSupportDataExport -> POSIX)
-> (StartSupportDataExport -> POSIX -> StartSupportDataExport)
-> Lens StartSupportDataExport StartSupportDataExport POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {POSIX
fromDate :: POSIX
$sel:fromDate:StartSupportDataExport' :: StartSupportDataExport -> POSIX
fromDate} -> POSIX
fromDate) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} POSIX
a -> StartSupportDataExport
s {$sel:fromDate:StartSupportDataExport' :: POSIX
fromDate = POSIX
a} :: StartSupportDataExport) ((POSIX -> f POSIX)
-> StartSupportDataExport -> f StartSupportDataExport)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> StartSupportDataExport
-> f StartSupportDataExport
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
startSupportDataExport_roleNameArn :: Lens.Lens' StartSupportDataExport Prelude.Text
startSupportDataExport_roleNameArn :: (Text -> f Text)
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_roleNameArn = (StartSupportDataExport -> Text)
-> (StartSupportDataExport -> Text -> StartSupportDataExport)
-> Lens StartSupportDataExport StartSupportDataExport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {Text
roleNameArn :: Text
$sel:roleNameArn:StartSupportDataExport' :: StartSupportDataExport -> Text
roleNameArn} -> Text
roleNameArn) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} Text
a -> StartSupportDataExport
s {$sel:roleNameArn:StartSupportDataExport' :: Text
roleNameArn = Text
a} :: StartSupportDataExport)
startSupportDataExport_destinationS3BucketName :: Lens.Lens' StartSupportDataExport Prelude.Text
startSupportDataExport_destinationS3BucketName :: (Text -> f Text)
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_destinationS3BucketName = (StartSupportDataExport -> Text)
-> (StartSupportDataExport -> Text -> StartSupportDataExport)
-> Lens StartSupportDataExport StartSupportDataExport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {Text
destinationS3BucketName :: Text
$sel:destinationS3BucketName:StartSupportDataExport' :: StartSupportDataExport -> Text
destinationS3BucketName} -> Text
destinationS3BucketName) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} Text
a -> StartSupportDataExport
s {$sel:destinationS3BucketName:StartSupportDataExport' :: Text
destinationS3BucketName = Text
a} :: StartSupportDataExport)
startSupportDataExport_snsTopicArn :: Lens.Lens' StartSupportDataExport Prelude.Text
startSupportDataExport_snsTopicArn :: (Text -> f Text)
-> StartSupportDataExport -> f StartSupportDataExport
startSupportDataExport_snsTopicArn = (StartSupportDataExport -> Text)
-> (StartSupportDataExport -> Text -> StartSupportDataExport)
-> Lens StartSupportDataExport StartSupportDataExport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExport' {Text
snsTopicArn :: Text
$sel:snsTopicArn:StartSupportDataExport' :: StartSupportDataExport -> Text
snsTopicArn} -> Text
snsTopicArn) (\s :: StartSupportDataExport
s@StartSupportDataExport' {} Text
a -> StartSupportDataExport
s {$sel:snsTopicArn:StartSupportDataExport' :: Text
snsTopicArn = Text
a} :: StartSupportDataExport)
instance Core.AWSRequest StartSupportDataExport where
type
AWSResponse StartSupportDataExport =
StartSupportDataExportResponse
request :: StartSupportDataExport -> Request StartSupportDataExport
request = Service -> StartSupportDataExport -> Request StartSupportDataExport
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartSupportDataExport
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSupportDataExport)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartSupportDataExport))
-> Logger
-> Service
-> Proxy StartSupportDataExport
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSupportDataExport)))
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 -> StartSupportDataExportResponse
StartSupportDataExportResponse'
(Maybe Text -> Int -> StartSupportDataExportResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartSupportDataExportResponse)
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
"dataSetRequestId")
Either String (Int -> StartSupportDataExportResponse)
-> Either String Int
-> Either String StartSupportDataExportResponse
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 StartSupportDataExport
instance Prelude.NFData StartSupportDataExport
instance Core.ToHeaders StartSupportDataExport where
toHeaders :: StartSupportDataExport -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartSupportDataExport -> 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
"MarketplaceCommerceAnalytics20150701.StartSupportDataExport" ::
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 StartSupportDataExport where
toJSON :: StartSupportDataExport -> Value
toJSON StartSupportDataExport' {Maybe Text
Maybe (HashMap Text Text)
Text
POSIX
SupportDataSetType
snsTopicArn :: Text
destinationS3BucketName :: Text
roleNameArn :: Text
fromDate :: POSIX
dataSetType :: SupportDataSetType
destinationS3Prefix :: Maybe Text
customerDefinedValues :: Maybe (HashMap Text Text)
$sel:snsTopicArn:StartSupportDataExport' :: StartSupportDataExport -> Text
$sel:destinationS3BucketName:StartSupportDataExport' :: StartSupportDataExport -> Text
$sel:roleNameArn:StartSupportDataExport' :: StartSupportDataExport -> Text
$sel:fromDate:StartSupportDataExport' :: StartSupportDataExport -> POSIX
$sel:dataSetType:StartSupportDataExport' :: StartSupportDataExport -> SupportDataSetType
$sel:destinationS3Prefix:StartSupportDataExport' :: StartSupportDataExport -> Maybe Text
$sel:customerDefinedValues:StartSupportDataExport' :: StartSupportDataExport -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"customerDefinedValues" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
customerDefinedValues,
(Text
"destinationS3Prefix" 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
destinationS3Prefix,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"dataSetType" Text -> SupportDataSetType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= SupportDataSetType
dataSetType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"fromDate" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
fromDate),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"roleNameArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleNameArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"destinationS3BucketName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
destinationS3BucketName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"snsTopicArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
snsTopicArn)
]
)
instance Core.ToPath StartSupportDataExport where
toPath :: StartSupportDataExport -> ByteString
toPath = ByteString -> StartSupportDataExport -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartSupportDataExport where
toQuery :: StartSupportDataExport -> QueryString
toQuery = QueryString -> StartSupportDataExport -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartSupportDataExportResponse = StartSupportDataExportResponse'
{
StartSupportDataExportResponse -> Maybe Text
dataSetRequestId :: Prelude.Maybe Prelude.Text,
StartSupportDataExportResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool
(StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool)
-> (StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool)
-> Eq StartSupportDataExportResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool
$c/= :: StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool
== :: StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool
$c== :: StartSupportDataExportResponse
-> StartSupportDataExportResponse -> Bool
Prelude.Eq, ReadPrec [StartSupportDataExportResponse]
ReadPrec StartSupportDataExportResponse
Int -> ReadS StartSupportDataExportResponse
ReadS [StartSupportDataExportResponse]
(Int -> ReadS StartSupportDataExportResponse)
-> ReadS [StartSupportDataExportResponse]
-> ReadPrec StartSupportDataExportResponse
-> ReadPrec [StartSupportDataExportResponse]
-> Read StartSupportDataExportResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSupportDataExportResponse]
$creadListPrec :: ReadPrec [StartSupportDataExportResponse]
readPrec :: ReadPrec StartSupportDataExportResponse
$creadPrec :: ReadPrec StartSupportDataExportResponse
readList :: ReadS [StartSupportDataExportResponse]
$creadList :: ReadS [StartSupportDataExportResponse]
readsPrec :: Int -> ReadS StartSupportDataExportResponse
$creadsPrec :: Int -> ReadS StartSupportDataExportResponse
Prelude.Read, Int -> StartSupportDataExportResponse -> ShowS
[StartSupportDataExportResponse] -> ShowS
StartSupportDataExportResponse -> String
(Int -> StartSupportDataExportResponse -> ShowS)
-> (StartSupportDataExportResponse -> String)
-> ([StartSupportDataExportResponse] -> ShowS)
-> Show StartSupportDataExportResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSupportDataExportResponse] -> ShowS
$cshowList :: [StartSupportDataExportResponse] -> ShowS
show :: StartSupportDataExportResponse -> String
$cshow :: StartSupportDataExportResponse -> String
showsPrec :: Int -> StartSupportDataExportResponse -> ShowS
$cshowsPrec :: Int -> StartSupportDataExportResponse -> ShowS
Prelude.Show, (forall x.
StartSupportDataExportResponse
-> Rep StartSupportDataExportResponse x)
-> (forall x.
Rep StartSupportDataExportResponse x
-> StartSupportDataExportResponse)
-> Generic StartSupportDataExportResponse
forall x.
Rep StartSupportDataExportResponse x
-> StartSupportDataExportResponse
forall x.
StartSupportDataExportResponse
-> Rep StartSupportDataExportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartSupportDataExportResponse x
-> StartSupportDataExportResponse
$cfrom :: forall x.
StartSupportDataExportResponse
-> Rep StartSupportDataExportResponse x
Prelude.Generic)
newStartSupportDataExportResponse ::
Prelude.Int ->
StartSupportDataExportResponse
newStartSupportDataExportResponse :: Int -> StartSupportDataExportResponse
newStartSupportDataExportResponse Int
pHttpStatus_ =
StartSupportDataExportResponse' :: Maybe Text -> Int -> StartSupportDataExportResponse
StartSupportDataExportResponse'
{ $sel:dataSetRequestId:StartSupportDataExportResponse' :: Maybe Text
dataSetRequestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartSupportDataExportResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startSupportDataExportResponse_dataSetRequestId :: Lens.Lens' StartSupportDataExportResponse (Prelude.Maybe Prelude.Text)
startSupportDataExportResponse_dataSetRequestId :: (Maybe Text -> f (Maybe Text))
-> StartSupportDataExportResponse
-> f StartSupportDataExportResponse
startSupportDataExportResponse_dataSetRequestId = (StartSupportDataExportResponse -> Maybe Text)
-> (StartSupportDataExportResponse
-> Maybe Text -> StartSupportDataExportResponse)
-> Lens
StartSupportDataExportResponse
StartSupportDataExportResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExportResponse' {Maybe Text
dataSetRequestId :: Maybe Text
$sel:dataSetRequestId:StartSupportDataExportResponse' :: StartSupportDataExportResponse -> Maybe Text
dataSetRequestId} -> Maybe Text
dataSetRequestId) (\s :: StartSupportDataExportResponse
s@StartSupportDataExportResponse' {} Maybe Text
a -> StartSupportDataExportResponse
s {$sel:dataSetRequestId:StartSupportDataExportResponse' :: Maybe Text
dataSetRequestId = Maybe Text
a} :: StartSupportDataExportResponse)
startSupportDataExportResponse_httpStatus :: Lens.Lens' StartSupportDataExportResponse Prelude.Int
startSupportDataExportResponse_httpStatus :: (Int -> f Int)
-> StartSupportDataExportResponse
-> f StartSupportDataExportResponse
startSupportDataExportResponse_httpStatus = (StartSupportDataExportResponse -> Int)
-> (StartSupportDataExportResponse
-> Int -> StartSupportDataExportResponse)
-> Lens
StartSupportDataExportResponse
StartSupportDataExportResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSupportDataExportResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartSupportDataExportResponse' :: StartSupportDataExportResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartSupportDataExportResponse
s@StartSupportDataExportResponse' {} Int
a -> StartSupportDataExportResponse
s {$sel:httpStatus:StartSupportDataExportResponse' :: Int
httpStatus = Int
a} :: StartSupportDataExportResponse)
instance
Prelude.NFData
StartSupportDataExportResponse