{-# 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.Redshift.Types.PartnerIntegrationStatus
-- 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.Redshift.Types.PartnerIntegrationStatus
  ( PartnerIntegrationStatus
      ( ..,
        PartnerIntegrationStatus_Active,
        PartnerIntegrationStatus_ConnectionFailure,
        PartnerIntegrationStatus_Inactive,
        PartnerIntegrationStatus_RuntimeFailure
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal

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

pattern PartnerIntegrationStatus_Active :: PartnerIntegrationStatus
pattern $bPartnerIntegrationStatus_Active :: PartnerIntegrationStatus
$mPartnerIntegrationStatus_Active :: forall r.
PartnerIntegrationStatus -> (Void# -> r) -> (Void# -> r) -> r
PartnerIntegrationStatus_Active = PartnerIntegrationStatus' "Active"

pattern PartnerIntegrationStatus_ConnectionFailure :: PartnerIntegrationStatus
pattern $bPartnerIntegrationStatus_ConnectionFailure :: PartnerIntegrationStatus
$mPartnerIntegrationStatus_ConnectionFailure :: forall r.
PartnerIntegrationStatus -> (Void# -> r) -> (Void# -> r) -> r
PartnerIntegrationStatus_ConnectionFailure = PartnerIntegrationStatus' "ConnectionFailure"

pattern PartnerIntegrationStatus_Inactive :: PartnerIntegrationStatus
pattern $bPartnerIntegrationStatus_Inactive :: PartnerIntegrationStatus
$mPartnerIntegrationStatus_Inactive :: forall r.
PartnerIntegrationStatus -> (Void# -> r) -> (Void# -> r) -> r
PartnerIntegrationStatus_Inactive = PartnerIntegrationStatus' "Inactive"

pattern PartnerIntegrationStatus_RuntimeFailure :: PartnerIntegrationStatus
pattern $bPartnerIntegrationStatus_RuntimeFailure :: PartnerIntegrationStatus
$mPartnerIntegrationStatus_RuntimeFailure :: forall r.
PartnerIntegrationStatus -> (Void# -> r) -> (Void# -> r) -> r
PartnerIntegrationStatus_RuntimeFailure = PartnerIntegrationStatus' "RuntimeFailure"

{-# COMPLETE
  PartnerIntegrationStatus_Active,
  PartnerIntegrationStatus_ConnectionFailure,
  PartnerIntegrationStatus_Inactive,
  PartnerIntegrationStatus_RuntimeFailure,
  PartnerIntegrationStatus'
  #-}