{-# 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.EC2.Types.ByoipCidrState
-- 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.EC2.Types.ByoipCidrState
  ( ByoipCidrState
      ( ..,
        ByoipCidrState_Advertised,
        ByoipCidrState_Deprovisioned,
        ByoipCidrState_Failed_deprovision,
        ByoipCidrState_Failed_provision,
        ByoipCidrState_Pending_deprovision,
        ByoipCidrState_Pending_provision,
        ByoipCidrState_Provisioned,
        ByoipCidrState_Provisioned_not_publicly_advertisable
      ),
  )
where

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

newtype ByoipCidrState = ByoipCidrState'
  { ByoipCidrState -> Text
fromByoipCidrState ::
      Data.Text
  }
  deriving stock
    ( Int -> ByoipCidrState -> ShowS
[ByoipCidrState] -> ShowS
ByoipCidrState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ByoipCidrState
Int -> ByoipCidrState -> Int
ByoipCidrState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ByoipCidrState -> ()
$crnf :: ByoipCidrState -> ()
Prelude.NFData,
      Text -> Either String ByoipCidrState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ByoipCidrState
$cfromText :: Text -> Either String ByoipCidrState
Data.FromText,
      ByoipCidrState -> Text
forall a. (a -> Text) -> ToText a
toText :: ByoipCidrState -> Text
$ctoText :: ByoipCidrState -> Text
Data.ToText,
      ByoipCidrState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ByoipCidrState -> ByteString
$ctoBS :: ByoipCidrState -> ByteString
Data.ToByteString,
      ByoipCidrState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ByoipCidrState -> ByteStringBuilder
$cbuild :: ByoipCidrState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ByoipCidrState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ByoipCidrState -> [Header]
$ctoHeader :: HeaderName -> ByoipCidrState -> [Header]
Data.ToHeader,
      ByoipCidrState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ByoipCidrState -> QueryString
$ctoQuery :: ByoipCidrState -> QueryString
Data.ToQuery,
      Value -> Parser [ByoipCidrState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ByoipCidrState]
FromJSONKeyFunction ByoipCidrState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ByoipCidrState]
$cfromJSONKeyList :: FromJSONKeyFunction [ByoipCidrState]
fromJSONKey :: FromJSONKeyFunction ByoipCidrState
$cfromJSONKey :: FromJSONKeyFunction ByoipCidrState
Data.FromJSONKey,
      [ByoipCidrState] -> Encoding
[ByoipCidrState] -> Value
ByoipCidrState -> Encoding
ByoipCidrState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ByoipCidrState]
ToJSONKeyFunction ByoipCidrState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ByoipCidrState]
$ctoJSONKeyList :: ToJSONKeyFunction [ByoipCidrState]
toJSONKey :: ToJSONKeyFunction ByoipCidrState
$ctoJSONKey :: ToJSONKeyFunction ByoipCidrState
Data.ToJSONKey,
      [Node] -> Either String ByoipCidrState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ByoipCidrState
$cparseXML :: [Node] -> Either String ByoipCidrState
Data.FromXML,
      ByoipCidrState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ByoipCidrState -> XML
$ctoXML :: ByoipCidrState -> XML
Data.ToXML
    )

pattern ByoipCidrState_Advertised :: ByoipCidrState
pattern $bByoipCidrState_Advertised :: ByoipCidrState
$mByoipCidrState_Advertised :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Advertised = ByoipCidrState' "advertised"

pattern ByoipCidrState_Deprovisioned :: ByoipCidrState
pattern $bByoipCidrState_Deprovisioned :: ByoipCidrState
$mByoipCidrState_Deprovisioned :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Deprovisioned = ByoipCidrState' "deprovisioned"

pattern ByoipCidrState_Failed_deprovision :: ByoipCidrState
pattern $bByoipCidrState_Failed_deprovision :: ByoipCidrState
$mByoipCidrState_Failed_deprovision :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Failed_deprovision = ByoipCidrState' "failed-deprovision"

pattern ByoipCidrState_Failed_provision :: ByoipCidrState
pattern $bByoipCidrState_Failed_provision :: ByoipCidrState
$mByoipCidrState_Failed_provision :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Failed_provision = ByoipCidrState' "failed-provision"

pattern ByoipCidrState_Pending_deprovision :: ByoipCidrState
pattern $bByoipCidrState_Pending_deprovision :: ByoipCidrState
$mByoipCidrState_Pending_deprovision :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Pending_deprovision = ByoipCidrState' "pending-deprovision"

pattern ByoipCidrState_Pending_provision :: ByoipCidrState
pattern $bByoipCidrState_Pending_provision :: ByoipCidrState
$mByoipCidrState_Pending_provision :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Pending_provision = ByoipCidrState' "pending-provision"

pattern ByoipCidrState_Provisioned :: ByoipCidrState
pattern $bByoipCidrState_Provisioned :: ByoipCidrState
$mByoipCidrState_Provisioned :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Provisioned = ByoipCidrState' "provisioned"

pattern ByoipCidrState_Provisioned_not_publicly_advertisable :: ByoipCidrState
pattern $bByoipCidrState_Provisioned_not_publicly_advertisable :: ByoipCidrState
$mByoipCidrState_Provisioned_not_publicly_advertisable :: forall {r}. ByoipCidrState -> ((# #) -> r) -> ((# #) -> r) -> r
ByoipCidrState_Provisioned_not_publicly_advertisable = ByoipCidrState' "provisioned-not-publicly-advertisable"

{-# COMPLETE
  ByoipCidrState_Advertised,
  ByoipCidrState_Deprovisioned,
  ByoipCidrState_Failed_deprovision,
  ByoipCidrState_Failed_provision,
  ByoipCidrState_Pending_deprovision,
  ByoipCidrState_Pending_provision,
  ByoipCidrState_Provisioned,
  ByoipCidrState_Provisioned_not_publicly_advertisable,
  ByoipCidrState'
  #-}