{-# 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.ECS.Types.TaskField
-- 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.ECS.Types.TaskField
  ( TaskField
      ( ..,
        TaskField_TAGS
      ),
  )
where

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

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

pattern TaskField_TAGS :: TaskField
pattern $bTaskField_TAGS :: TaskField
$mTaskField_TAGS :: forall r. TaskField -> (Void# -> r) -> (Void# -> r) -> r
TaskField_TAGS = TaskField' "TAGS"

{-# COMPLETE
  TaskField_TAGS,
  TaskField'
  #-}