{-# 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.BuildType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ImageBuilder.Types.BuildType
  ( BuildType
      ( ..,
        BuildType_IMPORT,
        BuildType_SCHEDULED,
        BuildType_USER_INITIATED
      ),
  )
where

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

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

pattern BuildType_IMPORT :: BuildType
pattern $bBuildType_IMPORT :: BuildType
$mBuildType_IMPORT :: forall {r}. BuildType -> ((# #) -> r) -> ((# #) -> r) -> r
BuildType_IMPORT = BuildType' "IMPORT"

pattern BuildType_SCHEDULED :: BuildType
pattern $bBuildType_SCHEDULED :: BuildType
$mBuildType_SCHEDULED :: forall {r}. BuildType -> ((# #) -> r) -> ((# #) -> r) -> r
BuildType_SCHEDULED = BuildType' "SCHEDULED"

pattern BuildType_USER_INITIATED :: BuildType
pattern $bBuildType_USER_INITIATED :: BuildType
$mBuildType_USER_INITIATED :: forall {r}. BuildType -> ((# #) -> r) -> ((# #) -> r) -> r
BuildType_USER_INITIATED = BuildType' "USER_INITIATED"

{-# COMPLETE
  BuildType_IMPORT,
  BuildType_SCHEDULED,
  BuildType_USER_INITIATED,
  BuildType'
  #-}