{-# 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.QuickSight.Types.HistogramBinType
-- 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.QuickSight.Types.HistogramBinType
  ( HistogramBinType
      ( ..,
        HistogramBinType_BIN_COUNT,
        HistogramBinType_BIN_WIDTH
      ),
  )
where

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

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

pattern HistogramBinType_BIN_COUNT :: HistogramBinType
pattern $bHistogramBinType_BIN_COUNT :: HistogramBinType
$mHistogramBinType_BIN_COUNT :: forall {r}. HistogramBinType -> ((# #) -> r) -> ((# #) -> r) -> r
HistogramBinType_BIN_COUNT = HistogramBinType' "BIN_COUNT"

pattern HistogramBinType_BIN_WIDTH :: HistogramBinType
pattern $bHistogramBinType_BIN_WIDTH :: HistogramBinType
$mHistogramBinType_BIN_WIDTH :: forall {r}. HistogramBinType -> ((# #) -> r) -> ((# #) -> r) -> r
HistogramBinType_BIN_WIDTH = HistogramBinType' "BIN_WIDTH"

{-# COMPLETE
  HistogramBinType_BIN_COUNT,
  HistogramBinType_BIN_WIDTH,
  HistogramBinType'
  #-}