{-# 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.DataShareStatusForProducer
-- 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.DataShareStatusForProducer
  ( DataShareStatusForProducer
      ( ..,
        DataShareStatusForProducer_ACTIVE,
        DataShareStatusForProducer_AUTHORIZED,
        DataShareStatusForProducer_DEAUTHORIZED,
        DataShareStatusForProducer_PENDING_AUTHORIZATION,
        DataShareStatusForProducer_REJECTED
      ),
  )
where

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

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

pattern DataShareStatusForProducer_ACTIVE :: DataShareStatusForProducer
pattern $bDataShareStatusForProducer_ACTIVE :: DataShareStatusForProducer
$mDataShareStatusForProducer_ACTIVE :: forall r.
DataShareStatusForProducer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForProducer_ACTIVE = DataShareStatusForProducer' "ACTIVE"

pattern DataShareStatusForProducer_AUTHORIZED :: DataShareStatusForProducer
pattern $bDataShareStatusForProducer_AUTHORIZED :: DataShareStatusForProducer
$mDataShareStatusForProducer_AUTHORIZED :: forall r.
DataShareStatusForProducer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForProducer_AUTHORIZED = DataShareStatusForProducer' "AUTHORIZED"

pattern DataShareStatusForProducer_DEAUTHORIZED :: DataShareStatusForProducer
pattern $bDataShareStatusForProducer_DEAUTHORIZED :: DataShareStatusForProducer
$mDataShareStatusForProducer_DEAUTHORIZED :: forall r.
DataShareStatusForProducer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForProducer_DEAUTHORIZED = DataShareStatusForProducer' "DEAUTHORIZED"

pattern DataShareStatusForProducer_PENDING_AUTHORIZATION :: DataShareStatusForProducer
pattern $bDataShareStatusForProducer_PENDING_AUTHORIZATION :: DataShareStatusForProducer
$mDataShareStatusForProducer_PENDING_AUTHORIZATION :: forall r.
DataShareStatusForProducer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForProducer_PENDING_AUTHORIZATION = DataShareStatusForProducer' "PENDING_AUTHORIZATION"

pattern DataShareStatusForProducer_REJECTED :: DataShareStatusForProducer
pattern $bDataShareStatusForProducer_REJECTED :: DataShareStatusForProducer
$mDataShareStatusForProducer_REJECTED :: forall r.
DataShareStatusForProducer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForProducer_REJECTED = DataShareStatusForProducer' "REJECTED"

{-# COMPLETE
  DataShareStatusForProducer_ACTIVE,
  DataShareStatusForProducer_AUTHORIZED,
  DataShareStatusForProducer_DEAUTHORIZED,
  DataShareStatusForProducer_PENDING_AUTHORIZATION,
  DataShareStatusForProducer_REJECTED,
  DataShareStatusForProducer'
  #-}