{-# 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.MediaTailor.Types.Operator
-- 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.MediaTailor.Types.Operator
  ( Operator
      ( ..,
        Operator_EQUALS
      ),
  )
where

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

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

pattern Operator_EQUALS :: Operator
pattern $bOperator_EQUALS :: Operator
$mOperator_EQUALS :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_EQUALS = Operator' "EQUALS"

{-# COMPLETE
  Operator_EQUALS,
  Operator'
  #-}