{-# 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.CodePipeline.Types.BlockerType
-- 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.CodePipeline.Types.BlockerType
  ( BlockerType
      ( ..,
        BlockerType_Schedule
      ),
  )
where

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

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

pattern BlockerType_Schedule :: BlockerType
pattern $bBlockerType_Schedule :: BlockerType
$mBlockerType_Schedule :: forall r. BlockerType -> (Void# -> r) -> (Void# -> r) -> r
BlockerType_Schedule = BlockerType' "Schedule"

{-# COMPLETE
  BlockerType_Schedule,
  BlockerType'
  #-}