{-# 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.Pinpoint.Types.DimensionType
-- 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.Pinpoint.Types.DimensionType
  ( DimensionType
      ( ..,
        DimensionType_EXCLUSIVE,
        DimensionType_INCLUSIVE
      ),
  )
where

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

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

pattern DimensionType_EXCLUSIVE :: DimensionType
pattern $bDimensionType_EXCLUSIVE :: DimensionType
$mDimensionType_EXCLUSIVE :: forall {r}. DimensionType -> ((# #) -> r) -> ((# #) -> r) -> r
DimensionType_EXCLUSIVE = DimensionType' "EXCLUSIVE"

pattern DimensionType_INCLUSIVE :: DimensionType
pattern $bDimensionType_INCLUSIVE :: DimensionType
$mDimensionType_INCLUSIVE :: forall {r}. DimensionType -> ((# #) -> r) -> ((# #) -> r) -> r
DimensionType_INCLUSIVE = DimensionType' "INCLUSIVE"

{-# COMPLETE
  DimensionType_EXCLUSIVE,
  DimensionType_INCLUSIVE,
  DimensionType'
  #-}