{-# 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.KinesisVideo.Types.ChannelType
-- 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.KinesisVideo.Types.ChannelType
  ( ChannelType
      ( ..,
        ChannelType_SINGLE_MASTER
      ),
  )
where

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

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

pattern ChannelType_SINGLE_MASTER :: ChannelType
pattern $bChannelType_SINGLE_MASTER :: ChannelType
$mChannelType_SINGLE_MASTER :: forall r. ChannelType -> (Void# -> r) -> (Void# -> r) -> r
ChannelType_SINGLE_MASTER = ChannelType' "SINGLE_MASTER"

{-# COMPLETE
  ChannelType_SINGLE_MASTER,
  ChannelType'
  #-}