{-# 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.ECR.Types.RepositoryFilterType
-- 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.ECR.Types.RepositoryFilterType
  ( RepositoryFilterType
      ( ..,
        RepositoryFilterType_PREFIX_MATCH
      ),
  )
where

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

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

pattern RepositoryFilterType_PREFIX_MATCH :: RepositoryFilterType
pattern $bRepositoryFilterType_PREFIX_MATCH :: RepositoryFilterType
$mRepositoryFilterType_PREFIX_MATCH :: forall {r}.
RepositoryFilterType -> ((# #) -> r) -> ((# #) -> r) -> r
RepositoryFilterType_PREFIX_MATCH = RepositoryFilterType' "PREFIX_MATCH"

{-# COMPLETE
  RepositoryFilterType_PREFIX_MATCH,
  RepositoryFilterType'
  #-}