{-# 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.TagStatus
-- 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.TagStatus
  ( TagStatus
      ( ..,
        TagStatus_ANY,
        TagStatus_TAGGED,
        TagStatus_UNTAGGED
      ),
  )
where

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

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

pattern TagStatus_ANY :: TagStatus
pattern $bTagStatus_ANY :: TagStatus
$mTagStatus_ANY :: forall r. TagStatus -> (Void# -> r) -> (Void# -> r) -> r
TagStatus_ANY = TagStatus' "ANY"

pattern TagStatus_TAGGED :: TagStatus
pattern $bTagStatus_TAGGED :: TagStatus
$mTagStatus_TAGGED :: forall r. TagStatus -> (Void# -> r) -> (Void# -> r) -> r
TagStatus_TAGGED = TagStatus' "TAGGED"

pattern TagStatus_UNTAGGED :: TagStatus
pattern $bTagStatus_UNTAGGED :: TagStatus
$mTagStatus_UNTAGGED :: forall r. TagStatus -> (Void# -> r) -> (Void# -> r) -> r
TagStatus_UNTAGGED = TagStatus' "UNTAGGED"

{-# COMPLETE
  TagStatus_ANY,
  TagStatus_TAGGED,
  TagStatus_UNTAGGED,
  TagStatus'
  #-}