{-# 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.Outposts.Types.PowerPhase
-- 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.Outposts.Types.PowerPhase
  ( PowerPhase
      ( ..,
        PowerPhase_SINGLE_PHASE,
        PowerPhase_THREE_PHASE
      ),
  )
where

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

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

pattern PowerPhase_SINGLE_PHASE :: PowerPhase
pattern $bPowerPhase_SINGLE_PHASE :: PowerPhase
$mPowerPhase_SINGLE_PHASE :: forall {r}. PowerPhase -> ((# #) -> r) -> ((# #) -> r) -> r
PowerPhase_SINGLE_PHASE = PowerPhase' "SINGLE_PHASE"

pattern PowerPhase_THREE_PHASE :: PowerPhase
pattern $bPowerPhase_THREE_PHASE :: PowerPhase
$mPowerPhase_THREE_PHASE :: forall {r}. PowerPhase -> ((# #) -> r) -> ((# #) -> r) -> r
PowerPhase_THREE_PHASE = PowerPhase' "THREE_PHASE"

{-# COMPLETE
  PowerPhase_SINGLE_PHASE,
  PowerPhase_THREE_PHASE,
  PowerPhase'
  #-}