{-# 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.AppFlow.Types.PathPrefix
-- 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.AppFlow.Types.PathPrefix
  ( PathPrefix
      ( ..,
        PathPrefix_EXECUTION_ID,
        PathPrefix_SCHEMA_VERSION
      ),
  )
where

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

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

pattern PathPrefix_EXECUTION_ID :: PathPrefix
pattern $bPathPrefix_EXECUTION_ID :: PathPrefix
$mPathPrefix_EXECUTION_ID :: forall {r}. PathPrefix -> ((# #) -> r) -> ((# #) -> r) -> r
PathPrefix_EXECUTION_ID = PathPrefix' "EXECUTION_ID"

pattern PathPrefix_SCHEMA_VERSION :: PathPrefix
pattern $bPathPrefix_SCHEMA_VERSION :: PathPrefix
$mPathPrefix_SCHEMA_VERSION :: forall {r}. PathPrefix -> ((# #) -> r) -> ((# #) -> r) -> r
PathPrefix_SCHEMA_VERSION = PathPrefix' "SCHEMA_VERSION"

{-# COMPLETE
  PathPrefix_EXECUTION_ID,
  PathPrefix_SCHEMA_VERSION,
  PathPrefix'
  #-}