{-# 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.CertificateManagerPCA.Types.PolicyQualifierId
-- 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.CertificateManagerPCA.Types.PolicyQualifierId
  ( PolicyQualifierId
      ( ..,
        PolicyQualifierId_CPS
      ),
  )
where

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

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

pattern PolicyQualifierId_CPS :: PolicyQualifierId
pattern $bPolicyQualifierId_CPS :: PolicyQualifierId
$mPolicyQualifierId_CPS :: forall r. PolicyQualifierId -> (Void# -> r) -> (Void# -> r) -> r
PolicyQualifierId_CPS = PolicyQualifierId' "CPS"

{-# COMPLETE
  PolicyQualifierId_CPS,
  PolicyQualifierId'
  #-}