{-# 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.SubnetState
-- 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.SubnetState
  ( SubnetState
      ( ..,
        SubnetState_Available,
        SubnetState_Pending
      ),
  )
where

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

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

pattern SubnetState_Available :: SubnetState
pattern $bSubnetState_Available :: SubnetState
$mSubnetState_Available :: forall {r}. SubnetState -> ((# #) -> r) -> ((# #) -> r) -> r
SubnetState_Available = SubnetState' "available"

pattern SubnetState_Pending :: SubnetState
pattern $bSubnetState_Pending :: SubnetState
$mSubnetState_Pending :: forall {r}. SubnetState -> ((# #) -> r) -> ((# #) -> r) -> r
SubnetState_Pending = SubnetState' "pending"

{-# COMPLETE
  SubnetState_Available,
  SubnetState_Pending,
  SubnetState'
  #-}