{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QLDBSession.Types.AbortTransactionRequest
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QLDBSession.Types.AbortTransactionRequest where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Contains the details of the transaction to abort.
--
-- /See:/ 'newAbortTransactionRequest' smart constructor.
data AbortTransactionRequest = AbortTransactionRequest'
  {
  }
  deriving (AbortTransactionRequest -> AbortTransactionRequest -> Bool
(AbortTransactionRequest -> AbortTransactionRequest -> Bool)
-> (AbortTransactionRequest -> AbortTransactionRequest -> Bool)
-> Eq AbortTransactionRequest
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AbortTransactionRequest -> AbortTransactionRequest -> Bool
$c/= :: AbortTransactionRequest -> AbortTransactionRequest -> Bool
== :: AbortTransactionRequest -> AbortTransactionRequest -> Bool
$c== :: AbortTransactionRequest -> AbortTransactionRequest -> Bool
Prelude.Eq, ReadPrec [AbortTransactionRequest]
ReadPrec AbortTransactionRequest
Int -> ReadS AbortTransactionRequest
ReadS [AbortTransactionRequest]
(Int -> ReadS AbortTransactionRequest)
-> ReadS [AbortTransactionRequest]
-> ReadPrec AbortTransactionRequest
-> ReadPrec [AbortTransactionRequest]
-> Read AbortTransactionRequest
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AbortTransactionRequest]
$creadListPrec :: ReadPrec [AbortTransactionRequest]
readPrec :: ReadPrec AbortTransactionRequest
$creadPrec :: ReadPrec AbortTransactionRequest
readList :: ReadS [AbortTransactionRequest]
$creadList :: ReadS [AbortTransactionRequest]
readsPrec :: Int -> ReadS AbortTransactionRequest
$creadsPrec :: Int -> ReadS AbortTransactionRequest
Prelude.Read, Int -> AbortTransactionRequest -> ShowS
[AbortTransactionRequest] -> ShowS
AbortTransactionRequest -> String
(Int -> AbortTransactionRequest -> ShowS)
-> (AbortTransactionRequest -> String)
-> ([AbortTransactionRequest] -> ShowS)
-> Show AbortTransactionRequest
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AbortTransactionRequest] -> ShowS
$cshowList :: [AbortTransactionRequest] -> ShowS
show :: AbortTransactionRequest -> String
$cshow :: AbortTransactionRequest -> String
showsPrec :: Int -> AbortTransactionRequest -> ShowS
$cshowsPrec :: Int -> AbortTransactionRequest -> ShowS
Prelude.Show, (forall x.
 AbortTransactionRequest -> Rep AbortTransactionRequest x)
-> (forall x.
    Rep AbortTransactionRequest x -> AbortTransactionRequest)
-> Generic AbortTransactionRequest
forall x. Rep AbortTransactionRequest x -> AbortTransactionRequest
forall x. AbortTransactionRequest -> Rep AbortTransactionRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AbortTransactionRequest x -> AbortTransactionRequest
$cfrom :: forall x. AbortTransactionRequest -> Rep AbortTransactionRequest x
Prelude.Generic)

-- |
-- Create a value of 'AbortTransactionRequest' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newAbortTransactionRequest ::
  AbortTransactionRequest
newAbortTransactionRequest :: AbortTransactionRequest
newAbortTransactionRequest = AbortTransactionRequest
AbortTransactionRequest'

instance Prelude.Hashable AbortTransactionRequest

instance Prelude.NFData AbortTransactionRequest

instance Core.ToJSON AbortTransactionRequest where
  toJSON :: AbortTransactionRequest -> Value
toJSON = Value -> AbortTransactionRequest -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)