{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CustomerPolicyScopeIdType = CustomerPolicyScopeIdType'
  { CustomerPolicyScopeIdType -> Text
fromCustomerPolicyScopeIdType ::
      Data.Text
  }
  deriving stock
    ( Int -> CustomerPolicyScopeIdType -> ShowS
[CustomerPolicyScopeIdType] -> ShowS
CustomerPolicyScopeIdType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CustomerPolicyScopeIdType
Int -> CustomerPolicyScopeIdType -> Int
CustomerPolicyScopeIdType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CustomerPolicyScopeIdType -> ()
$crnf :: CustomerPolicyScopeIdType -> ()
Prelude.NFData,
      Text -> Either String CustomerPolicyScopeIdType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CustomerPolicyScopeIdType
$cfromText :: Text -> Either String CustomerPolicyScopeIdType
Data.FromText,
      CustomerPolicyScopeIdType -> Text
forall a. (a -> Text) -> ToText a
toText :: CustomerPolicyScopeIdType -> Text
$ctoText :: CustomerPolicyScopeIdType -> Text
Data.ToText,
      CustomerPolicyScopeIdType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CustomerPolicyScopeIdType -> ByteString
$ctoBS :: CustomerPolicyScopeIdType -> ByteString
Data.ToByteString,
      CustomerPolicyScopeIdType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CustomerPolicyScopeIdType -> ByteStringBuilder
$cbuild :: CustomerPolicyScopeIdType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CustomerPolicyScopeIdType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CustomerPolicyScopeIdType -> [Header]
$ctoHeader :: HeaderName -> CustomerPolicyScopeIdType -> [Header]
Data.ToHeader,
      CustomerPolicyScopeIdType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CustomerPolicyScopeIdType -> QueryString
$ctoQuery :: CustomerPolicyScopeIdType -> QueryString
Data.ToQuery,
      Value -> Parser [CustomerPolicyScopeIdType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CustomerPolicyScopeIdType]
FromJSONKeyFunction CustomerPolicyScopeIdType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CustomerPolicyScopeIdType]
$cfromJSONKeyList :: FromJSONKeyFunction [CustomerPolicyScopeIdType]
fromJSONKey :: FromJSONKeyFunction CustomerPolicyScopeIdType
$cfromJSONKey :: FromJSONKeyFunction CustomerPolicyScopeIdType
Data.FromJSONKey,
      [CustomerPolicyScopeIdType] -> Encoding
[CustomerPolicyScopeIdType] -> Value
CustomerPolicyScopeIdType -> Encoding
CustomerPolicyScopeIdType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CustomerPolicyScopeIdType]
ToJSONKeyFunction CustomerPolicyScopeIdType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CustomerPolicyScopeIdType]
$ctoJSONKeyList :: ToJSONKeyFunction [CustomerPolicyScopeIdType]
toJSONKey :: ToJSONKeyFunction CustomerPolicyScopeIdType
$ctoJSONKey :: ToJSONKeyFunction CustomerPolicyScopeIdType
Data.ToJSONKey,
      [Node] -> Either String CustomerPolicyScopeIdType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CustomerPolicyScopeIdType
$cparseXML :: [Node] -> Either String CustomerPolicyScopeIdType
Data.FromXML,
      CustomerPolicyScopeIdType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CustomerPolicyScopeIdType -> XML
$ctoXML :: CustomerPolicyScopeIdType -> XML
Data.ToXML
    )

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

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

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