{-# 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.PutMobileDeviceAccessOverride
(
PutMobileDeviceAccessOverride (..),
newPutMobileDeviceAccessOverride,
putMobileDeviceAccessOverride_description,
putMobileDeviceAccessOverride_organizationId,
putMobileDeviceAccessOverride_userId,
putMobileDeviceAccessOverride_deviceId,
putMobileDeviceAccessOverride_effect,
PutMobileDeviceAccessOverrideResponse (..),
newPutMobileDeviceAccessOverrideResponse,
putMobileDeviceAccessOverrideResponse_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 PutMobileDeviceAccessOverride = PutMobileDeviceAccessOverride'
{
PutMobileDeviceAccessOverride -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
PutMobileDeviceAccessOverride -> Text
organizationId :: Prelude.Text,
PutMobileDeviceAccessOverride -> Text
userId :: Prelude.Text,
PutMobileDeviceAccessOverride -> Text
deviceId :: Prelude.Text,
PutMobileDeviceAccessOverride -> MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
}
deriving (PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool
(PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool)
-> (PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool)
-> Eq PutMobileDeviceAccessOverride
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool
$c/= :: PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool
== :: PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool
$c== :: PutMobileDeviceAccessOverride
-> PutMobileDeviceAccessOverride -> Bool
Prelude.Eq, ReadPrec [PutMobileDeviceAccessOverride]
ReadPrec PutMobileDeviceAccessOverride
Int -> ReadS PutMobileDeviceAccessOverride
ReadS [PutMobileDeviceAccessOverride]
(Int -> ReadS PutMobileDeviceAccessOverride)
-> ReadS [PutMobileDeviceAccessOverride]
-> ReadPrec PutMobileDeviceAccessOverride
-> ReadPrec [PutMobileDeviceAccessOverride]
-> Read PutMobileDeviceAccessOverride
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutMobileDeviceAccessOverride]
$creadListPrec :: ReadPrec [PutMobileDeviceAccessOverride]
readPrec :: ReadPrec PutMobileDeviceAccessOverride
$creadPrec :: ReadPrec PutMobileDeviceAccessOverride
readList :: ReadS [PutMobileDeviceAccessOverride]
$creadList :: ReadS [PutMobileDeviceAccessOverride]
readsPrec :: Int -> ReadS PutMobileDeviceAccessOverride
$creadsPrec :: Int -> ReadS PutMobileDeviceAccessOverride
Prelude.Read, Int -> PutMobileDeviceAccessOverride -> ShowS
[PutMobileDeviceAccessOverride] -> ShowS
PutMobileDeviceAccessOverride -> String
(Int -> PutMobileDeviceAccessOverride -> ShowS)
-> (PutMobileDeviceAccessOverride -> String)
-> ([PutMobileDeviceAccessOverride] -> ShowS)
-> Show PutMobileDeviceAccessOverride
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutMobileDeviceAccessOverride] -> ShowS
$cshowList :: [PutMobileDeviceAccessOverride] -> ShowS
show :: PutMobileDeviceAccessOverride -> String
$cshow :: PutMobileDeviceAccessOverride -> String
showsPrec :: Int -> PutMobileDeviceAccessOverride -> ShowS
$cshowsPrec :: Int -> PutMobileDeviceAccessOverride -> ShowS
Prelude.Show, (forall x.
PutMobileDeviceAccessOverride
-> Rep PutMobileDeviceAccessOverride x)
-> (forall x.
Rep PutMobileDeviceAccessOverride x
-> PutMobileDeviceAccessOverride)
-> Generic PutMobileDeviceAccessOverride
forall x.
Rep PutMobileDeviceAccessOverride x
-> PutMobileDeviceAccessOverride
forall x.
PutMobileDeviceAccessOverride
-> Rep PutMobileDeviceAccessOverride x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutMobileDeviceAccessOverride x
-> PutMobileDeviceAccessOverride
$cfrom :: forall x.
PutMobileDeviceAccessOverride
-> Rep PutMobileDeviceAccessOverride x
Prelude.Generic)
newPutMobileDeviceAccessOverride ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
MobileDeviceAccessRuleEffect ->
PutMobileDeviceAccessOverride
newPutMobileDeviceAccessOverride :: Text
-> Text
-> Text
-> MobileDeviceAccessRuleEffect
-> PutMobileDeviceAccessOverride
newPutMobileDeviceAccessOverride
Text
pOrganizationId_
Text
pUserId_
Text
pDeviceId_
MobileDeviceAccessRuleEffect
pEffect_ =
PutMobileDeviceAccessOverride' :: Maybe Text
-> Text
-> Text
-> Text
-> MobileDeviceAccessRuleEffect
-> PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride'
{ $sel:description:PutMobileDeviceAccessOverride' :: Maybe Text
description =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:organizationId:PutMobileDeviceAccessOverride' :: Text
organizationId = Text
pOrganizationId_,
$sel:userId:PutMobileDeviceAccessOverride' :: Text
userId = Text
pUserId_,
$sel:deviceId:PutMobileDeviceAccessOverride' :: Text
deviceId = Text
pDeviceId_,
$sel:effect:PutMobileDeviceAccessOverride' :: MobileDeviceAccessRuleEffect
effect = MobileDeviceAccessRuleEffect
pEffect_
}
putMobileDeviceAccessOverride_description :: Lens.Lens' PutMobileDeviceAccessOverride (Prelude.Maybe Prelude.Text)
putMobileDeviceAccessOverride_description :: (Maybe Text -> f (Maybe Text))
-> PutMobileDeviceAccessOverride -> f PutMobileDeviceAccessOverride
putMobileDeviceAccessOverride_description = (PutMobileDeviceAccessOverride -> Maybe Text)
-> (PutMobileDeviceAccessOverride
-> Maybe Text -> PutMobileDeviceAccessOverride)
-> Lens
PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverride' {Maybe Text
description :: Maybe Text
$sel:description:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Maybe Text
description} -> Maybe Text
description) (\s :: PutMobileDeviceAccessOverride
s@PutMobileDeviceAccessOverride' {} Maybe Text
a -> PutMobileDeviceAccessOverride
s {$sel:description:PutMobileDeviceAccessOverride' :: Maybe Text
description = Maybe Text
a} :: PutMobileDeviceAccessOverride)
putMobileDeviceAccessOverride_organizationId :: Lens.Lens' PutMobileDeviceAccessOverride Prelude.Text
putMobileDeviceAccessOverride_organizationId :: (Text -> f Text)
-> PutMobileDeviceAccessOverride -> f PutMobileDeviceAccessOverride
putMobileDeviceAccessOverride_organizationId = (PutMobileDeviceAccessOverride -> Text)
-> (PutMobileDeviceAccessOverride
-> Text -> PutMobileDeviceAccessOverride)
-> Lens
PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverride' {Text
organizationId :: Text
$sel:organizationId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
organizationId} -> Text
organizationId) (\s :: PutMobileDeviceAccessOverride
s@PutMobileDeviceAccessOverride' {} Text
a -> PutMobileDeviceAccessOverride
s {$sel:organizationId:PutMobileDeviceAccessOverride' :: Text
organizationId = Text
a} :: PutMobileDeviceAccessOverride)
putMobileDeviceAccessOverride_userId :: Lens.Lens' PutMobileDeviceAccessOverride Prelude.Text
putMobileDeviceAccessOverride_userId :: (Text -> f Text)
-> PutMobileDeviceAccessOverride -> f PutMobileDeviceAccessOverride
putMobileDeviceAccessOverride_userId = (PutMobileDeviceAccessOverride -> Text)
-> (PutMobileDeviceAccessOverride
-> Text -> PutMobileDeviceAccessOverride)
-> Lens
PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverride' {Text
userId :: Text
$sel:userId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
userId} -> Text
userId) (\s :: PutMobileDeviceAccessOverride
s@PutMobileDeviceAccessOverride' {} Text
a -> PutMobileDeviceAccessOverride
s {$sel:userId:PutMobileDeviceAccessOverride' :: Text
userId = Text
a} :: PutMobileDeviceAccessOverride)
putMobileDeviceAccessOverride_deviceId :: Lens.Lens' PutMobileDeviceAccessOverride Prelude.Text
putMobileDeviceAccessOverride_deviceId :: (Text -> f Text)
-> PutMobileDeviceAccessOverride -> f PutMobileDeviceAccessOverride
putMobileDeviceAccessOverride_deviceId = (PutMobileDeviceAccessOverride -> Text)
-> (PutMobileDeviceAccessOverride
-> Text -> PutMobileDeviceAccessOverride)
-> Lens
PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverride' {Text
deviceId :: Text
$sel:deviceId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
deviceId} -> Text
deviceId) (\s :: PutMobileDeviceAccessOverride
s@PutMobileDeviceAccessOverride' {} Text
a -> PutMobileDeviceAccessOverride
s {$sel:deviceId:PutMobileDeviceAccessOverride' :: Text
deviceId = Text
a} :: PutMobileDeviceAccessOverride)
putMobileDeviceAccessOverride_effect :: Lens.Lens' PutMobileDeviceAccessOverride MobileDeviceAccessRuleEffect
putMobileDeviceAccessOverride_effect :: (MobileDeviceAccessRuleEffect -> f MobileDeviceAccessRuleEffect)
-> PutMobileDeviceAccessOverride -> f PutMobileDeviceAccessOverride
putMobileDeviceAccessOverride_effect = (PutMobileDeviceAccessOverride -> MobileDeviceAccessRuleEffect)
-> (PutMobileDeviceAccessOverride
-> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride)
-> Lens
PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride
MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverride' {MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
$sel:effect:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> MobileDeviceAccessRuleEffect
effect} -> MobileDeviceAccessRuleEffect
effect) (\s :: PutMobileDeviceAccessOverride
s@PutMobileDeviceAccessOverride' {} MobileDeviceAccessRuleEffect
a -> PutMobileDeviceAccessOverride
s {$sel:effect:PutMobileDeviceAccessOverride' :: MobileDeviceAccessRuleEffect
effect = MobileDeviceAccessRuleEffect
a} :: PutMobileDeviceAccessOverride)
instance
Core.AWSRequest
PutMobileDeviceAccessOverride
where
type
AWSResponse PutMobileDeviceAccessOverride =
PutMobileDeviceAccessOverrideResponse
request :: PutMobileDeviceAccessOverride
-> Request PutMobileDeviceAccessOverride
request = Service
-> PutMobileDeviceAccessOverride
-> Request PutMobileDeviceAccessOverride
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutMobileDeviceAccessOverride
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutMobileDeviceAccessOverride)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse PutMobileDeviceAccessOverride))
-> Logger
-> Service
-> Proxy PutMobileDeviceAccessOverride
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutMobileDeviceAccessOverride)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> PutMobileDeviceAccessOverrideResponse
PutMobileDeviceAccessOverrideResponse'
(Int -> PutMobileDeviceAccessOverrideResponse)
-> Either String Int
-> Either String PutMobileDeviceAccessOverrideResponse
forall (f :: * -> *) a b. Functor 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
PutMobileDeviceAccessOverride
instance Prelude.NFData PutMobileDeviceAccessOverride
instance Core.ToHeaders PutMobileDeviceAccessOverride where
toHeaders :: PutMobileDeviceAccessOverride -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutMobileDeviceAccessOverride -> 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.PutMobileDeviceAccessOverride" ::
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 PutMobileDeviceAccessOverride where
toJSON :: PutMobileDeviceAccessOverride -> Value
toJSON PutMobileDeviceAccessOverride' {Maybe Text
Text
MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
deviceId :: Text
userId :: Text
organizationId :: Text
description :: Maybe Text
$sel:effect:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> MobileDeviceAccessRuleEffect
$sel:deviceId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
$sel:userId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
$sel:organizationId:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Text
$sel:description:PutMobileDeviceAccessOverride' :: PutMobileDeviceAccessOverride -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Description" 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
description,
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DeviceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
deviceId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Effect" Text -> MobileDeviceAccessRuleEffect -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MobileDeviceAccessRuleEffect
effect)
]
)
instance Core.ToPath PutMobileDeviceAccessOverride where
toPath :: PutMobileDeviceAccessOverride -> ByteString
toPath = ByteString -> PutMobileDeviceAccessOverride -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutMobileDeviceAccessOverride where
toQuery :: PutMobileDeviceAccessOverride -> QueryString
toQuery = QueryString -> PutMobileDeviceAccessOverride -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutMobileDeviceAccessOverrideResponse = PutMobileDeviceAccessOverrideResponse'
{
PutMobileDeviceAccessOverrideResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool
(PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool)
-> (PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool)
-> Eq PutMobileDeviceAccessOverrideResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool
$c/= :: PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool
== :: PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool
$c== :: PutMobileDeviceAccessOverrideResponse
-> PutMobileDeviceAccessOverrideResponse -> Bool
Prelude.Eq, ReadPrec [PutMobileDeviceAccessOverrideResponse]
ReadPrec PutMobileDeviceAccessOverrideResponse
Int -> ReadS PutMobileDeviceAccessOverrideResponse
ReadS [PutMobileDeviceAccessOverrideResponse]
(Int -> ReadS PutMobileDeviceAccessOverrideResponse)
-> ReadS [PutMobileDeviceAccessOverrideResponse]
-> ReadPrec PutMobileDeviceAccessOverrideResponse
-> ReadPrec [PutMobileDeviceAccessOverrideResponse]
-> Read PutMobileDeviceAccessOverrideResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutMobileDeviceAccessOverrideResponse]
$creadListPrec :: ReadPrec [PutMobileDeviceAccessOverrideResponse]
readPrec :: ReadPrec PutMobileDeviceAccessOverrideResponse
$creadPrec :: ReadPrec PutMobileDeviceAccessOverrideResponse
readList :: ReadS [PutMobileDeviceAccessOverrideResponse]
$creadList :: ReadS [PutMobileDeviceAccessOverrideResponse]
readsPrec :: Int -> ReadS PutMobileDeviceAccessOverrideResponse
$creadsPrec :: Int -> ReadS PutMobileDeviceAccessOverrideResponse
Prelude.Read, Int -> PutMobileDeviceAccessOverrideResponse -> ShowS
[PutMobileDeviceAccessOverrideResponse] -> ShowS
PutMobileDeviceAccessOverrideResponse -> String
(Int -> PutMobileDeviceAccessOverrideResponse -> ShowS)
-> (PutMobileDeviceAccessOverrideResponse -> String)
-> ([PutMobileDeviceAccessOverrideResponse] -> ShowS)
-> Show PutMobileDeviceAccessOverrideResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutMobileDeviceAccessOverrideResponse] -> ShowS
$cshowList :: [PutMobileDeviceAccessOverrideResponse] -> ShowS
show :: PutMobileDeviceAccessOverrideResponse -> String
$cshow :: PutMobileDeviceAccessOverrideResponse -> String
showsPrec :: Int -> PutMobileDeviceAccessOverrideResponse -> ShowS
$cshowsPrec :: Int -> PutMobileDeviceAccessOverrideResponse -> ShowS
Prelude.Show, (forall x.
PutMobileDeviceAccessOverrideResponse
-> Rep PutMobileDeviceAccessOverrideResponse x)
-> (forall x.
Rep PutMobileDeviceAccessOverrideResponse x
-> PutMobileDeviceAccessOverrideResponse)
-> Generic PutMobileDeviceAccessOverrideResponse
forall x.
Rep PutMobileDeviceAccessOverrideResponse x
-> PutMobileDeviceAccessOverrideResponse
forall x.
PutMobileDeviceAccessOverrideResponse
-> Rep PutMobileDeviceAccessOverrideResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutMobileDeviceAccessOverrideResponse x
-> PutMobileDeviceAccessOverrideResponse
$cfrom :: forall x.
PutMobileDeviceAccessOverrideResponse
-> Rep PutMobileDeviceAccessOverrideResponse x
Prelude.Generic)
newPutMobileDeviceAccessOverrideResponse ::
Prelude.Int ->
PutMobileDeviceAccessOverrideResponse
newPutMobileDeviceAccessOverrideResponse :: Int -> PutMobileDeviceAccessOverrideResponse
newPutMobileDeviceAccessOverrideResponse Int
pHttpStatus_ =
PutMobileDeviceAccessOverrideResponse' :: Int -> PutMobileDeviceAccessOverrideResponse
PutMobileDeviceAccessOverrideResponse'
{ $sel:httpStatus:PutMobileDeviceAccessOverrideResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
putMobileDeviceAccessOverrideResponse_httpStatus :: Lens.Lens' PutMobileDeviceAccessOverrideResponse Prelude.Int
putMobileDeviceAccessOverrideResponse_httpStatus :: (Int -> f Int)
-> PutMobileDeviceAccessOverrideResponse
-> f PutMobileDeviceAccessOverrideResponse
putMobileDeviceAccessOverrideResponse_httpStatus = (PutMobileDeviceAccessOverrideResponse -> Int)
-> (PutMobileDeviceAccessOverrideResponse
-> Int -> PutMobileDeviceAccessOverrideResponse)
-> Lens
PutMobileDeviceAccessOverrideResponse
PutMobileDeviceAccessOverrideResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutMobileDeviceAccessOverrideResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutMobileDeviceAccessOverrideResponse' :: PutMobileDeviceAccessOverrideResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutMobileDeviceAccessOverrideResponse
s@PutMobileDeviceAccessOverrideResponse' {} Int
a -> PutMobileDeviceAccessOverrideResponse
s {$sel:httpStatus:PutMobileDeviceAccessOverrideResponse' :: Int
httpStatus = Int
a} :: PutMobileDeviceAccessOverrideResponse)
instance
Prelude.NFData
PutMobileDeviceAccessOverrideResponse