{-# 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.GroundStation.Types.BandwidthUnits
-- 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.GroundStation.Types.BandwidthUnits
  ( BandwidthUnits
      ( ..,
        BandwidthUnits_GHz,
        BandwidthUnits_KHz,
        BandwidthUnits_MHz
      ),
  )
where

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

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

pattern BandwidthUnits_GHz :: BandwidthUnits
pattern $bBandwidthUnits_GHz :: BandwidthUnits
$mBandwidthUnits_GHz :: forall {r}. BandwidthUnits -> ((# #) -> r) -> ((# #) -> r) -> r
BandwidthUnits_GHz = BandwidthUnits' "GHz"

pattern BandwidthUnits_KHz :: BandwidthUnits
pattern $bBandwidthUnits_KHz :: BandwidthUnits
$mBandwidthUnits_KHz :: forall {r}. BandwidthUnits -> ((# #) -> r) -> ((# #) -> r) -> r
BandwidthUnits_KHz = BandwidthUnits' "kHz"

pattern BandwidthUnits_MHz :: BandwidthUnits
pattern $bBandwidthUnits_MHz :: BandwidthUnits
$mBandwidthUnits_MHz :: forall {r}. BandwidthUnits -> ((# #) -> r) -> ((# #) -> r) -> r
BandwidthUnits_MHz = BandwidthUnits' "MHz"

{-# COMPLETE
  BandwidthUnits_GHz,
  BandwidthUnits_KHz,
  BandwidthUnits_MHz,
  BandwidthUnits'
  #-}