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

pattern CarrierGatewayState_Available :: CarrierGatewayState
pattern $bCarrierGatewayState_Available :: CarrierGatewayState
$mCarrierGatewayState_Available :: forall {r}.
CarrierGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
CarrierGatewayState_Available = CarrierGatewayState' "available"

pattern CarrierGatewayState_Deleted :: CarrierGatewayState
pattern $bCarrierGatewayState_Deleted :: CarrierGatewayState
$mCarrierGatewayState_Deleted :: forall {r}.
CarrierGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
CarrierGatewayState_Deleted = CarrierGatewayState' "deleted"

pattern CarrierGatewayState_Deleting :: CarrierGatewayState
pattern $bCarrierGatewayState_Deleting :: CarrierGatewayState
$mCarrierGatewayState_Deleting :: forall {r}.
CarrierGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
CarrierGatewayState_Deleting = CarrierGatewayState' "deleting"

pattern CarrierGatewayState_Pending :: CarrierGatewayState
pattern $bCarrierGatewayState_Pending :: CarrierGatewayState
$mCarrierGatewayState_Pending :: forall {r}.
CarrierGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
CarrierGatewayState_Pending = CarrierGatewayState' "pending"

{-# COMPLETE
  CarrierGatewayState_Available,
  CarrierGatewayState_Deleted,
  CarrierGatewayState_Deleting,
  CarrierGatewayState_Pending,
  CarrierGatewayState'
  #-}