{-# 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.LicenseManager.Types.LicenseStatus
-- 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.LicenseManager.Types.LicenseStatus
  ( LicenseStatus
      ( ..,
        LicenseStatus_AVAILABLE,
        LicenseStatus_DEACTIVATED,
        LicenseStatus_DELETED,
        LicenseStatus_EXPIRED,
        LicenseStatus_PENDING_AVAILABLE,
        LicenseStatus_PENDING_DELETE,
        LicenseStatus_SUSPENDED
      ),
  )
where

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

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

pattern LicenseStatus_AVAILABLE :: LicenseStatus
pattern $bLicenseStatus_AVAILABLE :: LicenseStatus
$mLicenseStatus_AVAILABLE :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_AVAILABLE = LicenseStatus' "AVAILABLE"

pattern LicenseStatus_DEACTIVATED :: LicenseStatus
pattern $bLicenseStatus_DEACTIVATED :: LicenseStatus
$mLicenseStatus_DEACTIVATED :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_DEACTIVATED = LicenseStatus' "DEACTIVATED"

pattern LicenseStatus_DELETED :: LicenseStatus
pattern $bLicenseStatus_DELETED :: LicenseStatus
$mLicenseStatus_DELETED :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_DELETED = LicenseStatus' "DELETED"

pattern LicenseStatus_EXPIRED :: LicenseStatus
pattern $bLicenseStatus_EXPIRED :: LicenseStatus
$mLicenseStatus_EXPIRED :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_EXPIRED = LicenseStatus' "EXPIRED"

pattern LicenseStatus_PENDING_AVAILABLE :: LicenseStatus
pattern $bLicenseStatus_PENDING_AVAILABLE :: LicenseStatus
$mLicenseStatus_PENDING_AVAILABLE :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_PENDING_AVAILABLE = LicenseStatus' "PENDING_AVAILABLE"

pattern LicenseStatus_PENDING_DELETE :: LicenseStatus
pattern $bLicenseStatus_PENDING_DELETE :: LicenseStatus
$mLicenseStatus_PENDING_DELETE :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_PENDING_DELETE = LicenseStatus' "PENDING_DELETE"

pattern LicenseStatus_SUSPENDED :: LicenseStatus
pattern $bLicenseStatus_SUSPENDED :: LicenseStatus
$mLicenseStatus_SUSPENDED :: forall r. LicenseStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseStatus_SUSPENDED = LicenseStatus' "SUSPENDED"

{-# COMPLETE
  LicenseStatus_AVAILABLE,
  LicenseStatus_DEACTIVATED,
  LicenseStatus_DELETED,
  LicenseStatus_EXPIRED,
  LicenseStatus_PENDING_AVAILABLE,
  LicenseStatus_PENDING_DELETE,
  LicenseStatus_SUSPENDED,
  LicenseStatus'
  #-}