{-# 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.PrivateNetworks.Types.ElevationReference
-- 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.PrivateNetworks.Types.ElevationReference
  ( ElevationReference
      ( ..,
        ElevationReference_AGL,
        ElevationReference_AMSL
      ),
  )
where

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

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

pattern ElevationReference_AGL :: ElevationReference
pattern $bElevationReference_AGL :: ElevationReference
$mElevationReference_AGL :: forall {r}. ElevationReference -> ((# #) -> r) -> ((# #) -> r) -> r
ElevationReference_AGL = ElevationReference' "AGL"

pattern ElevationReference_AMSL :: ElevationReference
pattern $bElevationReference_AMSL :: ElevationReference
$mElevationReference_AMSL :: forall {r}. ElevationReference -> ((# #) -> r) -> ((# #) -> r) -> r
ElevationReference_AMSL = ElevationReference' "AMSL"

{-# COMPLETE
  ElevationReference_AGL,
  ElevationReference_AMSL,
  ElevationReference'
  #-}