{-# 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-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.QuickSight.Types.JoinType
  ( JoinType
      ( ..,
        JoinType_INNER,
        JoinType_LEFT,
        JoinType_OUTER,
        JoinType_RIGHT
      ),
  )
where

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

newtype JoinType = JoinType'
  { JoinType -> Text
fromJoinType ::
      Core.Text
  }
  deriving stock
    ( Int -> JoinType -> ShowS
[JoinType] -> ShowS
JoinType -> String
(Int -> JoinType -> ShowS)
-> (JoinType -> String) -> ([JoinType] -> ShowS) -> Show JoinType
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]
(Int -> ReadS JoinType)
-> ReadS [JoinType]
-> ReadPrec JoinType
-> ReadPrec [JoinType]
-> Read 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
(JoinType -> JoinType -> Bool)
-> (JoinType -> JoinType -> Bool) -> Eq JoinType
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
Eq JoinType
-> (JoinType -> JoinType -> Ordering)
-> (JoinType -> JoinType -> Bool)
-> (JoinType -> JoinType -> Bool)
-> (JoinType -> JoinType -> Bool)
-> (JoinType -> JoinType -> Bool)
-> (JoinType -> JoinType -> JoinType)
-> (JoinType -> JoinType -> JoinType)
-> Ord 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
$cp1Ord :: Eq JoinType
Prelude.Ord,
      (forall x. JoinType -> Rep JoinType x)
-> (forall x. Rep JoinType x -> JoinType) -> Generic JoinType
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
    ( Int -> JoinType -> Int
JoinType -> Int
(Int -> JoinType -> Int) -> (JoinType -> Int) -> Hashable JoinType
forall 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 -> ()
(JoinType -> ()) -> NFData JoinType
forall a. (a -> ()) -> NFData a
rnf :: JoinType -> ()
$crnf :: JoinType -> ()
Prelude.NFData,
      Text -> Either String JoinType
(Text -> Either String JoinType) -> FromText JoinType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String JoinType
$cfromText :: Text -> Either String JoinType
Core.FromText,
      JoinType -> Text
(JoinType -> Text) -> ToText JoinType
forall a. (a -> Text) -> ToText a
toText :: JoinType -> Text
$ctoText :: JoinType -> Text
Core.ToText,
      JoinType -> ByteString
(JoinType -> ByteString) -> ToByteString JoinType
forall a. (a -> ByteString) -> ToByteString a
toBS :: JoinType -> ByteString
$ctoBS :: JoinType -> ByteString
Core.ToByteString,
      JoinType -> ByteStringBuilder
(JoinType -> ByteStringBuilder) -> ToLog JoinType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: JoinType -> ByteStringBuilder
$cbuild :: JoinType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> JoinType -> [Header]
(HeaderName -> JoinType -> [Header]) -> ToHeader JoinType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> JoinType -> [Header]
$ctoHeader :: HeaderName -> JoinType -> [Header]
Core.ToHeader,
      JoinType -> QueryString
(JoinType -> QueryString) -> ToQuery JoinType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: JoinType -> QueryString
$ctoQuery :: JoinType -> QueryString
Core.ToQuery,
      Value -> Parser [JoinType]
Value -> Parser JoinType
(Value -> Parser JoinType)
-> (Value -> Parser [JoinType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [JoinType]
FromJSONKeyFunction JoinType
FromJSONKeyFunction JoinType
-> FromJSONKeyFunction [JoinType] -> FromJSONKey JoinType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [JoinType]
$cfromJSONKeyList :: FromJSONKeyFunction [JoinType]
fromJSONKey :: FromJSONKeyFunction JoinType
$cfromJSONKey :: FromJSONKeyFunction JoinType
Core.FromJSONKey,
      [JoinType] -> Encoding
[JoinType] -> Value
JoinType -> Encoding
JoinType -> Value
(JoinType -> Value)
-> (JoinType -> Encoding)
-> ([JoinType] -> Value)
-> ([JoinType] -> Encoding)
-> ToJSON JoinType
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
Core.ToJSON,
      ToJSONKeyFunction [JoinType]
ToJSONKeyFunction JoinType
ToJSONKeyFunction JoinType
-> ToJSONKeyFunction [JoinType] -> ToJSONKey JoinType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [JoinType]
$ctoJSONKeyList :: ToJSONKeyFunction [JoinType]
toJSONKey :: ToJSONKeyFunction JoinType
$ctoJSONKey :: ToJSONKeyFunction JoinType
Core.ToJSONKey,
      [Node] -> Either String JoinType
([Node] -> Either String JoinType) -> FromXML JoinType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String JoinType
$cparseXML :: [Node] -> Either String JoinType
Core.FromXML,
      JoinType -> XML
(JoinType -> XML) -> ToXML JoinType
forall a. (a -> XML) -> ToXML a
toXML :: JoinType -> XML
$ctoXML :: JoinType -> XML
Core.ToXML
    )

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

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

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

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

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