{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal

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

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

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

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

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

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

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