{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.LookoutEquipment.Types.TargetSamplingRate
( TargetSamplingRate
( ..,
TargetSamplingRate_PT10M,
TargetSamplingRate_PT10S,
TargetSamplingRate_PT15M,
TargetSamplingRate_PT15S,
TargetSamplingRate_PT1H,
TargetSamplingRate_PT1M,
TargetSamplingRate_PT1S,
TargetSamplingRate_PT30M,
TargetSamplingRate_PT30S,
TargetSamplingRate_PT5M,
TargetSamplingRate_PT5S
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetSamplingRate = TargetSamplingRate'
{ TargetSamplingRate -> Text
fromTargetSamplingRate ::
Core.Text
}
deriving stock
( Int -> TargetSamplingRate -> ShowS
[TargetSamplingRate] -> ShowS
TargetSamplingRate -> String
(Int -> TargetSamplingRate -> ShowS)
-> (TargetSamplingRate -> String)
-> ([TargetSamplingRate] -> ShowS)
-> Show TargetSamplingRate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetSamplingRate] -> ShowS
$cshowList :: [TargetSamplingRate] -> ShowS
show :: TargetSamplingRate -> String
$cshow :: TargetSamplingRate -> String
showsPrec :: Int -> TargetSamplingRate -> ShowS
$cshowsPrec :: Int -> TargetSamplingRate -> ShowS
Prelude.Show,
ReadPrec [TargetSamplingRate]
ReadPrec TargetSamplingRate
Int -> ReadS TargetSamplingRate
ReadS [TargetSamplingRate]
(Int -> ReadS TargetSamplingRate)
-> ReadS [TargetSamplingRate]
-> ReadPrec TargetSamplingRate
-> ReadPrec [TargetSamplingRate]
-> Read TargetSamplingRate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetSamplingRate]
$creadListPrec :: ReadPrec [TargetSamplingRate]
readPrec :: ReadPrec TargetSamplingRate
$creadPrec :: ReadPrec TargetSamplingRate
readList :: ReadS [TargetSamplingRate]
$creadList :: ReadS [TargetSamplingRate]
readsPrec :: Int -> ReadS TargetSamplingRate
$creadsPrec :: Int -> ReadS TargetSamplingRate
Prelude.Read,
TargetSamplingRate -> TargetSamplingRate -> Bool
(TargetSamplingRate -> TargetSamplingRate -> Bool)
-> (TargetSamplingRate -> TargetSamplingRate -> Bool)
-> Eq TargetSamplingRate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c/= :: TargetSamplingRate -> TargetSamplingRate -> Bool
== :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c== :: TargetSamplingRate -> TargetSamplingRate -> Bool
Prelude.Eq,
Eq TargetSamplingRate
Eq TargetSamplingRate
-> (TargetSamplingRate -> TargetSamplingRate -> Ordering)
-> (TargetSamplingRate -> TargetSamplingRate -> Bool)
-> (TargetSamplingRate -> TargetSamplingRate -> Bool)
-> (TargetSamplingRate -> TargetSamplingRate -> Bool)
-> (TargetSamplingRate -> TargetSamplingRate -> Bool)
-> (TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate)
-> (TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate)
-> Ord TargetSamplingRate
TargetSamplingRate -> TargetSamplingRate -> Bool
TargetSamplingRate -> TargetSamplingRate -> Ordering
TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate
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 :: TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate
$cmin :: TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate
max :: TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate
$cmax :: TargetSamplingRate -> TargetSamplingRate -> TargetSamplingRate
>= :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c>= :: TargetSamplingRate -> TargetSamplingRate -> Bool
> :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c> :: TargetSamplingRate -> TargetSamplingRate -> Bool
<= :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c<= :: TargetSamplingRate -> TargetSamplingRate -> Bool
< :: TargetSamplingRate -> TargetSamplingRate -> Bool
$c< :: TargetSamplingRate -> TargetSamplingRate -> Bool
compare :: TargetSamplingRate -> TargetSamplingRate -> Ordering
$ccompare :: TargetSamplingRate -> TargetSamplingRate -> Ordering
$cp1Ord :: Eq TargetSamplingRate
Prelude.Ord,
(forall x. TargetSamplingRate -> Rep TargetSamplingRate x)
-> (forall x. Rep TargetSamplingRate x -> TargetSamplingRate)
-> Generic TargetSamplingRate
forall x. Rep TargetSamplingRate x -> TargetSamplingRate
forall x. TargetSamplingRate -> Rep TargetSamplingRate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TargetSamplingRate x -> TargetSamplingRate
$cfrom :: forall x. TargetSamplingRate -> Rep TargetSamplingRate x
Prelude.Generic
)
deriving newtype
( Int -> TargetSamplingRate -> Int
TargetSamplingRate -> Int
(Int -> TargetSamplingRate -> Int)
-> (TargetSamplingRate -> Int) -> Hashable TargetSamplingRate
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetSamplingRate -> Int
$chash :: TargetSamplingRate -> Int
hashWithSalt :: Int -> TargetSamplingRate -> Int
$chashWithSalt :: Int -> TargetSamplingRate -> Int
Prelude.Hashable,
TargetSamplingRate -> ()
(TargetSamplingRate -> ()) -> NFData TargetSamplingRate
forall a. (a -> ()) -> NFData a
rnf :: TargetSamplingRate -> ()
$crnf :: TargetSamplingRate -> ()
Prelude.NFData,
Text -> Either String TargetSamplingRate
(Text -> Either String TargetSamplingRate)
-> FromText TargetSamplingRate
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetSamplingRate
$cfromText :: Text -> Either String TargetSamplingRate
Core.FromText,
TargetSamplingRate -> Text
(TargetSamplingRate -> Text) -> ToText TargetSamplingRate
forall a. (a -> Text) -> ToText a
toText :: TargetSamplingRate -> Text
$ctoText :: TargetSamplingRate -> Text
Core.ToText,
TargetSamplingRate -> ByteString
(TargetSamplingRate -> ByteString)
-> ToByteString TargetSamplingRate
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetSamplingRate -> ByteString
$ctoBS :: TargetSamplingRate -> ByteString
Core.ToByteString,
TargetSamplingRate -> ByteStringBuilder
(TargetSamplingRate -> ByteStringBuilder)
-> ToLog TargetSamplingRate
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetSamplingRate -> ByteStringBuilder
$cbuild :: TargetSamplingRate -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetSamplingRate -> [Header]
(HeaderName -> TargetSamplingRate -> [Header])
-> ToHeader TargetSamplingRate
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetSamplingRate -> [Header]
$ctoHeader :: HeaderName -> TargetSamplingRate -> [Header]
Core.ToHeader,
TargetSamplingRate -> QueryString
(TargetSamplingRate -> QueryString) -> ToQuery TargetSamplingRate
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetSamplingRate -> QueryString
$ctoQuery :: TargetSamplingRate -> QueryString
Core.ToQuery,
Value -> Parser [TargetSamplingRate]
Value -> Parser TargetSamplingRate
(Value -> Parser TargetSamplingRate)
-> (Value -> Parser [TargetSamplingRate])
-> FromJSON TargetSamplingRate
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetSamplingRate]
$cparseJSONList :: Value -> Parser [TargetSamplingRate]
parseJSON :: Value -> Parser TargetSamplingRate
$cparseJSON :: Value -> Parser TargetSamplingRate
Core.FromJSON,
FromJSONKeyFunction [TargetSamplingRate]
FromJSONKeyFunction TargetSamplingRate
FromJSONKeyFunction TargetSamplingRate
-> FromJSONKeyFunction [TargetSamplingRate]
-> FromJSONKey TargetSamplingRate
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetSamplingRate]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetSamplingRate]
fromJSONKey :: FromJSONKeyFunction TargetSamplingRate
$cfromJSONKey :: FromJSONKeyFunction TargetSamplingRate
Core.FromJSONKey,
[TargetSamplingRate] -> Encoding
[TargetSamplingRate] -> Value
TargetSamplingRate -> Encoding
TargetSamplingRate -> Value
(TargetSamplingRate -> Value)
-> (TargetSamplingRate -> Encoding)
-> ([TargetSamplingRate] -> Value)
-> ([TargetSamplingRate] -> Encoding)
-> ToJSON TargetSamplingRate
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetSamplingRate] -> Encoding
$ctoEncodingList :: [TargetSamplingRate] -> Encoding
toJSONList :: [TargetSamplingRate] -> Value
$ctoJSONList :: [TargetSamplingRate] -> Value
toEncoding :: TargetSamplingRate -> Encoding
$ctoEncoding :: TargetSamplingRate -> Encoding
toJSON :: TargetSamplingRate -> Value
$ctoJSON :: TargetSamplingRate -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetSamplingRate]
ToJSONKeyFunction TargetSamplingRate
ToJSONKeyFunction TargetSamplingRate
-> ToJSONKeyFunction [TargetSamplingRate]
-> ToJSONKey TargetSamplingRate
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetSamplingRate]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetSamplingRate]
toJSONKey :: ToJSONKeyFunction TargetSamplingRate
$ctoJSONKey :: ToJSONKeyFunction TargetSamplingRate
Core.ToJSONKey,
[Node] -> Either String TargetSamplingRate
([Node] -> Either String TargetSamplingRate)
-> FromXML TargetSamplingRate
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetSamplingRate
$cparseXML :: [Node] -> Either String TargetSamplingRate
Core.FromXML,
TargetSamplingRate -> XML
(TargetSamplingRate -> XML) -> ToXML TargetSamplingRate
forall a. (a -> XML) -> ToXML a
toXML :: TargetSamplingRate -> XML
$ctoXML :: TargetSamplingRate -> XML
Core.ToXML
)
pattern TargetSamplingRate_PT10M :: TargetSamplingRate
pattern $bTargetSamplingRate_PT10M :: TargetSamplingRate
$mTargetSamplingRate_PT10M :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT10M = TargetSamplingRate' "PT10M"
pattern TargetSamplingRate_PT10S :: TargetSamplingRate
pattern $bTargetSamplingRate_PT10S :: TargetSamplingRate
$mTargetSamplingRate_PT10S :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT10S = TargetSamplingRate' "PT10S"
pattern TargetSamplingRate_PT15M :: TargetSamplingRate
pattern $bTargetSamplingRate_PT15M :: TargetSamplingRate
$mTargetSamplingRate_PT15M :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT15M = TargetSamplingRate' "PT15M"
pattern TargetSamplingRate_PT15S :: TargetSamplingRate
pattern $bTargetSamplingRate_PT15S :: TargetSamplingRate
$mTargetSamplingRate_PT15S :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT15S = TargetSamplingRate' "PT15S"
pattern TargetSamplingRate_PT1H :: TargetSamplingRate
pattern $bTargetSamplingRate_PT1H :: TargetSamplingRate
$mTargetSamplingRate_PT1H :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT1H = TargetSamplingRate' "PT1H"
pattern TargetSamplingRate_PT1M :: TargetSamplingRate
pattern $bTargetSamplingRate_PT1M :: TargetSamplingRate
$mTargetSamplingRate_PT1M :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT1M = TargetSamplingRate' "PT1M"
pattern TargetSamplingRate_PT1S :: TargetSamplingRate
pattern $bTargetSamplingRate_PT1S :: TargetSamplingRate
$mTargetSamplingRate_PT1S :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT1S = TargetSamplingRate' "PT1S"
pattern TargetSamplingRate_PT30M :: TargetSamplingRate
pattern $bTargetSamplingRate_PT30M :: TargetSamplingRate
$mTargetSamplingRate_PT30M :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT30M = TargetSamplingRate' "PT30M"
pattern TargetSamplingRate_PT30S :: TargetSamplingRate
pattern $bTargetSamplingRate_PT30S :: TargetSamplingRate
$mTargetSamplingRate_PT30S :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT30S = TargetSamplingRate' "PT30S"
pattern TargetSamplingRate_PT5M :: TargetSamplingRate
pattern $bTargetSamplingRate_PT5M :: TargetSamplingRate
$mTargetSamplingRate_PT5M :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT5M = TargetSamplingRate' "PT5M"
pattern TargetSamplingRate_PT5S :: TargetSamplingRate
pattern $bTargetSamplingRate_PT5S :: TargetSamplingRate
$mTargetSamplingRate_PT5S :: forall r. TargetSamplingRate -> (Void# -> r) -> (Void# -> r) -> r
TargetSamplingRate_PT5S = TargetSamplingRate' "PT5S"
{-# COMPLETE
TargetSamplingRate_PT10M,
TargetSamplingRate_PT10S,
TargetSamplingRate_PT15M,
TargetSamplingRate_PT15S,
TargetSamplingRate_PT1H,
TargetSamplingRate_PT1M,
TargetSamplingRate_PT1S,
TargetSamplingRate_PT30M,
TargetSamplingRate_PT30S,
TargetSamplingRate_PT5M,
TargetSamplingRate_PT5S,
TargetSamplingRate'
#-}