{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.QuickSight.Types.JoinType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.JoinType
  ( JoinType
      ( ..,
        JoinType_INNER,
        JoinType_LEFT,
        JoinType_OUTER,
        JoinType_RIGHT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype JoinType = JoinType'
  { JoinType -> Text
fromJoinType ::
      Data.Text
  }
  deriving stock
    ( Int -> JoinType -> ShowS
[JoinType] -> ShowS
JoinType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JoinType] -> ShowS
$cshowList :: [JoinType] -> ShowS
show :: JoinType -> String
$cshow :: JoinType -> String
showsPrec :: Int -> JoinType -> ShowS
$cshowsPrec :: Int -> JoinType -> ShowS
Prelude.Show,
      ReadPrec [JoinType]
ReadPrec JoinType
Int -> ReadS JoinType
ReadS [JoinType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JoinType]
$creadListPrec :: ReadPrec [JoinType]
readPrec :: ReadPrec JoinType
$creadPrec :: ReadPrec JoinType
readList :: ReadS [JoinType]
$creadList :: ReadS [JoinType]
readsPrec :: Int -> ReadS JoinType
$creadsPrec :: Int -> ReadS JoinType
Prelude.Read,
      JoinType -> JoinType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JoinType -> JoinType -> Bool
$c/= :: JoinType -> JoinType -> Bool
== :: JoinType -> JoinType -> Bool
$c== :: JoinType -> JoinType -> Bool
Prelude.Eq,
      Eq JoinType
JoinType -> JoinType -> Bool
JoinType -> JoinType -> Ordering
JoinType -> JoinType -> JoinType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: JoinType -> JoinType -> JoinType
$cmin :: JoinType -> JoinType -> JoinType
max :: JoinType -> JoinType -> JoinType
$cmax :: JoinType -> JoinType -> JoinType
>= :: JoinType -> JoinType -> Bool
$c>= :: JoinType -> JoinType -> Bool
> :: JoinType -> JoinType -> Bool
$c> :: JoinType -> JoinType -> Bool
<= :: JoinType -> JoinType -> Bool
$c<= :: JoinType -> JoinType -> Bool
< :: JoinType -> JoinType -> Bool
$c< :: JoinType -> JoinType -> Bool
compare :: JoinType -> JoinType -> Ordering
$ccompare :: JoinType -> JoinType -> Ordering
Prelude.Ord,
      forall x. Rep JoinType x -> JoinType
forall x. JoinType -> Rep JoinType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JoinType x -> JoinType
$cfrom :: forall x. JoinType -> Rep JoinType x
Prelude.Generic
    )
  deriving newtype
    ( Eq JoinType
Int -> JoinType -> Int
JoinType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: JoinType -> Int
$chash :: JoinType -> Int
hashWithSalt :: Int -> JoinType -> Int
$chashWithSalt :: Int -> JoinType -> Int
Prelude.Hashable,
      JoinType -> ()
forall a. (a -> ()) -> NFData a
rnf :: JoinType -> ()
$crnf :: JoinType -> ()
Prelude.NFData,
      Text -> Either String JoinType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String JoinType
$cfromText :: Text -> Either String JoinType
Data.FromText,
      JoinType -> Text
forall a. (a -> Text) -> ToText a
toText :: JoinType -> Text
$ctoText :: JoinType -> Text
Data.ToText,
      JoinType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: JoinType -> ByteString
$ctoBS :: JoinType -> ByteString
Data.ToByteString,
      JoinType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: JoinType -> ByteStringBuilder
$cbuild :: JoinType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> JoinType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> JoinType -> [Header]
$ctoHeader :: HeaderName -> JoinType -> [Header]
Data.ToHeader,
      JoinType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: JoinType -> QueryString
$ctoQuery :: JoinType -> QueryString
Data.ToQuery,
      Value -> Parser [JoinType]
Value -> Parser JoinType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [JoinType]
$cparseJSONList :: Value -> Parser [JoinType]
parseJSON :: Value -> Parser JoinType
$cparseJSON :: Value -> Parser JoinType
Data.FromJSON,
      FromJSONKeyFunction [JoinType]
FromJSONKeyFunction JoinType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [JoinType]
$cfromJSONKeyList :: FromJSONKeyFunction [JoinType]
fromJSONKey :: FromJSONKeyFunction JoinType
$cfromJSONKey :: FromJSONKeyFunction JoinType
Data.FromJSONKey,
      [JoinType] -> Encoding
[JoinType] -> Value
JoinType -> Encoding
JoinType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [JoinType] -> Encoding
$ctoEncodingList :: [JoinType] -> Encoding
toJSONList :: [JoinType] -> Value
$ctoJSONList :: [JoinType] -> Value
toEncoding :: JoinType -> Encoding
$ctoEncoding :: JoinType -> Encoding
toJSON :: JoinType -> Value
$ctoJSON :: JoinType -> Value
Data.ToJSON,
      ToJSONKeyFunction [JoinType]
ToJSONKeyFunction JoinType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [JoinType]
$ctoJSONKeyList :: ToJSONKeyFunction [JoinType]
toJSONKey :: ToJSONKeyFunction JoinType
$ctoJSONKey :: ToJSONKeyFunction JoinType
Data.ToJSONKey,
      [Node] -> Either String JoinType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String JoinType
$cparseXML :: [Node] -> Either String JoinType
Data.FromXML,
      JoinType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: JoinType -> XML
$ctoXML :: JoinType -> XML
Data.ToXML
    )

pattern JoinType_INNER :: JoinType
pattern $bJoinType_INNER :: JoinType
$mJoinType_INNER :: forall {r}. JoinType -> ((# #) -> r) -> ((# #) -> r) -> r
JoinType_INNER = JoinType' "INNER"

pattern JoinType_LEFT :: JoinType
pattern $bJoinType_LEFT :: JoinType
$mJoinType_LEFT :: forall {r}. JoinType -> ((# #) -> r) -> ((# #) -> r) -> r
JoinType_LEFT = JoinType' "LEFT"

pattern JoinType_OUTER :: JoinType
pattern $bJoinType_OUTER :: JoinType
$mJoinType_OUTER :: forall {r}. JoinType -> ((# #) -> r) -> ((# #) -> r) -> r
JoinType_OUTER = JoinType' "OUTER"

pattern JoinType_RIGHT :: JoinType
pattern $bJoinType_RIGHT :: JoinType
$mJoinType_RIGHT :: forall {r}. JoinType -> ((# #) -> r) -> ((# #) -> r) -> r
JoinType_RIGHT = JoinType' "RIGHT"

{-# COMPLETE
  JoinType_INNER,
  JoinType_LEFT,
  JoinType_OUTER,
  JoinType_RIGHT,
  JoinType'
  #-}