{-# 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.PinpointSmsVoiceV2.UpdatePhoneNumber
(
UpdatePhoneNumber (..),
newUpdatePhoneNumber,
updatePhoneNumber_deletionProtectionEnabled,
updatePhoneNumber_optOutListName,
updatePhoneNumber_selfManagedOptOutsEnabled,
updatePhoneNumber_twoWayChannelArn,
updatePhoneNumber_twoWayEnabled,
updatePhoneNumber_phoneNumberId,
UpdatePhoneNumberResponse (..),
newUpdatePhoneNumberResponse,
updatePhoneNumberResponse_createdTimestamp,
updatePhoneNumberResponse_deletionProtectionEnabled,
updatePhoneNumberResponse_isoCountryCode,
updatePhoneNumberResponse_messageType,
updatePhoneNumberResponse_monthlyLeasingPrice,
updatePhoneNumberResponse_numberCapabilities,
updatePhoneNumberResponse_numberType,
updatePhoneNumberResponse_optOutListName,
updatePhoneNumberResponse_phoneNumber,
updatePhoneNumberResponse_phoneNumberArn,
updatePhoneNumberResponse_phoneNumberId,
updatePhoneNumberResponse_selfManagedOptOutsEnabled,
updatePhoneNumberResponse_status,
updatePhoneNumberResponse_twoWayChannelArn,
updatePhoneNumberResponse_twoWayEnabled,
updatePhoneNumberResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.PinpointSmsVoiceV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdatePhoneNumber = UpdatePhoneNumber'
{
UpdatePhoneNumber -> Maybe Bool
deletionProtectionEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumber -> Maybe Text
optOutListName :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumber -> Maybe Bool
selfManagedOptOutsEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumber -> Maybe Text
twoWayChannelArn :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumber -> Maybe Bool
twoWayEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumber -> Text
phoneNumberId :: Prelude.Text
}
deriving (UpdatePhoneNumber -> UpdatePhoneNumber -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePhoneNumber -> UpdatePhoneNumber -> Bool
$c/= :: UpdatePhoneNumber -> UpdatePhoneNumber -> Bool
== :: UpdatePhoneNumber -> UpdatePhoneNumber -> Bool
$c== :: UpdatePhoneNumber -> UpdatePhoneNumber -> Bool
Prelude.Eq, ReadPrec [UpdatePhoneNumber]
ReadPrec UpdatePhoneNumber
Int -> ReadS UpdatePhoneNumber
ReadS [UpdatePhoneNumber]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePhoneNumber]
$creadListPrec :: ReadPrec [UpdatePhoneNumber]
readPrec :: ReadPrec UpdatePhoneNumber
$creadPrec :: ReadPrec UpdatePhoneNumber
readList :: ReadS [UpdatePhoneNumber]
$creadList :: ReadS [UpdatePhoneNumber]
readsPrec :: Int -> ReadS UpdatePhoneNumber
$creadsPrec :: Int -> ReadS UpdatePhoneNumber
Prelude.Read, Int -> UpdatePhoneNumber -> ShowS
[UpdatePhoneNumber] -> ShowS
UpdatePhoneNumber -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePhoneNumber] -> ShowS
$cshowList :: [UpdatePhoneNumber] -> ShowS
show :: UpdatePhoneNumber -> String
$cshow :: UpdatePhoneNumber -> String
showsPrec :: Int -> UpdatePhoneNumber -> ShowS
$cshowsPrec :: Int -> UpdatePhoneNumber -> ShowS
Prelude.Show, forall x. Rep UpdatePhoneNumber x -> UpdatePhoneNumber
forall x. UpdatePhoneNumber -> Rep UpdatePhoneNumber x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdatePhoneNumber x -> UpdatePhoneNumber
$cfrom :: forall x. UpdatePhoneNumber -> Rep UpdatePhoneNumber x
Prelude.Generic)
newUpdatePhoneNumber ::
Prelude.Text ->
UpdatePhoneNumber
newUpdatePhoneNumber :: Text -> UpdatePhoneNumber
newUpdatePhoneNumber Text
pPhoneNumberId_ =
UpdatePhoneNumber'
{ $sel:deletionProtectionEnabled:UpdatePhoneNumber' :: Maybe Bool
deletionProtectionEnabled =
forall a. Maybe a
Prelude.Nothing,
$sel:optOutListName:UpdatePhoneNumber' :: Maybe Text
optOutListName = forall a. Maybe a
Prelude.Nothing,
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: Maybe Bool
selfManagedOptOutsEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:twoWayChannelArn:UpdatePhoneNumber' :: Maybe Text
twoWayChannelArn = forall a. Maybe a
Prelude.Nothing,
$sel:twoWayEnabled:UpdatePhoneNumber' :: Maybe Bool
twoWayEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:phoneNumberId:UpdatePhoneNumber' :: Text
phoneNumberId = Text
pPhoneNumberId_
}
updatePhoneNumber_deletionProtectionEnabled :: Lens.Lens' UpdatePhoneNumber (Prelude.Maybe Prelude.Bool)
updatePhoneNumber_deletionProtectionEnabled :: Lens' UpdatePhoneNumber (Maybe Bool)
updatePhoneNumber_deletionProtectionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Maybe Bool
deletionProtectionEnabled :: Maybe Bool
$sel:deletionProtectionEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
deletionProtectionEnabled} -> Maybe Bool
deletionProtectionEnabled) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Maybe Bool
a -> UpdatePhoneNumber
s {$sel:deletionProtectionEnabled:UpdatePhoneNumber' :: Maybe Bool
deletionProtectionEnabled = Maybe Bool
a} :: UpdatePhoneNumber)
updatePhoneNumber_optOutListName :: Lens.Lens' UpdatePhoneNumber (Prelude.Maybe Prelude.Text)
updatePhoneNumber_optOutListName :: Lens' UpdatePhoneNumber (Maybe Text)
updatePhoneNumber_optOutListName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Maybe Text
optOutListName :: Maybe Text
$sel:optOutListName:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
optOutListName} -> Maybe Text
optOutListName) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Maybe Text
a -> UpdatePhoneNumber
s {$sel:optOutListName:UpdatePhoneNumber' :: Maybe Text
optOutListName = Maybe Text
a} :: UpdatePhoneNumber)
updatePhoneNumber_selfManagedOptOutsEnabled :: Lens.Lens' UpdatePhoneNumber (Prelude.Maybe Prelude.Bool)
updatePhoneNumber_selfManagedOptOutsEnabled :: Lens' UpdatePhoneNumber (Maybe Bool)
updatePhoneNumber_selfManagedOptOutsEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Maybe Bool
selfManagedOptOutsEnabled :: Maybe Bool
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
selfManagedOptOutsEnabled} -> Maybe Bool
selfManagedOptOutsEnabled) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Maybe Bool
a -> UpdatePhoneNumber
s {$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: Maybe Bool
selfManagedOptOutsEnabled = Maybe Bool
a} :: UpdatePhoneNumber)
updatePhoneNumber_twoWayChannelArn :: Lens.Lens' UpdatePhoneNumber (Prelude.Maybe Prelude.Text)
updatePhoneNumber_twoWayChannelArn :: Lens' UpdatePhoneNumber (Maybe Text)
updatePhoneNumber_twoWayChannelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Maybe Text
twoWayChannelArn :: Maybe Text
$sel:twoWayChannelArn:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
twoWayChannelArn} -> Maybe Text
twoWayChannelArn) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Maybe Text
a -> UpdatePhoneNumber
s {$sel:twoWayChannelArn:UpdatePhoneNumber' :: Maybe Text
twoWayChannelArn = Maybe Text
a} :: UpdatePhoneNumber)
updatePhoneNumber_twoWayEnabled :: Lens.Lens' UpdatePhoneNumber (Prelude.Maybe Prelude.Bool)
updatePhoneNumber_twoWayEnabled :: Lens' UpdatePhoneNumber (Maybe Bool)
updatePhoneNumber_twoWayEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Maybe Bool
twoWayEnabled :: Maybe Bool
$sel:twoWayEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
twoWayEnabled} -> Maybe Bool
twoWayEnabled) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Maybe Bool
a -> UpdatePhoneNumber
s {$sel:twoWayEnabled:UpdatePhoneNumber' :: Maybe Bool
twoWayEnabled = Maybe Bool
a} :: UpdatePhoneNumber)
updatePhoneNumber_phoneNumberId :: Lens.Lens' UpdatePhoneNumber Prelude.Text
updatePhoneNumber_phoneNumberId :: Lens' UpdatePhoneNumber Text
updatePhoneNumber_phoneNumberId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumber' {Text
phoneNumberId :: Text
$sel:phoneNumberId:UpdatePhoneNumber' :: UpdatePhoneNumber -> Text
phoneNumberId} -> Text
phoneNumberId) (\s :: UpdatePhoneNumber
s@UpdatePhoneNumber' {} Text
a -> UpdatePhoneNumber
s {$sel:phoneNumberId:UpdatePhoneNumber' :: Text
phoneNumberId = Text
a} :: UpdatePhoneNumber)
instance Core.AWSRequest UpdatePhoneNumber where
type
AWSResponse UpdatePhoneNumber =
UpdatePhoneNumberResponse
request :: (Service -> Service)
-> UpdatePhoneNumber -> Request UpdatePhoneNumber
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdatePhoneNumber
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdatePhoneNumber)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe MessageType
-> Maybe Text
-> Maybe (NonEmpty NumberCapability)
-> Maybe NumberType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe NumberStatus
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdatePhoneNumberResponse
UpdatePhoneNumberResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreatedTimestamp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DeletionProtectionEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"IsoCountryCode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MessageType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MonthlyLeasingPrice")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NumberCapabilities")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NumberType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OptOutListName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PhoneNumber")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PhoneNumberArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PhoneNumberId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SelfManagedOptOutsEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TwoWayChannelArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TwoWayEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdatePhoneNumber where
hashWithSalt :: Int -> UpdatePhoneNumber -> Int
hashWithSalt Int
_salt UpdatePhoneNumber' {Maybe Bool
Maybe Text
Text
phoneNumberId :: Text
twoWayEnabled :: Maybe Bool
twoWayChannelArn :: Maybe Text
selfManagedOptOutsEnabled :: Maybe Bool
optOutListName :: Maybe Text
deletionProtectionEnabled :: Maybe Bool
$sel:phoneNumberId:UpdatePhoneNumber' :: UpdatePhoneNumber -> Text
$sel:twoWayEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:twoWayChannelArn:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:optOutListName:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:deletionProtectionEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deletionProtectionEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
optOutListName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
selfManagedOptOutsEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
twoWayChannelArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
twoWayEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
phoneNumberId
instance Prelude.NFData UpdatePhoneNumber where
rnf :: UpdatePhoneNumber -> ()
rnf UpdatePhoneNumber' {Maybe Bool
Maybe Text
Text
phoneNumberId :: Text
twoWayEnabled :: Maybe Bool
twoWayChannelArn :: Maybe Text
selfManagedOptOutsEnabled :: Maybe Bool
optOutListName :: Maybe Text
deletionProtectionEnabled :: Maybe Bool
$sel:phoneNumberId:UpdatePhoneNumber' :: UpdatePhoneNumber -> Text
$sel:twoWayEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:twoWayChannelArn:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:optOutListName:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:deletionProtectionEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deletionProtectionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optOutListName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
selfManagedOptOutsEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
twoWayChannelArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
twoWayEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
phoneNumberId
instance Data.ToHeaders UpdatePhoneNumber where
toHeaders :: UpdatePhoneNumber -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"PinpointSMSVoiceV2.UpdatePhoneNumber" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdatePhoneNumber where
toJSON :: UpdatePhoneNumber -> Value
toJSON UpdatePhoneNumber' {Maybe Bool
Maybe Text
Text
phoneNumberId :: Text
twoWayEnabled :: Maybe Bool
twoWayChannelArn :: Maybe Text
selfManagedOptOutsEnabled :: Maybe Bool
optOutListName :: Maybe Text
deletionProtectionEnabled :: Maybe Bool
$sel:phoneNumberId:UpdatePhoneNumber' :: UpdatePhoneNumber -> Text
$sel:twoWayEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:twoWayChannelArn:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
$sel:optOutListName:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Text
$sel:deletionProtectionEnabled:UpdatePhoneNumber' :: UpdatePhoneNumber -> Maybe Bool
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"DeletionProtectionEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
deletionProtectionEnabled,
(Key
"OptOutListName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
optOutListName,
(Key
"SelfManagedOptOutsEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
selfManagedOptOutsEnabled,
(Key
"TwoWayChannelArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
twoWayChannelArn,
(Key
"TwoWayEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
twoWayEnabled,
forall a. a -> Maybe a
Prelude.Just
(Key
"PhoneNumberId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
phoneNumberId)
]
)
instance Data.ToPath UpdatePhoneNumber where
toPath :: UpdatePhoneNumber -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdatePhoneNumber where
toQuery :: UpdatePhoneNumber -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdatePhoneNumberResponse = UpdatePhoneNumberResponse'
{
UpdatePhoneNumberResponse -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Data.POSIX,
UpdatePhoneNumberResponse -> Maybe Bool
deletionProtectionEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumberResponse -> Maybe Text
isoCountryCode :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe MessageType
messageType :: Prelude.Maybe MessageType,
UpdatePhoneNumberResponse -> Maybe Text
monthlyLeasingPrice :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe (NonEmpty NumberCapability)
numberCapabilities :: Prelude.Maybe (Prelude.NonEmpty NumberCapability),
UpdatePhoneNumberResponse -> Maybe NumberType
numberType :: Prelude.Maybe NumberType,
UpdatePhoneNumberResponse -> Maybe Text
optOutListName :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe Text
phoneNumber :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe Text
phoneNumberArn :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe Text
phoneNumberId :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe Bool
selfManagedOptOutsEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumberResponse -> Maybe NumberStatus
status :: Prelude.Maybe NumberStatus,
UpdatePhoneNumberResponse -> Maybe Text
twoWayChannelArn :: Prelude.Maybe Prelude.Text,
UpdatePhoneNumberResponse -> Maybe Bool
twoWayEnabled :: Prelude.Maybe Prelude.Bool,
UpdatePhoneNumberResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdatePhoneNumberResponse -> UpdatePhoneNumberResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePhoneNumberResponse -> UpdatePhoneNumberResponse -> Bool
$c/= :: UpdatePhoneNumberResponse -> UpdatePhoneNumberResponse -> Bool
== :: UpdatePhoneNumberResponse -> UpdatePhoneNumberResponse -> Bool
$c== :: UpdatePhoneNumberResponse -> UpdatePhoneNumberResponse -> Bool
Prelude.Eq, ReadPrec [UpdatePhoneNumberResponse]
ReadPrec UpdatePhoneNumberResponse
Int -> ReadS UpdatePhoneNumberResponse
ReadS [UpdatePhoneNumberResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePhoneNumberResponse]
$creadListPrec :: ReadPrec [UpdatePhoneNumberResponse]
readPrec :: ReadPrec UpdatePhoneNumberResponse
$creadPrec :: ReadPrec UpdatePhoneNumberResponse
readList :: ReadS [UpdatePhoneNumberResponse]
$creadList :: ReadS [UpdatePhoneNumberResponse]
readsPrec :: Int -> ReadS UpdatePhoneNumberResponse
$creadsPrec :: Int -> ReadS UpdatePhoneNumberResponse
Prelude.Read, Int -> UpdatePhoneNumberResponse -> ShowS
[UpdatePhoneNumberResponse] -> ShowS
UpdatePhoneNumberResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePhoneNumberResponse] -> ShowS
$cshowList :: [UpdatePhoneNumberResponse] -> ShowS
show :: UpdatePhoneNumberResponse -> String
$cshow :: UpdatePhoneNumberResponse -> String
showsPrec :: Int -> UpdatePhoneNumberResponse -> ShowS
$cshowsPrec :: Int -> UpdatePhoneNumberResponse -> ShowS
Prelude.Show, forall x.
Rep UpdatePhoneNumberResponse x -> UpdatePhoneNumberResponse
forall x.
UpdatePhoneNumberResponse -> Rep UpdatePhoneNumberResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdatePhoneNumberResponse x -> UpdatePhoneNumberResponse
$cfrom :: forall x.
UpdatePhoneNumberResponse -> Rep UpdatePhoneNumberResponse x
Prelude.Generic)
newUpdatePhoneNumberResponse ::
Prelude.Int ->
UpdatePhoneNumberResponse
newUpdatePhoneNumberResponse :: Int -> UpdatePhoneNumberResponse
newUpdatePhoneNumberResponse Int
pHttpStatus_ =
UpdatePhoneNumberResponse'
{ $sel:createdTimestamp:UpdatePhoneNumberResponse' :: Maybe POSIX
createdTimestamp =
forall a. Maybe a
Prelude.Nothing,
$sel:deletionProtectionEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
deletionProtectionEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:isoCountryCode:UpdatePhoneNumberResponse' :: Maybe Text
isoCountryCode = forall a. Maybe a
Prelude.Nothing,
$sel:messageType:UpdatePhoneNumberResponse' :: Maybe MessageType
messageType = forall a. Maybe a
Prelude.Nothing,
$sel:monthlyLeasingPrice:UpdatePhoneNumberResponse' :: Maybe Text
monthlyLeasingPrice = forall a. Maybe a
Prelude.Nothing,
$sel:numberCapabilities:UpdatePhoneNumberResponse' :: Maybe (NonEmpty NumberCapability)
numberCapabilities = forall a. Maybe a
Prelude.Nothing,
$sel:numberType:UpdatePhoneNumberResponse' :: Maybe NumberType
numberType = forall a. Maybe a
Prelude.Nothing,
$sel:optOutListName:UpdatePhoneNumberResponse' :: Maybe Text
optOutListName = forall a. Maybe a
Prelude.Nothing,
$sel:phoneNumber:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumber = forall a. Maybe a
Prelude.Nothing,
$sel:phoneNumberArn:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumberArn = forall a. Maybe a
Prelude.Nothing,
$sel:phoneNumberId:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumberId = forall a. Maybe a
Prelude.Nothing,
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
selfManagedOptOutsEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:status:UpdatePhoneNumberResponse' :: Maybe NumberStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:twoWayChannelArn:UpdatePhoneNumberResponse' :: Maybe Text
twoWayChannelArn = forall a. Maybe a
Prelude.Nothing,
$sel:twoWayEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
twoWayEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdatePhoneNumberResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updatePhoneNumberResponse_createdTimestamp :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.UTCTime)
updatePhoneNumberResponse_createdTimestamp :: Lens' UpdatePhoneNumberResponse (Maybe UTCTime)
updatePhoneNumberResponse_createdTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe POSIX
a -> UpdatePhoneNumberResponse
s {$sel:createdTimestamp:UpdatePhoneNumberResponse' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: UpdatePhoneNumberResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updatePhoneNumberResponse_deletionProtectionEnabled :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Bool)
updatePhoneNumberResponse_deletionProtectionEnabled :: Lens' UpdatePhoneNumberResponse (Maybe Bool)
updatePhoneNumberResponse_deletionProtectionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Bool
deletionProtectionEnabled :: Maybe Bool
$sel:deletionProtectionEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
deletionProtectionEnabled} -> Maybe Bool
deletionProtectionEnabled) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Bool
a -> UpdatePhoneNumberResponse
s {$sel:deletionProtectionEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
deletionProtectionEnabled = Maybe Bool
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_isoCountryCode :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_isoCountryCode :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_isoCountryCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
isoCountryCode :: Maybe Text
$sel:isoCountryCode:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
isoCountryCode} -> Maybe Text
isoCountryCode) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:isoCountryCode:UpdatePhoneNumberResponse' :: Maybe Text
isoCountryCode = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_messageType :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe MessageType)
updatePhoneNumberResponse_messageType :: Lens' UpdatePhoneNumberResponse (Maybe MessageType)
updatePhoneNumberResponse_messageType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe MessageType
messageType :: Maybe MessageType
$sel:messageType:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe MessageType
messageType} -> Maybe MessageType
messageType) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe MessageType
a -> UpdatePhoneNumberResponse
s {$sel:messageType:UpdatePhoneNumberResponse' :: Maybe MessageType
messageType = Maybe MessageType
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_monthlyLeasingPrice :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_monthlyLeasingPrice :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_monthlyLeasingPrice = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
monthlyLeasingPrice :: Maybe Text
$sel:monthlyLeasingPrice:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
monthlyLeasingPrice} -> Maybe Text
monthlyLeasingPrice) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:monthlyLeasingPrice:UpdatePhoneNumberResponse' :: Maybe Text
monthlyLeasingPrice = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_numberCapabilities :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe (Prelude.NonEmpty NumberCapability))
updatePhoneNumberResponse_numberCapabilities :: Lens' UpdatePhoneNumberResponse (Maybe (NonEmpty NumberCapability))
updatePhoneNumberResponse_numberCapabilities = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe (NonEmpty NumberCapability)
numberCapabilities :: Maybe (NonEmpty NumberCapability)
$sel:numberCapabilities:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe (NonEmpty NumberCapability)
numberCapabilities} -> Maybe (NonEmpty NumberCapability)
numberCapabilities) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe (NonEmpty NumberCapability)
a -> UpdatePhoneNumberResponse
s {$sel:numberCapabilities:UpdatePhoneNumberResponse' :: Maybe (NonEmpty NumberCapability)
numberCapabilities = Maybe (NonEmpty NumberCapability)
a} :: UpdatePhoneNumberResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updatePhoneNumberResponse_numberType :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe NumberType)
updatePhoneNumberResponse_numberType :: Lens' UpdatePhoneNumberResponse (Maybe NumberType)
updatePhoneNumberResponse_numberType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe NumberType
numberType :: Maybe NumberType
$sel:numberType:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe NumberType
numberType} -> Maybe NumberType
numberType) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe NumberType
a -> UpdatePhoneNumberResponse
s {$sel:numberType:UpdatePhoneNumberResponse' :: Maybe NumberType
numberType = Maybe NumberType
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_optOutListName :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_optOutListName :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_optOutListName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
optOutListName :: Maybe Text
$sel:optOutListName:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
optOutListName} -> Maybe Text
optOutListName) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:optOutListName:UpdatePhoneNumberResponse' :: Maybe Text
optOutListName = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_phoneNumber :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_phoneNumber :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_phoneNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
phoneNumber :: Maybe Text
$sel:phoneNumber:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
phoneNumber} -> Maybe Text
phoneNumber) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:phoneNumber:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumber = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_phoneNumberArn :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_phoneNumberArn :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_phoneNumberArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
phoneNumberArn :: Maybe Text
$sel:phoneNumberArn:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
phoneNumberArn} -> Maybe Text
phoneNumberArn) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:phoneNumberArn:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumberArn = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_phoneNumberId :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_phoneNumberId :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_phoneNumberId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
phoneNumberId :: Maybe Text
$sel:phoneNumberId:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
phoneNumberId} -> Maybe Text
phoneNumberId) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:phoneNumberId:UpdatePhoneNumberResponse' :: Maybe Text
phoneNumberId = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_selfManagedOptOutsEnabled :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Bool)
updatePhoneNumberResponse_selfManagedOptOutsEnabled :: Lens' UpdatePhoneNumberResponse (Maybe Bool)
updatePhoneNumberResponse_selfManagedOptOutsEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Bool
selfManagedOptOutsEnabled :: Maybe Bool
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
selfManagedOptOutsEnabled} -> Maybe Bool
selfManagedOptOutsEnabled) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Bool
a -> UpdatePhoneNumberResponse
s {$sel:selfManagedOptOutsEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
selfManagedOptOutsEnabled = Maybe Bool
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_status :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe NumberStatus)
updatePhoneNumberResponse_status :: Lens' UpdatePhoneNumberResponse (Maybe NumberStatus)
updatePhoneNumberResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe NumberStatus
status :: Maybe NumberStatus
$sel:status:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe NumberStatus
status} -> Maybe NumberStatus
status) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe NumberStatus
a -> UpdatePhoneNumberResponse
s {$sel:status:UpdatePhoneNumberResponse' :: Maybe NumberStatus
status = Maybe NumberStatus
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_twoWayChannelArn :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Text)
updatePhoneNumberResponse_twoWayChannelArn :: Lens' UpdatePhoneNumberResponse (Maybe Text)
updatePhoneNumberResponse_twoWayChannelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Text
twoWayChannelArn :: Maybe Text
$sel:twoWayChannelArn:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
twoWayChannelArn} -> Maybe Text
twoWayChannelArn) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Text
a -> UpdatePhoneNumberResponse
s {$sel:twoWayChannelArn:UpdatePhoneNumberResponse' :: Maybe Text
twoWayChannelArn = Maybe Text
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_twoWayEnabled :: Lens.Lens' UpdatePhoneNumberResponse (Prelude.Maybe Prelude.Bool)
updatePhoneNumberResponse_twoWayEnabled :: Lens' UpdatePhoneNumberResponse (Maybe Bool)
updatePhoneNumberResponse_twoWayEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Maybe Bool
twoWayEnabled :: Maybe Bool
$sel:twoWayEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
twoWayEnabled} -> Maybe Bool
twoWayEnabled) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Maybe Bool
a -> UpdatePhoneNumberResponse
s {$sel:twoWayEnabled:UpdatePhoneNumberResponse' :: Maybe Bool
twoWayEnabled = Maybe Bool
a} :: UpdatePhoneNumberResponse)
updatePhoneNumberResponse_httpStatus :: Lens.Lens' UpdatePhoneNumberResponse Prelude.Int
updatePhoneNumberResponse_httpStatus :: Lens' UpdatePhoneNumberResponse Int
updatePhoneNumberResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePhoneNumberResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdatePhoneNumberResponse
s@UpdatePhoneNumberResponse' {} Int
a -> UpdatePhoneNumberResponse
s {$sel:httpStatus:UpdatePhoneNumberResponse' :: Int
httpStatus = Int
a} :: UpdatePhoneNumberResponse)
instance Prelude.NFData UpdatePhoneNumberResponse where
rnf :: UpdatePhoneNumberResponse -> ()
rnf UpdatePhoneNumberResponse' {Int
Maybe Bool
Maybe (NonEmpty NumberCapability)
Maybe Text
Maybe POSIX
Maybe MessageType
Maybe NumberStatus
Maybe NumberType
httpStatus :: Int
twoWayEnabled :: Maybe Bool
twoWayChannelArn :: Maybe Text
status :: Maybe NumberStatus
selfManagedOptOutsEnabled :: Maybe Bool
phoneNumberId :: Maybe Text
phoneNumberArn :: Maybe Text
phoneNumber :: Maybe Text
optOutListName :: Maybe Text
numberType :: Maybe NumberType
numberCapabilities :: Maybe (NonEmpty NumberCapability)
monthlyLeasingPrice :: Maybe Text
messageType :: Maybe MessageType
isoCountryCode :: Maybe Text
deletionProtectionEnabled :: Maybe Bool
createdTimestamp :: Maybe POSIX
$sel:httpStatus:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Int
$sel:twoWayEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
$sel:twoWayChannelArn:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:status:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe NumberStatus
$sel:selfManagedOptOutsEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
$sel:phoneNumberId:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:phoneNumberArn:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:phoneNumber:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:optOutListName:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:numberType:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe NumberType
$sel:numberCapabilities:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe (NonEmpty NumberCapability)
$sel:monthlyLeasingPrice:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:messageType:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe MessageType
$sel:isoCountryCode:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Text
$sel:deletionProtectionEnabled:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe Bool
$sel:createdTimestamp:UpdatePhoneNumberResponse' :: UpdatePhoneNumberResponse -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deletionProtectionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
isoCountryCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MessageType
messageType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
monthlyLeasingPrice
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty NumberCapability)
numberCapabilities
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NumberType
numberType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optOutListName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
phoneNumber
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
phoneNumberArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
phoneNumberId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
selfManagedOptOutsEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NumberStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
twoWayChannelArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
twoWayEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus