{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.GroundStation.Types.BandwidthUnits
( BandwidthUnits
( ..,
BandwidthUnits_GHz,
BandwidthUnits_KHz,
BandwidthUnits_MHz
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BandwidthUnits = BandwidthUnits'
{ BandwidthUnits -> Text
fromBandwidthUnits ::
Core.Text
}
deriving stock
( Int -> BandwidthUnits -> ShowS
[BandwidthUnits] -> ShowS
BandwidthUnits -> String
(Int -> BandwidthUnits -> ShowS)
-> (BandwidthUnits -> String)
-> ([BandwidthUnits] -> ShowS)
-> Show BandwidthUnits
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BandwidthUnits] -> ShowS
$cshowList :: [BandwidthUnits] -> ShowS
show :: BandwidthUnits -> String
$cshow :: BandwidthUnits -> String
showsPrec :: Int -> BandwidthUnits -> ShowS
$cshowsPrec :: Int -> BandwidthUnits -> ShowS
Prelude.Show,
ReadPrec [BandwidthUnits]
ReadPrec BandwidthUnits
Int -> ReadS BandwidthUnits
ReadS [BandwidthUnits]
(Int -> ReadS BandwidthUnits)
-> ReadS [BandwidthUnits]
-> ReadPrec BandwidthUnits
-> ReadPrec [BandwidthUnits]
-> Read BandwidthUnits
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BandwidthUnits]
$creadListPrec :: ReadPrec [BandwidthUnits]
readPrec :: ReadPrec BandwidthUnits
$creadPrec :: ReadPrec BandwidthUnits
readList :: ReadS [BandwidthUnits]
$creadList :: ReadS [BandwidthUnits]
readsPrec :: Int -> ReadS BandwidthUnits
$creadsPrec :: Int -> ReadS BandwidthUnits
Prelude.Read,
BandwidthUnits -> BandwidthUnits -> Bool
(BandwidthUnits -> BandwidthUnits -> Bool)
-> (BandwidthUnits -> BandwidthUnits -> Bool) -> Eq BandwidthUnits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BandwidthUnits -> BandwidthUnits -> Bool
$c/= :: BandwidthUnits -> BandwidthUnits -> Bool
== :: BandwidthUnits -> BandwidthUnits -> Bool
$c== :: BandwidthUnits -> BandwidthUnits -> Bool
Prelude.Eq,
Eq BandwidthUnits
Eq BandwidthUnits
-> (BandwidthUnits -> BandwidthUnits -> Ordering)
-> (BandwidthUnits -> BandwidthUnits -> Bool)
-> (BandwidthUnits -> BandwidthUnits -> Bool)
-> (BandwidthUnits -> BandwidthUnits -> Bool)
-> (BandwidthUnits -> BandwidthUnits -> Bool)
-> (BandwidthUnits -> BandwidthUnits -> BandwidthUnits)
-> (BandwidthUnits -> BandwidthUnits -> BandwidthUnits)
-> Ord BandwidthUnits
BandwidthUnits -> BandwidthUnits -> Bool
BandwidthUnits -> BandwidthUnits -> Ordering
BandwidthUnits -> BandwidthUnits -> BandwidthUnits
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 :: BandwidthUnits -> BandwidthUnits -> BandwidthUnits
$cmin :: BandwidthUnits -> BandwidthUnits -> BandwidthUnits
max :: BandwidthUnits -> BandwidthUnits -> BandwidthUnits
$cmax :: BandwidthUnits -> BandwidthUnits -> BandwidthUnits
>= :: BandwidthUnits -> BandwidthUnits -> Bool
$c>= :: BandwidthUnits -> BandwidthUnits -> Bool
> :: BandwidthUnits -> BandwidthUnits -> Bool
$c> :: BandwidthUnits -> BandwidthUnits -> Bool
<= :: BandwidthUnits -> BandwidthUnits -> Bool
$c<= :: BandwidthUnits -> BandwidthUnits -> Bool
< :: BandwidthUnits -> BandwidthUnits -> Bool
$c< :: BandwidthUnits -> BandwidthUnits -> Bool
compare :: BandwidthUnits -> BandwidthUnits -> Ordering
$ccompare :: BandwidthUnits -> BandwidthUnits -> Ordering
$cp1Ord :: Eq BandwidthUnits
Prelude.Ord,
(forall x. BandwidthUnits -> Rep BandwidthUnits x)
-> (forall x. Rep BandwidthUnits x -> BandwidthUnits)
-> Generic BandwidthUnits
forall x. Rep BandwidthUnits x -> BandwidthUnits
forall x. BandwidthUnits -> Rep BandwidthUnits x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BandwidthUnits x -> BandwidthUnits
$cfrom :: forall x. BandwidthUnits -> Rep BandwidthUnits x
Prelude.Generic
)
deriving newtype
( Int -> BandwidthUnits -> Int
BandwidthUnits -> Int
(Int -> BandwidthUnits -> Int)
-> (BandwidthUnits -> Int) -> Hashable BandwidthUnits
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BandwidthUnits -> Int
$chash :: BandwidthUnits -> Int
hashWithSalt :: Int -> BandwidthUnits -> Int
$chashWithSalt :: Int -> BandwidthUnits -> Int
Prelude.Hashable,
BandwidthUnits -> ()
(BandwidthUnits -> ()) -> NFData BandwidthUnits
forall a. (a -> ()) -> NFData a
rnf :: BandwidthUnits -> ()
$crnf :: BandwidthUnits -> ()
Prelude.NFData,
Text -> Either String BandwidthUnits
(Text -> Either String BandwidthUnits) -> FromText BandwidthUnits
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BandwidthUnits
$cfromText :: Text -> Either String BandwidthUnits
Core.FromText,
BandwidthUnits -> Text
(BandwidthUnits -> Text) -> ToText BandwidthUnits
forall a. (a -> Text) -> ToText a
toText :: BandwidthUnits -> Text
$ctoText :: BandwidthUnits -> Text
Core.ToText,
BandwidthUnits -> ByteString
(BandwidthUnits -> ByteString) -> ToByteString BandwidthUnits
forall a. (a -> ByteString) -> ToByteString a
toBS :: BandwidthUnits -> ByteString
$ctoBS :: BandwidthUnits -> ByteString
Core.ToByteString,
BandwidthUnits -> ByteStringBuilder
(BandwidthUnits -> ByteStringBuilder) -> ToLog BandwidthUnits
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BandwidthUnits -> ByteStringBuilder
$cbuild :: BandwidthUnits -> ByteStringBuilder
Core.ToLog,
HeaderName -> BandwidthUnits -> [Header]
(HeaderName -> BandwidthUnits -> [Header])
-> ToHeader BandwidthUnits
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BandwidthUnits -> [Header]
$ctoHeader :: HeaderName -> BandwidthUnits -> [Header]
Core.ToHeader,
BandwidthUnits -> QueryString
(BandwidthUnits -> QueryString) -> ToQuery BandwidthUnits
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BandwidthUnits -> QueryString
$ctoQuery :: BandwidthUnits -> QueryString
Core.ToQuery,
Value -> Parser [BandwidthUnits]
Value -> Parser BandwidthUnits
(Value -> Parser BandwidthUnits)
-> (Value -> Parser [BandwidthUnits]) -> FromJSON BandwidthUnits
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BandwidthUnits]
$cparseJSONList :: Value -> Parser [BandwidthUnits]
parseJSON :: Value -> Parser BandwidthUnits
$cparseJSON :: Value -> Parser BandwidthUnits
Core.FromJSON,
FromJSONKeyFunction [BandwidthUnits]
FromJSONKeyFunction BandwidthUnits
FromJSONKeyFunction BandwidthUnits
-> FromJSONKeyFunction [BandwidthUnits]
-> FromJSONKey BandwidthUnits
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BandwidthUnits]
$cfromJSONKeyList :: FromJSONKeyFunction [BandwidthUnits]
fromJSONKey :: FromJSONKeyFunction BandwidthUnits
$cfromJSONKey :: FromJSONKeyFunction BandwidthUnits
Core.FromJSONKey,
[BandwidthUnits] -> Encoding
[BandwidthUnits] -> Value
BandwidthUnits -> Encoding
BandwidthUnits -> Value
(BandwidthUnits -> Value)
-> (BandwidthUnits -> Encoding)
-> ([BandwidthUnits] -> Value)
-> ([BandwidthUnits] -> Encoding)
-> ToJSON BandwidthUnits
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BandwidthUnits] -> Encoding
$ctoEncodingList :: [BandwidthUnits] -> Encoding
toJSONList :: [BandwidthUnits] -> Value
$ctoJSONList :: [BandwidthUnits] -> Value
toEncoding :: BandwidthUnits -> Encoding
$ctoEncoding :: BandwidthUnits -> Encoding
toJSON :: BandwidthUnits -> Value
$ctoJSON :: BandwidthUnits -> Value
Core.ToJSON,
ToJSONKeyFunction [BandwidthUnits]
ToJSONKeyFunction BandwidthUnits
ToJSONKeyFunction BandwidthUnits
-> ToJSONKeyFunction [BandwidthUnits] -> ToJSONKey BandwidthUnits
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BandwidthUnits]
$ctoJSONKeyList :: ToJSONKeyFunction [BandwidthUnits]
toJSONKey :: ToJSONKeyFunction BandwidthUnits
$ctoJSONKey :: ToJSONKeyFunction BandwidthUnits
Core.ToJSONKey,
[Node] -> Either String BandwidthUnits
([Node] -> Either String BandwidthUnits) -> FromXML BandwidthUnits
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BandwidthUnits
$cparseXML :: [Node] -> Either String BandwidthUnits
Core.FromXML,
BandwidthUnits -> XML
(BandwidthUnits -> XML) -> ToXML BandwidthUnits
forall a. (a -> XML) -> ToXML a
toXML :: BandwidthUnits -> XML
$ctoXML :: BandwidthUnits -> XML
Core.ToXML
)
pattern BandwidthUnits_GHz :: BandwidthUnits
pattern $bBandwidthUnits_GHz :: BandwidthUnits
$mBandwidthUnits_GHz :: forall r. BandwidthUnits -> (Void# -> r) -> (Void# -> r) -> r
BandwidthUnits_GHz = BandwidthUnits' "GHz"
pattern BandwidthUnits_KHz :: BandwidthUnits
pattern $bBandwidthUnits_KHz :: BandwidthUnits
$mBandwidthUnits_KHz :: forall r. BandwidthUnits -> (Void# -> r) -> (Void# -> r) -> r
BandwidthUnits_KHz = BandwidthUnits' "kHz"
pattern BandwidthUnits_MHz :: BandwidthUnits
pattern $bBandwidthUnits_MHz :: BandwidthUnits
$mBandwidthUnits_MHz :: forall r. BandwidthUnits -> (Void# -> r) -> (Void# -> r) -> r
BandwidthUnits_MHz = BandwidthUnits' "MHz"
{-# COMPLETE
BandwidthUnits_GHz,
BandwidthUnits_KHz,
BandwidthUnits_MHz,
BandwidthUnits'
#-}