{-# 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.DataShareStatusForConsumer
-- 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.DataShareStatusForConsumer
  ( DataShareStatusForConsumer
      ( ..,
        DataShareStatusForConsumer_ACTIVE,
        DataShareStatusForConsumer_AVAILABLE
      ),
  )
where

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

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

pattern DataShareStatusForConsumer_ACTIVE :: DataShareStatusForConsumer
pattern $bDataShareStatusForConsumer_ACTIVE :: DataShareStatusForConsumer
$mDataShareStatusForConsumer_ACTIVE :: forall r.
DataShareStatusForConsumer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForConsumer_ACTIVE = DataShareStatusForConsumer' "ACTIVE"

pattern DataShareStatusForConsumer_AVAILABLE :: DataShareStatusForConsumer
pattern $bDataShareStatusForConsumer_AVAILABLE :: DataShareStatusForConsumer
$mDataShareStatusForConsumer_AVAILABLE :: forall r.
DataShareStatusForConsumer -> (Void# -> r) -> (Void# -> r) -> r
DataShareStatusForConsumer_AVAILABLE = DataShareStatusForConsumer' "AVAILABLE"

{-# COMPLETE
  DataShareStatusForConsumer_ACTIVE,
  DataShareStatusForConsumer_AVAILABLE,
  DataShareStatusForConsumer'
  #-}