{-# 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.TaskSetField
-- 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.TaskSetField
  ( TaskSetField
      ( ..,
        TaskSetField_TAGS
      ),
  )
where

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

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

pattern TaskSetField_TAGS :: TaskSetField
pattern $bTaskSetField_TAGS :: TaskSetField
$mTaskSetField_TAGS :: forall r. TaskSetField -> (Void# -> r) -> (Void# -> r) -> r
TaskSetField_TAGS = TaskSetField' "TAGS"

{-# COMPLETE
  TaskSetField_TAGS,
  TaskSetField'
  #-}