{-# 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.DirectoryService.Types.ReplicationScope
-- 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.DirectoryService.Types.ReplicationScope
  ( ReplicationScope
      ( ..,
        ReplicationScope_Domain
      ),
  )
where

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

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

pattern ReplicationScope_Domain :: ReplicationScope
pattern $bReplicationScope_Domain :: ReplicationScope
$mReplicationScope_Domain :: forall r. ReplicationScope -> (Void# -> r) -> (Void# -> r) -> r
ReplicationScope_Domain = ReplicationScope' "Domain"

{-# COMPLETE
  ReplicationScope_Domain,
  ReplicationScope'
  #-}