{-# 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.GlobalAccelerator.Types.CustomRoutingAcceleratorStatus
-- 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.GlobalAccelerator.Types.CustomRoutingAcceleratorStatus
  ( CustomRoutingAcceleratorStatus
      ( ..,
        CustomRoutingAcceleratorStatus_DEPLOYED,
        CustomRoutingAcceleratorStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern CustomRoutingAcceleratorStatus_DEPLOYED :: CustomRoutingAcceleratorStatus
pattern $bCustomRoutingAcceleratorStatus_DEPLOYED :: CustomRoutingAcceleratorStatus
$mCustomRoutingAcceleratorStatus_DEPLOYED :: forall r.
CustomRoutingAcceleratorStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomRoutingAcceleratorStatus_DEPLOYED = CustomRoutingAcceleratorStatus' "DEPLOYED"

pattern CustomRoutingAcceleratorStatus_IN_PROGRESS :: CustomRoutingAcceleratorStatus
pattern $bCustomRoutingAcceleratorStatus_IN_PROGRESS :: CustomRoutingAcceleratorStatus
$mCustomRoutingAcceleratorStatus_IN_PROGRESS :: forall r.
CustomRoutingAcceleratorStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomRoutingAcceleratorStatus_IN_PROGRESS = CustomRoutingAcceleratorStatus' "IN_PROGRESS"

{-# COMPLETE
  CustomRoutingAcceleratorStatus_DEPLOYED,
  CustomRoutingAcceleratorStatus_IN_PROGRESS,
  CustomRoutingAcceleratorStatus'
  #-}