{-# 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.CatalogItemClass
-- 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.CatalogItemClass
  ( CatalogItemClass
      ( ..,
        CatalogItemClass_RACK,
        CatalogItemClass_SERVER
      ),
  )
where

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

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

pattern CatalogItemClass_RACK :: CatalogItemClass
pattern $bCatalogItemClass_RACK :: CatalogItemClass
$mCatalogItemClass_RACK :: forall {r}. CatalogItemClass -> ((# #) -> r) -> ((# #) -> r) -> r
CatalogItemClass_RACK = CatalogItemClass' "RACK"

pattern CatalogItemClass_SERVER :: CatalogItemClass
pattern $bCatalogItemClass_SERVER :: CatalogItemClass
$mCatalogItemClass_SERVER :: forall {r}. CatalogItemClass -> ((# #) -> r) -> ((# #) -> r) -> r
CatalogItemClass_SERVER = CatalogItemClass' "SERVER"

{-# COMPLETE
  CatalogItemClass_RACK,
  CatalogItemClass_SERVER,
  CatalogItemClass'
  #-}