{-# 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.TimeStreamQuery.Types.DimensionValueType
-- 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.TimeStreamQuery.Types.DimensionValueType
  ( DimensionValueType
      ( ..,
        DimensionValueType_VARCHAR
      ),
  )
where

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

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

pattern DimensionValueType_VARCHAR :: DimensionValueType
pattern $bDimensionValueType_VARCHAR :: DimensionValueType
$mDimensionValueType_VARCHAR :: forall {r}. DimensionValueType -> ((# #) -> r) -> ((# #) -> r) -> r
DimensionValueType_VARCHAR = DimensionValueType' "VARCHAR"

{-# COMPLETE
  DimensionValueType_VARCHAR,
  DimensionValueType'
  #-}