{-# 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.WorkMail.ListMobileDeviceAccessOverrides
(
ListMobileDeviceAccessOverrides (..),
newListMobileDeviceAccessOverrides,
listMobileDeviceAccessOverrides_userId,
listMobileDeviceAccessOverrides_nextToken,
listMobileDeviceAccessOverrides_deviceId,
listMobileDeviceAccessOverrides_maxResults,
listMobileDeviceAccessOverrides_organizationId,
ListMobileDeviceAccessOverridesResponse (..),
newListMobileDeviceAccessOverridesResponse,
listMobileDeviceAccessOverridesResponse_overrides,
listMobileDeviceAccessOverridesResponse_nextToken,
listMobileDeviceAccessOverridesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkMail.Types
data ListMobileDeviceAccessOverrides = ListMobileDeviceAccessOverrides'
{
ListMobileDeviceAccessOverrides -> Maybe Text
userId :: Prelude.Maybe Prelude.Text,
ListMobileDeviceAccessOverrides -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMobileDeviceAccessOverrides -> Maybe Text
deviceId :: Prelude.Maybe Prelude.Text,
ListMobileDeviceAccessOverrides -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListMobileDeviceAccessOverrides -> Text
organizationId :: Prelude.Text
}
deriving (ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool
(ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool)
-> (ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool)
-> Eq ListMobileDeviceAccessOverrides
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool
$c/= :: ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool
== :: ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool
$c== :: ListMobileDeviceAccessOverrides
-> ListMobileDeviceAccessOverrides -> Bool
Prelude.Eq, ReadPrec [ListMobileDeviceAccessOverrides]
ReadPrec ListMobileDeviceAccessOverrides
Int -> ReadS ListMobileDeviceAccessOverrides
ReadS [ListMobileDeviceAccessOverrides]
(Int -> ReadS ListMobileDeviceAccessOverrides)
-> ReadS [ListMobileDeviceAccessOverrides]
-> ReadPrec ListMobileDeviceAccessOverrides
-> ReadPrec [ListMobileDeviceAccessOverrides]
-> Read ListMobileDeviceAccessOverrides
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMobileDeviceAccessOverrides]
$creadListPrec :: ReadPrec [ListMobileDeviceAccessOverrides]
readPrec :: ReadPrec ListMobileDeviceAccessOverrides
$creadPrec :: ReadPrec ListMobileDeviceAccessOverrides
readList :: ReadS [ListMobileDeviceAccessOverrides]
$creadList :: ReadS [ListMobileDeviceAccessOverrides]
readsPrec :: Int -> ReadS ListMobileDeviceAccessOverrides
$creadsPrec :: Int -> ReadS ListMobileDeviceAccessOverrides
Prelude.Read, Int -> ListMobileDeviceAccessOverrides -> ShowS
[ListMobileDeviceAccessOverrides] -> ShowS
ListMobileDeviceAccessOverrides -> String
(Int -> ListMobileDeviceAccessOverrides -> ShowS)
-> (ListMobileDeviceAccessOverrides -> String)
-> ([ListMobileDeviceAccessOverrides] -> ShowS)
-> Show ListMobileDeviceAccessOverrides
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMobileDeviceAccessOverrides] -> ShowS
$cshowList :: [ListMobileDeviceAccessOverrides] -> ShowS
show :: ListMobileDeviceAccessOverrides -> String
$cshow :: ListMobileDeviceAccessOverrides -> String
showsPrec :: Int -> ListMobileDeviceAccessOverrides -> ShowS
$cshowsPrec :: Int -> ListMobileDeviceAccessOverrides -> ShowS
Prelude.Show, (forall x.
ListMobileDeviceAccessOverrides
-> Rep ListMobileDeviceAccessOverrides x)
-> (forall x.
Rep ListMobileDeviceAccessOverrides x
-> ListMobileDeviceAccessOverrides)
-> Generic ListMobileDeviceAccessOverrides
forall x.
Rep ListMobileDeviceAccessOverrides x
-> ListMobileDeviceAccessOverrides
forall x.
ListMobileDeviceAccessOverrides
-> Rep ListMobileDeviceAccessOverrides x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMobileDeviceAccessOverrides x
-> ListMobileDeviceAccessOverrides
$cfrom :: forall x.
ListMobileDeviceAccessOverrides
-> Rep ListMobileDeviceAccessOverrides x
Prelude.Generic)
newListMobileDeviceAccessOverrides ::
Prelude.Text ->
ListMobileDeviceAccessOverrides
newListMobileDeviceAccessOverrides :: Text -> ListMobileDeviceAccessOverrides
newListMobileDeviceAccessOverrides Text
pOrganizationId_ =
ListMobileDeviceAccessOverrides' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides'
{ $sel:userId:ListMobileDeviceAccessOverrides' :: Maybe Text
userId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListMobileDeviceAccessOverrides' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceId:ListMobileDeviceAccessOverrides' :: Maybe Text
deviceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListMobileDeviceAccessOverrides' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:organizationId:ListMobileDeviceAccessOverrides' :: Text
organizationId = Text
pOrganizationId_
}
listMobileDeviceAccessOverrides_userId :: Lens.Lens' ListMobileDeviceAccessOverrides (Prelude.Maybe Prelude.Text)
listMobileDeviceAccessOverrides_userId :: (Maybe Text -> f (Maybe Text))
-> ListMobileDeviceAccessOverrides
-> f ListMobileDeviceAccessOverrides
listMobileDeviceAccessOverrides_userId = (ListMobileDeviceAccessOverrides -> Maybe Text)
-> (ListMobileDeviceAccessOverrides
-> Maybe Text -> ListMobileDeviceAccessOverrides)
-> Lens
ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverrides' {Maybe Text
userId :: Maybe Text
$sel:userId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
userId} -> Maybe Text
userId) (\s :: ListMobileDeviceAccessOverrides
s@ListMobileDeviceAccessOverrides' {} Maybe Text
a -> ListMobileDeviceAccessOverrides
s {$sel:userId:ListMobileDeviceAccessOverrides' :: Maybe Text
userId = Maybe Text
a} :: ListMobileDeviceAccessOverrides)
listMobileDeviceAccessOverrides_nextToken :: Lens.Lens' ListMobileDeviceAccessOverrides (Prelude.Maybe Prelude.Text)
listMobileDeviceAccessOverrides_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMobileDeviceAccessOverrides
-> f ListMobileDeviceAccessOverrides
listMobileDeviceAccessOverrides_nextToken = (ListMobileDeviceAccessOverrides -> Maybe Text)
-> (ListMobileDeviceAccessOverrides
-> Maybe Text -> ListMobileDeviceAccessOverrides)
-> Lens
ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverrides' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMobileDeviceAccessOverrides
s@ListMobileDeviceAccessOverrides' {} Maybe Text
a -> ListMobileDeviceAccessOverrides
s {$sel:nextToken:ListMobileDeviceAccessOverrides' :: Maybe Text
nextToken = Maybe Text
a} :: ListMobileDeviceAccessOverrides)
listMobileDeviceAccessOverrides_deviceId :: Lens.Lens' ListMobileDeviceAccessOverrides (Prelude.Maybe Prelude.Text)
listMobileDeviceAccessOverrides_deviceId :: (Maybe Text -> f (Maybe Text))
-> ListMobileDeviceAccessOverrides
-> f ListMobileDeviceAccessOverrides
listMobileDeviceAccessOverrides_deviceId = (ListMobileDeviceAccessOverrides -> Maybe Text)
-> (ListMobileDeviceAccessOverrides
-> Maybe Text -> ListMobileDeviceAccessOverrides)
-> Lens
ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverrides' {Maybe Text
deviceId :: Maybe Text
$sel:deviceId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
deviceId} -> Maybe Text
deviceId) (\s :: ListMobileDeviceAccessOverrides
s@ListMobileDeviceAccessOverrides' {} Maybe Text
a -> ListMobileDeviceAccessOverrides
s {$sel:deviceId:ListMobileDeviceAccessOverrides' :: Maybe Text
deviceId = Maybe Text
a} :: ListMobileDeviceAccessOverrides)
listMobileDeviceAccessOverrides_maxResults :: Lens.Lens' ListMobileDeviceAccessOverrides (Prelude.Maybe Prelude.Natural)
listMobileDeviceAccessOverrides_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListMobileDeviceAccessOverrides
-> f ListMobileDeviceAccessOverrides
listMobileDeviceAccessOverrides_maxResults = (ListMobileDeviceAccessOverrides -> Maybe Natural)
-> (ListMobileDeviceAccessOverrides
-> Maybe Natural -> ListMobileDeviceAccessOverrides)
-> Lens
ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverrides' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListMobileDeviceAccessOverrides
s@ListMobileDeviceAccessOverrides' {} Maybe Natural
a -> ListMobileDeviceAccessOverrides
s {$sel:maxResults:ListMobileDeviceAccessOverrides' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListMobileDeviceAccessOverrides)
listMobileDeviceAccessOverrides_organizationId :: Lens.Lens' ListMobileDeviceAccessOverrides Prelude.Text
listMobileDeviceAccessOverrides_organizationId :: (Text -> f Text)
-> ListMobileDeviceAccessOverrides
-> f ListMobileDeviceAccessOverrides
listMobileDeviceAccessOverrides_organizationId = (ListMobileDeviceAccessOverrides -> Text)
-> (ListMobileDeviceAccessOverrides
-> Text -> ListMobileDeviceAccessOverrides)
-> Lens
ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverrides' {Text
organizationId :: Text
$sel:organizationId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Text
organizationId} -> Text
organizationId) (\s :: ListMobileDeviceAccessOverrides
s@ListMobileDeviceAccessOverrides' {} Text
a -> ListMobileDeviceAccessOverrides
s {$sel:organizationId:ListMobileDeviceAccessOverrides' :: Text
organizationId = Text
a} :: ListMobileDeviceAccessOverrides)
instance
Core.AWSRequest
ListMobileDeviceAccessOverrides
where
type
AWSResponse ListMobileDeviceAccessOverrides =
ListMobileDeviceAccessOverridesResponse
request :: ListMobileDeviceAccessOverrides
-> Request ListMobileDeviceAccessOverrides
request = Service
-> ListMobileDeviceAccessOverrides
-> Request ListMobileDeviceAccessOverrides
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListMobileDeviceAccessOverrides
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListMobileDeviceAccessOverrides)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListMobileDeviceAccessOverrides))
-> Logger
-> Service
-> Proxy ListMobileDeviceAccessOverrides
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListMobileDeviceAccessOverrides)))
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 [MobileDeviceAccessOverride]
-> Maybe Text -> Int -> ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse'
(Maybe [MobileDeviceAccessOverride]
-> Maybe Text -> Int -> ListMobileDeviceAccessOverridesResponse)
-> Either String (Maybe [MobileDeviceAccessOverride])
-> Either
String
(Maybe Text -> Int -> ListMobileDeviceAccessOverridesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [MobileDeviceAccessOverride]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Overrides" Either String (Maybe (Maybe [MobileDeviceAccessOverride]))
-> Maybe [MobileDeviceAccessOverride]
-> Either String (Maybe [MobileDeviceAccessOverride])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MobileDeviceAccessOverride]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text -> Int -> ListMobileDeviceAccessOverridesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListMobileDeviceAccessOverridesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListMobileDeviceAccessOverridesResponse)
-> Either String Int
-> Either String ListMobileDeviceAccessOverridesResponse
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
ListMobileDeviceAccessOverrides
instance
Prelude.NFData
ListMobileDeviceAccessOverrides
instance
Core.ToHeaders
ListMobileDeviceAccessOverrides
where
toHeaders :: ListMobileDeviceAccessOverrides -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListMobileDeviceAccessOverrides -> 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
"WorkMailService.ListMobileDeviceAccessOverrides" ::
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 ListMobileDeviceAccessOverrides where
toJSON :: ListMobileDeviceAccessOverrides -> Value
toJSON ListMobileDeviceAccessOverrides' {Maybe Natural
Maybe Text
Text
organizationId :: Text
maxResults :: Maybe Natural
deviceId :: Maybe Text
nextToken :: Maybe Text
userId :: Maybe Text
$sel:organizationId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Text
$sel:maxResults:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Natural
$sel:deviceId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
$sel:nextToken:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
$sel:userId:ListMobileDeviceAccessOverrides' :: ListMobileDeviceAccessOverrides -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"UserId" 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
userId,
(Text
"NextToken" 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
nextToken,
(Text
"DeviceId" 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
deviceId,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OrganizationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
organizationId)
]
)
instance Core.ToPath ListMobileDeviceAccessOverrides where
toPath :: ListMobileDeviceAccessOverrides -> ByteString
toPath = ByteString -> ListMobileDeviceAccessOverrides -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListMobileDeviceAccessOverrides where
toQuery :: ListMobileDeviceAccessOverrides -> QueryString
toQuery = QueryString -> ListMobileDeviceAccessOverrides -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListMobileDeviceAccessOverridesResponse = ListMobileDeviceAccessOverridesResponse'
{
ListMobileDeviceAccessOverridesResponse
-> Maybe [MobileDeviceAccessOverride]
overrides :: Prelude.Maybe [MobileDeviceAccessOverride],
ListMobileDeviceAccessOverridesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMobileDeviceAccessOverridesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool
(ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool)
-> (ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool)
-> Eq ListMobileDeviceAccessOverridesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool
$c/= :: ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool
== :: ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool
$c== :: ListMobileDeviceAccessOverridesResponse
-> ListMobileDeviceAccessOverridesResponse -> Bool
Prelude.Eq, ReadPrec [ListMobileDeviceAccessOverridesResponse]
ReadPrec ListMobileDeviceAccessOverridesResponse
Int -> ReadS ListMobileDeviceAccessOverridesResponse
ReadS [ListMobileDeviceAccessOverridesResponse]
(Int -> ReadS ListMobileDeviceAccessOverridesResponse)
-> ReadS [ListMobileDeviceAccessOverridesResponse]
-> ReadPrec ListMobileDeviceAccessOverridesResponse
-> ReadPrec [ListMobileDeviceAccessOverridesResponse]
-> Read ListMobileDeviceAccessOverridesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMobileDeviceAccessOverridesResponse]
$creadListPrec :: ReadPrec [ListMobileDeviceAccessOverridesResponse]
readPrec :: ReadPrec ListMobileDeviceAccessOverridesResponse
$creadPrec :: ReadPrec ListMobileDeviceAccessOverridesResponse
readList :: ReadS [ListMobileDeviceAccessOverridesResponse]
$creadList :: ReadS [ListMobileDeviceAccessOverridesResponse]
readsPrec :: Int -> ReadS ListMobileDeviceAccessOverridesResponse
$creadsPrec :: Int -> ReadS ListMobileDeviceAccessOverridesResponse
Prelude.Read, Int -> ListMobileDeviceAccessOverridesResponse -> ShowS
[ListMobileDeviceAccessOverridesResponse] -> ShowS
ListMobileDeviceAccessOverridesResponse -> String
(Int -> ListMobileDeviceAccessOverridesResponse -> ShowS)
-> (ListMobileDeviceAccessOverridesResponse -> String)
-> ([ListMobileDeviceAccessOverridesResponse] -> ShowS)
-> Show ListMobileDeviceAccessOverridesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMobileDeviceAccessOverridesResponse] -> ShowS
$cshowList :: [ListMobileDeviceAccessOverridesResponse] -> ShowS
show :: ListMobileDeviceAccessOverridesResponse -> String
$cshow :: ListMobileDeviceAccessOverridesResponse -> String
showsPrec :: Int -> ListMobileDeviceAccessOverridesResponse -> ShowS
$cshowsPrec :: Int -> ListMobileDeviceAccessOverridesResponse -> ShowS
Prelude.Show, (forall x.
ListMobileDeviceAccessOverridesResponse
-> Rep ListMobileDeviceAccessOverridesResponse x)
-> (forall x.
Rep ListMobileDeviceAccessOverridesResponse x
-> ListMobileDeviceAccessOverridesResponse)
-> Generic ListMobileDeviceAccessOverridesResponse
forall x.
Rep ListMobileDeviceAccessOverridesResponse x
-> ListMobileDeviceAccessOverridesResponse
forall x.
ListMobileDeviceAccessOverridesResponse
-> Rep ListMobileDeviceAccessOverridesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMobileDeviceAccessOverridesResponse x
-> ListMobileDeviceAccessOverridesResponse
$cfrom :: forall x.
ListMobileDeviceAccessOverridesResponse
-> Rep ListMobileDeviceAccessOverridesResponse x
Prelude.Generic)
newListMobileDeviceAccessOverridesResponse ::
Prelude.Int ->
ListMobileDeviceAccessOverridesResponse
newListMobileDeviceAccessOverridesResponse :: Int -> ListMobileDeviceAccessOverridesResponse
newListMobileDeviceAccessOverridesResponse
Int
pHttpStatus_ =
ListMobileDeviceAccessOverridesResponse' :: Maybe [MobileDeviceAccessOverride]
-> Maybe Text -> Int -> ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse'
{ $sel:overrides:ListMobileDeviceAccessOverridesResponse' :: Maybe [MobileDeviceAccessOverride]
overrides =
Maybe [MobileDeviceAccessOverride]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListMobileDeviceAccessOverridesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListMobileDeviceAccessOverridesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listMobileDeviceAccessOverridesResponse_overrides :: Lens.Lens' ListMobileDeviceAccessOverridesResponse (Prelude.Maybe [MobileDeviceAccessOverride])
listMobileDeviceAccessOverridesResponse_overrides :: (Maybe [MobileDeviceAccessOverride]
-> f (Maybe [MobileDeviceAccessOverride]))
-> ListMobileDeviceAccessOverridesResponse
-> f ListMobileDeviceAccessOverridesResponse
listMobileDeviceAccessOverridesResponse_overrides = (ListMobileDeviceAccessOverridesResponse
-> Maybe [MobileDeviceAccessOverride])
-> (ListMobileDeviceAccessOverridesResponse
-> Maybe [MobileDeviceAccessOverride]
-> ListMobileDeviceAccessOverridesResponse)
-> Lens
ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse
(Maybe [MobileDeviceAccessOverride])
(Maybe [MobileDeviceAccessOverride])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverridesResponse' {Maybe [MobileDeviceAccessOverride]
overrides :: Maybe [MobileDeviceAccessOverride]
$sel:overrides:ListMobileDeviceAccessOverridesResponse' :: ListMobileDeviceAccessOverridesResponse
-> Maybe [MobileDeviceAccessOverride]
overrides} -> Maybe [MobileDeviceAccessOverride]
overrides) (\s :: ListMobileDeviceAccessOverridesResponse
s@ListMobileDeviceAccessOverridesResponse' {} Maybe [MobileDeviceAccessOverride]
a -> ListMobileDeviceAccessOverridesResponse
s {$sel:overrides:ListMobileDeviceAccessOverridesResponse' :: Maybe [MobileDeviceAccessOverride]
overrides = Maybe [MobileDeviceAccessOverride]
a} :: ListMobileDeviceAccessOverridesResponse) ((Maybe [MobileDeviceAccessOverride]
-> f (Maybe [MobileDeviceAccessOverride]))
-> ListMobileDeviceAccessOverridesResponse
-> f ListMobileDeviceAccessOverridesResponse)
-> ((Maybe [MobileDeviceAccessOverride]
-> f (Maybe [MobileDeviceAccessOverride]))
-> Maybe [MobileDeviceAccessOverride]
-> f (Maybe [MobileDeviceAccessOverride]))
-> (Maybe [MobileDeviceAccessOverride]
-> f (Maybe [MobileDeviceAccessOverride]))
-> ListMobileDeviceAccessOverridesResponse
-> f ListMobileDeviceAccessOverridesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
-> Iso
(Maybe [MobileDeviceAccessOverride])
(Maybe [MobileDeviceAccessOverride])
(Maybe [MobileDeviceAccessOverride])
(Maybe [MobileDeviceAccessOverride])
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
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
[MobileDeviceAccessOverride]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listMobileDeviceAccessOverridesResponse_nextToken :: Lens.Lens' ListMobileDeviceAccessOverridesResponse (Prelude.Maybe Prelude.Text)
listMobileDeviceAccessOverridesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMobileDeviceAccessOverridesResponse
-> f ListMobileDeviceAccessOverridesResponse
listMobileDeviceAccessOverridesResponse_nextToken = (ListMobileDeviceAccessOverridesResponse -> Maybe Text)
-> (ListMobileDeviceAccessOverridesResponse
-> Maybe Text -> ListMobileDeviceAccessOverridesResponse)
-> Lens
ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverridesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMobileDeviceAccessOverridesResponse' :: ListMobileDeviceAccessOverridesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMobileDeviceAccessOverridesResponse
s@ListMobileDeviceAccessOverridesResponse' {} Maybe Text
a -> ListMobileDeviceAccessOverridesResponse
s {$sel:nextToken:ListMobileDeviceAccessOverridesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListMobileDeviceAccessOverridesResponse)
listMobileDeviceAccessOverridesResponse_httpStatus :: Lens.Lens' ListMobileDeviceAccessOverridesResponse Prelude.Int
listMobileDeviceAccessOverridesResponse_httpStatus :: (Int -> f Int)
-> ListMobileDeviceAccessOverridesResponse
-> f ListMobileDeviceAccessOverridesResponse
listMobileDeviceAccessOverridesResponse_httpStatus = (ListMobileDeviceAccessOverridesResponse -> Int)
-> (ListMobileDeviceAccessOverridesResponse
-> Int -> ListMobileDeviceAccessOverridesResponse)
-> Lens
ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMobileDeviceAccessOverridesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListMobileDeviceAccessOverridesResponse' :: ListMobileDeviceAccessOverridesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListMobileDeviceAccessOverridesResponse
s@ListMobileDeviceAccessOverridesResponse' {} Int
a -> ListMobileDeviceAccessOverridesResponse
s {$sel:httpStatus:ListMobileDeviceAccessOverridesResponse' :: Int
httpStatus = Int
a} :: ListMobileDeviceAccessOverridesResponse)
instance
Prelude.NFData
ListMobileDeviceAccessOverridesResponse