{-# 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.FMS.Types.CustomerPolicyScopeIdType
-- 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.FMS.Types.CustomerPolicyScopeIdType
  ( CustomerPolicyScopeIdType
      ( ..,
        CustomerPolicyScopeIdType_ACCOUNT,
        CustomerPolicyScopeIdType_ORG_UNIT
      ),
  )
where

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

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

pattern CustomerPolicyScopeIdType_ACCOUNT :: CustomerPolicyScopeIdType
pattern $bCustomerPolicyScopeIdType_ACCOUNT :: CustomerPolicyScopeIdType
$mCustomerPolicyScopeIdType_ACCOUNT :: forall r.
CustomerPolicyScopeIdType -> (Void# -> r) -> (Void# -> r) -> r
CustomerPolicyScopeIdType_ACCOUNT = CustomerPolicyScopeIdType' "ACCOUNT"

pattern CustomerPolicyScopeIdType_ORG_UNIT :: CustomerPolicyScopeIdType
pattern $bCustomerPolicyScopeIdType_ORG_UNIT :: CustomerPolicyScopeIdType
$mCustomerPolicyScopeIdType_ORG_UNIT :: forall r.
CustomerPolicyScopeIdType -> (Void# -> r) -> (Void# -> r) -> r
CustomerPolicyScopeIdType_ORG_UNIT = CustomerPolicyScopeIdType' "ORG_UNIT"

{-# COMPLETE
  CustomerPolicyScopeIdType_ACCOUNT,
  CustomerPolicyScopeIdType_ORG_UNIT,
  CustomerPolicyScopeIdType'
  #-}