{-# 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.Outposts.Types.CatalogItemStatus
-- 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.Outposts.Types.CatalogItemStatus
  ( CatalogItemStatus
      ( ..,
        CatalogItemStatus_AVAILABLE,
        CatalogItemStatus_DISCONTINUED
      ),
  )
where

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

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

pattern CatalogItemStatus_AVAILABLE :: CatalogItemStatus
pattern $bCatalogItemStatus_AVAILABLE :: CatalogItemStatus
$mCatalogItemStatus_AVAILABLE :: forall {r}. CatalogItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CatalogItemStatus_AVAILABLE = CatalogItemStatus' "AVAILABLE"

pattern CatalogItemStatus_DISCONTINUED :: CatalogItemStatus
pattern $bCatalogItemStatus_DISCONTINUED :: CatalogItemStatus
$mCatalogItemStatus_DISCONTINUED :: forall {r}. CatalogItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CatalogItemStatus_DISCONTINUED = CatalogItemStatus' "DISCONTINUED"

{-# COMPLETE
  CatalogItemStatus_AVAILABLE,
  CatalogItemStatus_DISCONTINUED,
  CatalogItemStatus'
  #-}