{-# 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.LineItemStatus
-- 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.LineItemStatus
  ( LineItemStatus
      ( ..,
        LineItemStatus_BUILDING,
        LineItemStatus_CANCELLED,
        LineItemStatus_DELIVERED,
        LineItemStatus_ERROR,
        LineItemStatus_INSTALLED,
        LineItemStatus_INSTALLING,
        LineItemStatus_PREPARING,
        LineItemStatus_SHIPPED
      ),
  )
where

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

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

pattern LineItemStatus_BUILDING :: LineItemStatus
pattern $bLineItemStatus_BUILDING :: LineItemStatus
$mLineItemStatus_BUILDING :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_BUILDING = LineItemStatus' "BUILDING"

pattern LineItemStatus_CANCELLED :: LineItemStatus
pattern $bLineItemStatus_CANCELLED :: LineItemStatus
$mLineItemStatus_CANCELLED :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_CANCELLED = LineItemStatus' "CANCELLED"

pattern LineItemStatus_DELIVERED :: LineItemStatus
pattern $bLineItemStatus_DELIVERED :: LineItemStatus
$mLineItemStatus_DELIVERED :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_DELIVERED = LineItemStatus' "DELIVERED"

pattern LineItemStatus_ERROR :: LineItemStatus
pattern $bLineItemStatus_ERROR :: LineItemStatus
$mLineItemStatus_ERROR :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_ERROR = LineItemStatus' "ERROR"

pattern LineItemStatus_INSTALLED :: LineItemStatus
pattern $bLineItemStatus_INSTALLED :: LineItemStatus
$mLineItemStatus_INSTALLED :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_INSTALLED = LineItemStatus' "INSTALLED"

pattern LineItemStatus_INSTALLING :: LineItemStatus
pattern $bLineItemStatus_INSTALLING :: LineItemStatus
$mLineItemStatus_INSTALLING :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_INSTALLING = LineItemStatus' "INSTALLING"

pattern LineItemStatus_PREPARING :: LineItemStatus
pattern $bLineItemStatus_PREPARING :: LineItemStatus
$mLineItemStatus_PREPARING :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_PREPARING = LineItemStatus' "PREPARING"

pattern LineItemStatus_SHIPPED :: LineItemStatus
pattern $bLineItemStatus_SHIPPED :: LineItemStatus
$mLineItemStatus_SHIPPED :: forall {r}. LineItemStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LineItemStatus_SHIPPED = LineItemStatus' "SHIPPED"

{-# COMPLETE
  LineItemStatus_BUILDING,
  LineItemStatus_CANCELLED,
  LineItemStatus_DELIVERED,
  LineItemStatus_ERROR,
  LineItemStatus_INSTALLED,
  LineItemStatus_INSTALLING,
  LineItemStatus_PREPARING,
  LineItemStatus_SHIPPED,
  LineItemStatus'
  #-}