{-# 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.SMS.Types.LicenseType
-- 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.SMS.Types.LicenseType
  ( LicenseType
      ( ..,
        LicenseType_AWS,
        LicenseType_BYOL
      ),
  )
where

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

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

pattern LicenseType_AWS :: LicenseType
pattern $bLicenseType_AWS :: LicenseType
$mLicenseType_AWS :: forall {r}. LicenseType -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseType_AWS = LicenseType' "AWS"

pattern LicenseType_BYOL :: LicenseType
pattern $bLicenseType_BYOL :: LicenseType
$mLicenseType_BYOL :: forall {r}. LicenseType -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseType_BYOL = LicenseType' "BYOL"

{-# COMPLETE
  LicenseType_AWS,
  LicenseType_BYOL,
  LicenseType'
  #-}