{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SQS.Types.ChangeMessageVisibilityBatchRequestEntry where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ChangeMessageVisibilityBatchRequestEntry = ChangeMessageVisibilityBatchRequestEntry'
{
ChangeMessageVisibilityBatchRequestEntry -> Maybe Int
visibilityTimeout :: Prelude.Maybe Prelude.Int,
ChangeMessageVisibilityBatchRequestEntry -> Text
id :: Prelude.Text,
ChangeMessageVisibilityBatchRequestEntry -> Text
receiptHandle :: Prelude.Text
}
deriving (ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool
(ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool)
-> (ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool)
-> Eq ChangeMessageVisibilityBatchRequestEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool
$c/= :: ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool
== :: ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool
$c== :: ChangeMessageVisibilityBatchRequestEntry
-> ChangeMessageVisibilityBatchRequestEntry -> Bool
Prelude.Eq, ReadPrec [ChangeMessageVisibilityBatchRequestEntry]
ReadPrec ChangeMessageVisibilityBatchRequestEntry
Int -> ReadS ChangeMessageVisibilityBatchRequestEntry
ReadS [ChangeMessageVisibilityBatchRequestEntry]
(Int -> ReadS ChangeMessageVisibilityBatchRequestEntry)
-> ReadS [ChangeMessageVisibilityBatchRequestEntry]
-> ReadPrec ChangeMessageVisibilityBatchRequestEntry
-> ReadPrec [ChangeMessageVisibilityBatchRequestEntry]
-> Read ChangeMessageVisibilityBatchRequestEntry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChangeMessageVisibilityBatchRequestEntry]
$creadListPrec :: ReadPrec [ChangeMessageVisibilityBatchRequestEntry]
readPrec :: ReadPrec ChangeMessageVisibilityBatchRequestEntry
$creadPrec :: ReadPrec ChangeMessageVisibilityBatchRequestEntry
readList :: ReadS [ChangeMessageVisibilityBatchRequestEntry]
$creadList :: ReadS [ChangeMessageVisibilityBatchRequestEntry]
readsPrec :: Int -> ReadS ChangeMessageVisibilityBatchRequestEntry
$creadsPrec :: Int -> ReadS ChangeMessageVisibilityBatchRequestEntry
Prelude.Read, Int -> ChangeMessageVisibilityBatchRequestEntry -> ShowS
[ChangeMessageVisibilityBatchRequestEntry] -> ShowS
ChangeMessageVisibilityBatchRequestEntry -> String
(Int -> ChangeMessageVisibilityBatchRequestEntry -> ShowS)
-> (ChangeMessageVisibilityBatchRequestEntry -> String)
-> ([ChangeMessageVisibilityBatchRequestEntry] -> ShowS)
-> Show ChangeMessageVisibilityBatchRequestEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChangeMessageVisibilityBatchRequestEntry] -> ShowS
$cshowList :: [ChangeMessageVisibilityBatchRequestEntry] -> ShowS
show :: ChangeMessageVisibilityBatchRequestEntry -> String
$cshow :: ChangeMessageVisibilityBatchRequestEntry -> String
showsPrec :: Int -> ChangeMessageVisibilityBatchRequestEntry -> ShowS
$cshowsPrec :: Int -> ChangeMessageVisibilityBatchRequestEntry -> ShowS
Prelude.Show, (forall x.
ChangeMessageVisibilityBatchRequestEntry
-> Rep ChangeMessageVisibilityBatchRequestEntry x)
-> (forall x.
Rep ChangeMessageVisibilityBatchRequestEntry x
-> ChangeMessageVisibilityBatchRequestEntry)
-> Generic ChangeMessageVisibilityBatchRequestEntry
forall x.
Rep ChangeMessageVisibilityBatchRequestEntry x
-> ChangeMessageVisibilityBatchRequestEntry
forall x.
ChangeMessageVisibilityBatchRequestEntry
-> Rep ChangeMessageVisibilityBatchRequestEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChangeMessageVisibilityBatchRequestEntry x
-> ChangeMessageVisibilityBatchRequestEntry
$cfrom :: forall x.
ChangeMessageVisibilityBatchRequestEntry
-> Rep ChangeMessageVisibilityBatchRequestEntry x
Prelude.Generic)
newChangeMessageVisibilityBatchRequestEntry ::
Prelude.Text ->
Prelude.Text ->
ChangeMessageVisibilityBatchRequestEntry
newChangeMessageVisibilityBatchRequestEntry :: Text -> Text -> ChangeMessageVisibilityBatchRequestEntry
newChangeMessageVisibilityBatchRequestEntry
Text
pId_
Text
pReceiptHandle_ =
ChangeMessageVisibilityBatchRequestEntry' :: Maybe Int
-> Text -> Text -> ChangeMessageVisibilityBatchRequestEntry
ChangeMessageVisibilityBatchRequestEntry'
{ $sel:visibilityTimeout:ChangeMessageVisibilityBatchRequestEntry' :: Maybe Int
visibilityTimeout =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:id:ChangeMessageVisibilityBatchRequestEntry' :: Text
id = Text
pId_,
$sel:receiptHandle:ChangeMessageVisibilityBatchRequestEntry' :: Text
receiptHandle = Text
pReceiptHandle_
}
changeMessageVisibilityBatchRequestEntry_visibilityTimeout :: Lens.Lens' ChangeMessageVisibilityBatchRequestEntry (Prelude.Maybe Prelude.Int)
changeMessageVisibilityBatchRequestEntry_visibilityTimeout :: (Maybe Int -> f (Maybe Int))
-> ChangeMessageVisibilityBatchRequestEntry
-> f ChangeMessageVisibilityBatchRequestEntry
changeMessageVisibilityBatchRequestEntry_visibilityTimeout = (ChangeMessageVisibilityBatchRequestEntry -> Maybe Int)
-> (ChangeMessageVisibilityBatchRequestEntry
-> Maybe Int -> ChangeMessageVisibilityBatchRequestEntry)
-> Lens
ChangeMessageVisibilityBatchRequestEntry
ChangeMessageVisibilityBatchRequestEntry
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeMessageVisibilityBatchRequestEntry' {Maybe Int
visibilityTimeout :: Maybe Int
$sel:visibilityTimeout:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Maybe Int
visibilityTimeout} -> Maybe Int
visibilityTimeout) (\s :: ChangeMessageVisibilityBatchRequestEntry
s@ChangeMessageVisibilityBatchRequestEntry' {} Maybe Int
a -> ChangeMessageVisibilityBatchRequestEntry
s {$sel:visibilityTimeout:ChangeMessageVisibilityBatchRequestEntry' :: Maybe Int
visibilityTimeout = Maybe Int
a} :: ChangeMessageVisibilityBatchRequestEntry)
changeMessageVisibilityBatchRequestEntry_id :: Lens.Lens' ChangeMessageVisibilityBatchRequestEntry Prelude.Text
changeMessageVisibilityBatchRequestEntry_id :: (Text -> f Text)
-> ChangeMessageVisibilityBatchRequestEntry
-> f ChangeMessageVisibilityBatchRequestEntry
changeMessageVisibilityBatchRequestEntry_id = (ChangeMessageVisibilityBatchRequestEntry -> Text)
-> (ChangeMessageVisibilityBatchRequestEntry
-> Text -> ChangeMessageVisibilityBatchRequestEntry)
-> Lens
ChangeMessageVisibilityBatchRequestEntry
ChangeMessageVisibilityBatchRequestEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeMessageVisibilityBatchRequestEntry' {Text
id :: Text
$sel:id:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Text
id} -> Text
id) (\s :: ChangeMessageVisibilityBatchRequestEntry
s@ChangeMessageVisibilityBatchRequestEntry' {} Text
a -> ChangeMessageVisibilityBatchRequestEntry
s {$sel:id:ChangeMessageVisibilityBatchRequestEntry' :: Text
id = Text
a} :: ChangeMessageVisibilityBatchRequestEntry)
changeMessageVisibilityBatchRequestEntry_receiptHandle :: Lens.Lens' ChangeMessageVisibilityBatchRequestEntry Prelude.Text
changeMessageVisibilityBatchRequestEntry_receiptHandle :: (Text -> f Text)
-> ChangeMessageVisibilityBatchRequestEntry
-> f ChangeMessageVisibilityBatchRequestEntry
changeMessageVisibilityBatchRequestEntry_receiptHandle = (ChangeMessageVisibilityBatchRequestEntry -> Text)
-> (ChangeMessageVisibilityBatchRequestEntry
-> Text -> ChangeMessageVisibilityBatchRequestEntry)
-> Lens
ChangeMessageVisibilityBatchRequestEntry
ChangeMessageVisibilityBatchRequestEntry
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChangeMessageVisibilityBatchRequestEntry' {Text
receiptHandle :: Text
$sel:receiptHandle:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Text
receiptHandle} -> Text
receiptHandle) (\s :: ChangeMessageVisibilityBatchRequestEntry
s@ChangeMessageVisibilityBatchRequestEntry' {} Text
a -> ChangeMessageVisibilityBatchRequestEntry
s {$sel:receiptHandle:ChangeMessageVisibilityBatchRequestEntry' :: Text
receiptHandle = Text
a} :: ChangeMessageVisibilityBatchRequestEntry)
instance
Prelude.Hashable
ChangeMessageVisibilityBatchRequestEntry
instance
Prelude.NFData
ChangeMessageVisibilityBatchRequestEntry
instance
Core.ToQuery
ChangeMessageVisibilityBatchRequestEntry
where
toQuery :: ChangeMessageVisibilityBatchRequestEntry -> QueryString
toQuery ChangeMessageVisibilityBatchRequestEntry' {Maybe Int
Text
receiptHandle :: Text
id :: Text
visibilityTimeout :: Maybe Int
$sel:receiptHandle:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Text
$sel:id:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Text
$sel:visibilityTimeout:ChangeMessageVisibilityBatchRequestEntry' :: ChangeMessageVisibilityBatchRequestEntry -> Maybe Int
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"VisibilityTimeout" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
visibilityTimeout,
ByteString
"Id" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
id,
ByteString
"ReceiptHandle" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
receiptHandle
]