{-# 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.CodeBuild.Types.EnvironmentType
-- 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.CodeBuild.Types.EnvironmentType
  ( EnvironmentType
      ( ..,
        EnvironmentType_ARM_CONTAINER,
        EnvironmentType_LINUX_CONTAINER,
        EnvironmentType_LINUX_GPU_CONTAINER,
        EnvironmentType_WINDOWS_CONTAINER,
        EnvironmentType_WINDOWS_SERVER_2019_CONTAINER
      ),
  )
where

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

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

pattern EnvironmentType_ARM_CONTAINER :: EnvironmentType
pattern $bEnvironmentType_ARM_CONTAINER :: EnvironmentType
$mEnvironmentType_ARM_CONTAINER :: forall r. EnvironmentType -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentType_ARM_CONTAINER = EnvironmentType' "ARM_CONTAINER"

pattern EnvironmentType_LINUX_CONTAINER :: EnvironmentType
pattern $bEnvironmentType_LINUX_CONTAINER :: EnvironmentType
$mEnvironmentType_LINUX_CONTAINER :: forall r. EnvironmentType -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentType_LINUX_CONTAINER = EnvironmentType' "LINUX_CONTAINER"

pattern EnvironmentType_LINUX_GPU_CONTAINER :: EnvironmentType
pattern $bEnvironmentType_LINUX_GPU_CONTAINER :: EnvironmentType
$mEnvironmentType_LINUX_GPU_CONTAINER :: forall r. EnvironmentType -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentType_LINUX_GPU_CONTAINER = EnvironmentType' "LINUX_GPU_CONTAINER"

pattern EnvironmentType_WINDOWS_CONTAINER :: EnvironmentType
pattern $bEnvironmentType_WINDOWS_CONTAINER :: EnvironmentType
$mEnvironmentType_WINDOWS_CONTAINER :: forall r. EnvironmentType -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentType_WINDOWS_CONTAINER = EnvironmentType' "WINDOWS_CONTAINER"

pattern EnvironmentType_WINDOWS_SERVER_2019_CONTAINER :: EnvironmentType
pattern $bEnvironmentType_WINDOWS_SERVER_2019_CONTAINER :: EnvironmentType
$mEnvironmentType_WINDOWS_SERVER_2019_CONTAINER :: forall r. EnvironmentType -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentType_WINDOWS_SERVER_2019_CONTAINER = EnvironmentType' "WINDOWS_SERVER_2019_CONTAINER"

{-# COMPLETE
  EnvironmentType_ARM_CONTAINER,
  EnvironmentType_LINUX_CONTAINER,
  EnvironmentType_LINUX_GPU_CONTAINER,
  EnvironmentType_WINDOWS_CONTAINER,
  EnvironmentType_WINDOWS_SERVER_2019_CONTAINER,
  EnvironmentType'
  #-}