{-# 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.Wisdom.Types.ContentStatus
-- 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.Wisdom.Types.ContentStatus
  ( ContentStatus
      ( ..,
        ContentStatus_ACTIVE,
        ContentStatus_CREATE_FAILED,
        ContentStatus_CREATE_IN_PROGRESS,
        ContentStatus_DELETED,
        ContentStatus_DELETE_FAILED,
        ContentStatus_DELETE_IN_PROGRESS,
        ContentStatus_UPDATE_FAILED
      ),
  )
where

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

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

pattern ContentStatus_ACTIVE :: ContentStatus
pattern $bContentStatus_ACTIVE :: ContentStatus
$mContentStatus_ACTIVE :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_ACTIVE = ContentStatus' "ACTIVE"

pattern ContentStatus_CREATE_FAILED :: ContentStatus
pattern $bContentStatus_CREATE_FAILED :: ContentStatus
$mContentStatus_CREATE_FAILED :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_CREATE_FAILED = ContentStatus' "CREATE_FAILED"

pattern ContentStatus_CREATE_IN_PROGRESS :: ContentStatus
pattern $bContentStatus_CREATE_IN_PROGRESS :: ContentStatus
$mContentStatus_CREATE_IN_PROGRESS :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_CREATE_IN_PROGRESS = ContentStatus' "CREATE_IN_PROGRESS"

pattern ContentStatus_DELETED :: ContentStatus
pattern $bContentStatus_DELETED :: ContentStatus
$mContentStatus_DELETED :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_DELETED = ContentStatus' "DELETED"

pattern ContentStatus_DELETE_FAILED :: ContentStatus
pattern $bContentStatus_DELETE_FAILED :: ContentStatus
$mContentStatus_DELETE_FAILED :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_DELETE_FAILED = ContentStatus' "DELETE_FAILED"

pattern ContentStatus_DELETE_IN_PROGRESS :: ContentStatus
pattern $bContentStatus_DELETE_IN_PROGRESS :: ContentStatus
$mContentStatus_DELETE_IN_PROGRESS :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_DELETE_IN_PROGRESS = ContentStatus' "DELETE_IN_PROGRESS"

pattern ContentStatus_UPDATE_FAILED :: ContentStatus
pattern $bContentStatus_UPDATE_FAILED :: ContentStatus
$mContentStatus_UPDATE_FAILED :: forall r. ContentStatus -> (Void# -> r) -> (Void# -> r) -> r
ContentStatus_UPDATE_FAILED = ContentStatus' "UPDATE_FAILED"

{-# COMPLETE
  ContentStatus_ACTIVE,
  ContentStatus_CREATE_FAILED,
  ContentStatus_CREATE_IN_PROGRESS,
  ContentStatus_DELETED,
  ContentStatus_DELETE_FAILED,
  ContentStatus_DELETE_IN_PROGRESS,
  ContentStatus_UPDATE_FAILED,
  ContentStatus'
  #-}