{-# 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.Inspector2.Types.FreeTrialInfoErrorCode
-- 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.Inspector2.Types.FreeTrialInfoErrorCode
  ( FreeTrialInfoErrorCode
      ( ..,
        FreeTrialInfoErrorCode_ACCESS_DENIED,
        FreeTrialInfoErrorCode_INTERNAL_ERROR
      ),
  )
where

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

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

pattern FreeTrialInfoErrorCode_ACCESS_DENIED :: FreeTrialInfoErrorCode
pattern $bFreeTrialInfoErrorCode_ACCESS_DENIED :: FreeTrialInfoErrorCode
$mFreeTrialInfoErrorCode_ACCESS_DENIED :: forall {r}.
FreeTrialInfoErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
FreeTrialInfoErrorCode_ACCESS_DENIED = FreeTrialInfoErrorCode' "ACCESS_DENIED"

pattern FreeTrialInfoErrorCode_INTERNAL_ERROR :: FreeTrialInfoErrorCode
pattern $bFreeTrialInfoErrorCode_INTERNAL_ERROR :: FreeTrialInfoErrorCode
$mFreeTrialInfoErrorCode_INTERNAL_ERROR :: forall {r}.
FreeTrialInfoErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
FreeTrialInfoErrorCode_INTERNAL_ERROR = FreeTrialInfoErrorCode' "INTERNAL_ERROR"

{-# COMPLETE
  FreeTrialInfoErrorCode_ACCESS_DENIED,
  FreeTrialInfoErrorCode_INTERNAL_ERROR,
  FreeTrialInfoErrorCode'
  #-}