{-# 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.ByoipCidrState
-- 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.ByoipCidrState
  ( ByoipCidrState
      ( ..,
        ByoipCidrState_ADVERTISING,
        ByoipCidrState_DEPROVISIONED,
        ByoipCidrState_FAILED_ADVERTISING,
        ByoipCidrState_FAILED_DEPROVISION,
        ByoipCidrState_FAILED_PROVISION,
        ByoipCidrState_FAILED_WITHDRAW,
        ByoipCidrState_PENDING_ADVERTISING,
        ByoipCidrState_PENDING_DEPROVISIONING,
        ByoipCidrState_PENDING_PROVISIONING,
        ByoipCidrState_PENDING_WITHDRAWING,
        ByoipCidrState_READY
      ),
  )
where

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

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

pattern ByoipCidrState_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_ADVERTISING :: ByoipCidrState
$mByoipCidrState_ADVERTISING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_ADVERTISING = ByoipCidrState' "ADVERTISING"

pattern ByoipCidrState_DEPROVISIONED :: ByoipCidrState
pattern $bByoipCidrState_DEPROVISIONED :: ByoipCidrState
$mByoipCidrState_DEPROVISIONED :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_DEPROVISIONED = ByoipCidrState' "DEPROVISIONED"

pattern ByoipCidrState_FAILED_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_FAILED_ADVERTISING :: ByoipCidrState
$mByoipCidrState_FAILED_ADVERTISING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_FAILED_ADVERTISING = ByoipCidrState' "FAILED_ADVERTISING"

pattern ByoipCidrState_FAILED_DEPROVISION :: ByoipCidrState
pattern $bByoipCidrState_FAILED_DEPROVISION :: ByoipCidrState
$mByoipCidrState_FAILED_DEPROVISION :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_FAILED_DEPROVISION = ByoipCidrState' "FAILED_DEPROVISION"

pattern ByoipCidrState_FAILED_PROVISION :: ByoipCidrState
pattern $bByoipCidrState_FAILED_PROVISION :: ByoipCidrState
$mByoipCidrState_FAILED_PROVISION :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_FAILED_PROVISION = ByoipCidrState' "FAILED_PROVISION"

pattern ByoipCidrState_FAILED_WITHDRAW :: ByoipCidrState
pattern $bByoipCidrState_FAILED_WITHDRAW :: ByoipCidrState
$mByoipCidrState_FAILED_WITHDRAW :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_FAILED_WITHDRAW = ByoipCidrState' "FAILED_WITHDRAW"

pattern ByoipCidrState_PENDING_ADVERTISING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_ADVERTISING :: ByoipCidrState
$mByoipCidrState_PENDING_ADVERTISING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_PENDING_ADVERTISING = ByoipCidrState' "PENDING_ADVERTISING"

pattern ByoipCidrState_PENDING_DEPROVISIONING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_DEPROVISIONING :: ByoipCidrState
$mByoipCidrState_PENDING_DEPROVISIONING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_PENDING_DEPROVISIONING = ByoipCidrState' "PENDING_DEPROVISIONING"

pattern ByoipCidrState_PENDING_PROVISIONING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_PROVISIONING :: ByoipCidrState
$mByoipCidrState_PENDING_PROVISIONING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_PENDING_PROVISIONING = ByoipCidrState' "PENDING_PROVISIONING"

pattern ByoipCidrState_PENDING_WITHDRAWING :: ByoipCidrState
pattern $bByoipCidrState_PENDING_WITHDRAWING :: ByoipCidrState
$mByoipCidrState_PENDING_WITHDRAWING :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_PENDING_WITHDRAWING = ByoipCidrState' "PENDING_WITHDRAWING"

pattern ByoipCidrState_READY :: ByoipCidrState
pattern $bByoipCidrState_READY :: ByoipCidrState
$mByoipCidrState_READY :: forall r. ByoipCidrState -> (Void# -> r) -> (Void# -> r) -> r
ByoipCidrState_READY = ByoipCidrState' "READY"

{-# COMPLETE
  ByoipCidrState_ADVERTISING,
  ByoipCidrState_DEPROVISIONED,
  ByoipCidrState_FAILED_ADVERTISING,
  ByoipCidrState_FAILED_DEPROVISION,
  ByoipCidrState_FAILED_PROVISION,
  ByoipCidrState_FAILED_WITHDRAW,
  ByoipCidrState_PENDING_ADVERTISING,
  ByoipCidrState_PENDING_DEPROVISIONING,
  ByoipCidrState_PENDING_PROVISIONING,
  ByoipCidrState_PENDING_WITHDRAWING,
  ByoipCidrState_READY,
  ByoipCidrState'
  #-}