{-# 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.ImageBuilder.Types.ComponentType
-- 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.ImageBuilder.Types.ComponentType
  ( ComponentType
      ( ..,
        ComponentType_BUILD,
        ComponentType_TEST
      ),
  )
where

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

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

pattern ComponentType_BUILD :: ComponentType
pattern $bComponentType_BUILD :: ComponentType
$mComponentType_BUILD :: forall r. ComponentType -> (Void# -> r) -> (Void# -> r) -> r
ComponentType_BUILD = ComponentType' "BUILD"

pattern ComponentType_TEST :: ComponentType
pattern $bComponentType_TEST :: ComponentType
$mComponentType_TEST :: forall r. ComponentType -> (Void# -> r) -> (Void# -> r) -> r
ComponentType_TEST = ComponentType' "TEST"

{-# COMPLETE
  ComponentType_BUILD,
  ComponentType_TEST,
  ComponentType'
  #-}