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

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

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

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

{-# COMPLETE
  RepositoryFilterType_PREFIX_MATCH,
  RepositoryFilterType'
  #-}