{-# 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.Greengrass.Types.Telemetry
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Greengrass.Types.Telemetry
  ( Telemetry
      ( ..,
        Telemetry_Off,
        Telemetry_On
      ),
  )
where

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

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

pattern Telemetry_Off :: Telemetry
pattern $bTelemetry_Off :: Telemetry
$mTelemetry_Off :: forall r. Telemetry -> (Void# -> r) -> (Void# -> r) -> r
Telemetry_Off = Telemetry' "Off"

pattern Telemetry_On :: Telemetry
pattern $bTelemetry_On :: Telemetry
$mTelemetry_On :: forall r. Telemetry -> (Void# -> r) -> (Void# -> r) -> r
Telemetry_On = Telemetry' "On"

{-# COMPLETE
  Telemetry_Off,
  Telemetry_On,
  Telemetry'
  #-}