{-# 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.StartTransactionRequest
-- 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.StartTransactionRequest where

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

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

-- |
-- Create a value of 'StartTransactionRequest' 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.
newStartTransactionRequest ::
  StartTransactionRequest
newStartTransactionRequest :: StartTransactionRequest
newStartTransactionRequest = StartTransactionRequest
StartTransactionRequest'

instance Prelude.Hashable StartTransactionRequest

instance Prelude.NFData StartTransactionRequest

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