{-# 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.FreeTrialType
-- 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.FreeTrialType
  ( FreeTrialType
      ( ..,
        FreeTrialType_EC2,
        FreeTrialType_ECR,
        FreeTrialType_LAMBDA
      ),
  )
where

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

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

pattern FreeTrialType_EC2 :: FreeTrialType
pattern $bFreeTrialType_EC2 :: FreeTrialType
$mFreeTrialType_EC2 :: forall {r}. FreeTrialType -> ((# #) -> r) -> ((# #) -> r) -> r
FreeTrialType_EC2 = FreeTrialType' "EC2"

pattern FreeTrialType_ECR :: FreeTrialType
pattern $bFreeTrialType_ECR :: FreeTrialType
$mFreeTrialType_ECR :: forall {r}. FreeTrialType -> ((# #) -> r) -> ((# #) -> r) -> r
FreeTrialType_ECR = FreeTrialType' "ECR"

pattern FreeTrialType_LAMBDA :: FreeTrialType
pattern $bFreeTrialType_LAMBDA :: FreeTrialType
$mFreeTrialType_LAMBDA :: forall {r}. FreeTrialType -> ((# #) -> r) -> ((# #) -> r) -> r
FreeTrialType_LAMBDA = FreeTrialType' "LAMBDA"

{-# COMPLETE
  FreeTrialType_EC2,
  FreeTrialType_ECR,
  FreeTrialType_LAMBDA,
  FreeTrialType'
  #-}