{-# 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.MediaLive.Types.SmoothGroupCertificateMode
-- 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.MediaLive.Types.SmoothGroupCertificateMode
  ( SmoothGroupCertificateMode
      ( ..,
        SmoothGroupCertificateMode_SELF_SIGNED,
        SmoothGroupCertificateMode_VERIFY_AUTHENTICITY
      ),
  )
where

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

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

pattern SmoothGroupCertificateMode_SELF_SIGNED :: SmoothGroupCertificateMode
pattern $bSmoothGroupCertificateMode_SELF_SIGNED :: SmoothGroupCertificateMode
$mSmoothGroupCertificateMode_SELF_SIGNED :: forall {r}.
SmoothGroupCertificateMode -> ((# #) -> r) -> ((# #) -> r) -> r
SmoothGroupCertificateMode_SELF_SIGNED = SmoothGroupCertificateMode' "SELF_SIGNED"

pattern SmoothGroupCertificateMode_VERIFY_AUTHENTICITY :: SmoothGroupCertificateMode
pattern $bSmoothGroupCertificateMode_VERIFY_AUTHENTICITY :: SmoothGroupCertificateMode
$mSmoothGroupCertificateMode_VERIFY_AUTHENTICITY :: forall {r}.
SmoothGroupCertificateMode -> ((# #) -> r) -> ((# #) -> r) -> r
SmoothGroupCertificateMode_VERIFY_AUTHENTICITY = SmoothGroupCertificateMode' "VERIFY_AUTHENTICITY"

{-# COMPLETE
  SmoothGroupCertificateMode_SELF_SIGNED,
  SmoothGroupCertificateMode_VERIFY_AUTHENTICITY,
  SmoothGroupCertificateMode'
  #-}