{-# 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.GreengrassV2.BatchDisassociateClientDeviceFromCoreDevice
(
BatchDisassociateClientDeviceFromCoreDevice (..),
newBatchDisassociateClientDeviceFromCoreDevice,
batchDisassociateClientDeviceFromCoreDevice_entries,
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName,
BatchDisassociateClientDeviceFromCoreDeviceResponse (..),
newBatchDisassociateClientDeviceFromCoreDeviceResponse,
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries,
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GreengrassV2.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 BatchDisassociateClientDeviceFromCoreDevice = BatchDisassociateClientDeviceFromCoreDevice'
{
BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries :: Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceEntry),
BatchDisassociateClientDeviceFromCoreDevice -> Text
coreDeviceThingName :: Prelude.Text
}
deriving (BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
(BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool)
-> (BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool)
-> Eq BatchDisassociateClientDeviceFromCoreDevice
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
$c/= :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
== :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
$c== :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
ReadPrec BatchDisassociateClientDeviceFromCoreDevice
Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
ReadS [BatchDisassociateClientDeviceFromCoreDevice]
(Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice)
-> ReadS [BatchDisassociateClientDeviceFromCoreDevice]
-> ReadPrec BatchDisassociateClientDeviceFromCoreDevice
-> ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
-> Read BatchDisassociateClientDeviceFromCoreDevice
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
$creadListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
readPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDevice
$creadPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDevice
readList :: ReadS [BatchDisassociateClientDeviceFromCoreDevice]
$creadList :: ReadS [BatchDisassociateClientDeviceFromCoreDevice]
readsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
$creadsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
Prelude.Read, Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
[BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
BatchDisassociateClientDeviceFromCoreDevice -> String
(Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS)
-> (BatchDisassociateClientDeviceFromCoreDevice -> String)
-> ([BatchDisassociateClientDeviceFromCoreDevice] -> ShowS)
-> Show BatchDisassociateClientDeviceFromCoreDevice
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
$cshowList :: [BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
show :: BatchDisassociateClientDeviceFromCoreDevice -> String
$cshow :: BatchDisassociateClientDeviceFromCoreDevice -> String
showsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
$cshowsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
Prelude.Show, (forall x.
BatchDisassociateClientDeviceFromCoreDevice
-> Rep BatchDisassociateClientDeviceFromCoreDevice x)
-> (forall x.
Rep BatchDisassociateClientDeviceFromCoreDevice x
-> BatchDisassociateClientDeviceFromCoreDevice)
-> Generic BatchDisassociateClientDeviceFromCoreDevice
forall x.
Rep BatchDisassociateClientDeviceFromCoreDevice x
-> BatchDisassociateClientDeviceFromCoreDevice
forall x.
BatchDisassociateClientDeviceFromCoreDevice
-> Rep BatchDisassociateClientDeviceFromCoreDevice x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateClientDeviceFromCoreDevice x
-> BatchDisassociateClientDeviceFromCoreDevice
$cfrom :: forall x.
BatchDisassociateClientDeviceFromCoreDevice
-> Rep BatchDisassociateClientDeviceFromCoreDevice x
Prelude.Generic)
newBatchDisassociateClientDeviceFromCoreDevice ::
Prelude.Text ->
BatchDisassociateClientDeviceFromCoreDevice
newBatchDisassociateClientDeviceFromCoreDevice :: Text -> BatchDisassociateClientDeviceFromCoreDevice
newBatchDisassociateClientDeviceFromCoreDevice
Text
pCoreDeviceThingName_ =
BatchDisassociateClientDeviceFromCoreDevice' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> Text -> BatchDisassociateClientDeviceFromCoreDevice
BatchDisassociateClientDeviceFromCoreDevice'
{ $sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries =
Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
forall a. Maybe a
Prelude.Nothing,
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: Text
coreDeviceThingName =
Text
pCoreDeviceThingName_
}
batchDisassociateClientDeviceFromCoreDevice_entries :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDevice (Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
batchDisassociateClientDeviceFromCoreDevice_entries :: (Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)))
-> BatchDisassociateClientDeviceFromCoreDevice
-> f BatchDisassociateClientDeviceFromCoreDevice
batchDisassociateClientDeviceFromCoreDevice_entries = (BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
-> (BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> BatchDisassociateClientDeviceFromCoreDevice)
-> Lens
BatchDisassociateClientDeviceFromCoreDevice
BatchDisassociateClientDeviceFromCoreDevice
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries} -> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries) (\s :: BatchDisassociateClientDeviceFromCoreDevice
s@BatchDisassociateClientDeviceFromCoreDevice' {} Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
a -> BatchDisassociateClientDeviceFromCoreDevice
s {$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries = Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
a} :: BatchDisassociateClientDeviceFromCoreDevice) ((Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)))
-> BatchDisassociateClientDeviceFromCoreDevice
-> f BatchDisassociateClientDeviceFromCoreDevice)
-> ((Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)))
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)))
-> (Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)))
-> BatchDisassociateClientDeviceFromCoreDevice
-> f BatchDisassociateClientDeviceFromCoreDevice
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> Iso
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
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
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDevice Prelude.Text
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName :: (Text -> f Text)
-> BatchDisassociateClientDeviceFromCoreDevice
-> f BatchDisassociateClientDeviceFromCoreDevice
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName = (BatchDisassociateClientDeviceFromCoreDevice -> Text)
-> (BatchDisassociateClientDeviceFromCoreDevice
-> Text -> BatchDisassociateClientDeviceFromCoreDevice)
-> Lens
BatchDisassociateClientDeviceFromCoreDevice
BatchDisassociateClientDeviceFromCoreDevice
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDevice' {Text
coreDeviceThingName :: Text
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
coreDeviceThingName} -> Text
coreDeviceThingName) (\s :: BatchDisassociateClientDeviceFromCoreDevice
s@BatchDisassociateClientDeviceFromCoreDevice' {} Text
a -> BatchDisassociateClientDeviceFromCoreDevice
s {$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: Text
coreDeviceThingName = Text
a} :: BatchDisassociateClientDeviceFromCoreDevice)
instance
Core.AWSRequest
BatchDisassociateClientDeviceFromCoreDevice
where
type
AWSResponse
BatchDisassociateClientDeviceFromCoreDevice =
BatchDisassociateClientDeviceFromCoreDeviceResponse
request :: BatchDisassociateClientDeviceFromCoreDevice
-> Request BatchDisassociateClientDeviceFromCoreDevice
request = Service
-> BatchDisassociateClientDeviceFromCoreDevice
-> Request BatchDisassociateClientDeviceFromCoreDevice
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchDisassociateClientDeviceFromCoreDevice
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateClientDeviceFromCoreDevice)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse BatchDisassociateClientDeviceFromCoreDevice))
-> Logger
-> Service
-> Proxy BatchDisassociateClientDeviceFromCoreDevice
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateClientDeviceFromCoreDevice)))
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 (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse
BatchDisassociateClientDeviceFromCoreDeviceResponse'
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> Either
String
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
-> Either
String (Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either
String
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errorEntries")
Either
String (Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> Either String Int
-> Either
String BatchDisassociateClientDeviceFromCoreDeviceResponse
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
BatchDisassociateClientDeviceFromCoreDevice
instance
Prelude.NFData
BatchDisassociateClientDeviceFromCoreDevice
instance
Core.ToHeaders
BatchDisassociateClientDeviceFromCoreDevice
where
toHeaders :: BatchDisassociateClientDeviceFromCoreDevice -> ResponseHeaders
toHeaders =
ResponseHeaders
-> BatchDisassociateClientDeviceFromCoreDevice -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
BatchDisassociateClientDeviceFromCoreDevice
where
toJSON :: BatchDisassociateClientDeviceFromCoreDevice -> Value
toJSON
BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"entries" Text
-> NonEmpty DisassociateClientDeviceFromCoreDeviceEntry -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry -> Pair)
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries]
)
instance
Core.ToPath
BatchDisassociateClientDeviceFromCoreDevice
where
toPath :: BatchDisassociateClientDeviceFromCoreDevice -> ByteString
toPath
BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/v2/coreDevices/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
coreDeviceThingName,
ByteString
"/disassociateClientDevices"
]
instance
Core.ToQuery
BatchDisassociateClientDeviceFromCoreDevice
where
toQuery :: BatchDisassociateClientDeviceFromCoreDevice -> QueryString
toQuery = QueryString
-> BatchDisassociateClientDeviceFromCoreDevice -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchDisassociateClientDeviceFromCoreDeviceResponse = BatchDisassociateClientDeviceFromCoreDeviceResponse'
{
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries :: Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry),
BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
(BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool)
-> (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool)
-> Eq BatchDisassociateClientDeviceFromCoreDeviceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
$c/= :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
== :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
$c== :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
(Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
-> ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
-> ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
-> Read BatchDisassociateClientDeviceFromCoreDeviceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
$creadListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
readPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
$creadPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
readList :: ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
$creadList :: ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
readsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
$creadsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
Prelude.Read, Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
[BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
(Int
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS)
-> (BatchDisassociateClientDeviceFromCoreDeviceResponse -> String)
-> ([BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS)
-> Show BatchDisassociateClientDeviceFromCoreDeviceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
$cshowList :: [BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
show :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
$cshow :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
showsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
$cshowsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
Prelude.Show, (forall x.
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x)
-> (forall x.
Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
-> BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> Generic BatchDisassociateClientDeviceFromCoreDeviceResponse
forall x.
Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
forall x.
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
$cfrom :: forall x.
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
Prelude.Generic)
newBatchDisassociateClientDeviceFromCoreDeviceResponse ::
Prelude.Int ->
BatchDisassociateClientDeviceFromCoreDeviceResponse
newBatchDisassociateClientDeviceFromCoreDeviceResponse :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse
newBatchDisassociateClientDeviceFromCoreDeviceResponse
Int
pHttpStatus_ =
BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse
BatchDisassociateClientDeviceFromCoreDeviceResponse'
{ $sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries =
Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDeviceResponse (Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries :: (Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)))
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
-> f BatchDisassociateClientDeviceFromCoreDeviceResponse
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries = (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
-> (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> Lens
BatchDisassociateClientDeviceFromCoreDeviceResponse
BatchDisassociateClientDeviceFromCoreDeviceResponse
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDeviceResponse' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
$sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries} -> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries) (\s :: BatchDisassociateClientDeviceFromCoreDeviceResponse
s@BatchDisassociateClientDeviceFromCoreDeviceResponse' {} Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
a -> BatchDisassociateClientDeviceFromCoreDeviceResponse
s {$sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
errorEntries = Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
a} :: BatchDisassociateClientDeviceFromCoreDeviceResponse) ((Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)))
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
-> f BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> ((Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)))
-> Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)))
-> (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> f (Maybe
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)))
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
-> f BatchDisassociateClientDeviceFromCoreDeviceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
-> Iso
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry))
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
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
(NonEmpty DisassociateClientDeviceFromCoreDeviceErrorEntry)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDeviceResponse Prelude.Int
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus :: (Int -> f Int)
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
-> f BatchDisassociateClientDeviceFromCoreDeviceResponse
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus = (BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int)
-> (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse)
-> Lens
BatchDisassociateClientDeviceFromCoreDeviceResponse
BatchDisassociateClientDeviceFromCoreDeviceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDeviceResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDisassociateClientDeviceFromCoreDeviceResponse
s@BatchDisassociateClientDeviceFromCoreDeviceResponse' {} Int
a -> BatchDisassociateClientDeviceFromCoreDeviceResponse
s {$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Int
httpStatus = Int
a} :: BatchDisassociateClientDeviceFromCoreDeviceResponse)
instance
Prelude.NFData
BatchDisassociateClientDeviceFromCoreDeviceResponse