{-# 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.Outposts.Types.UplinkGbps
-- 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.Outposts.Types.UplinkGbps
  ( UplinkGbps
      ( ..,
        UplinkGbps_UPLINK_100G,
        UplinkGbps_UPLINK_10G,
        UplinkGbps_UPLINK_1G,
        UplinkGbps_UPLINK_40G
      ),
  )
where

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

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

pattern UplinkGbps_UPLINK_100G :: UplinkGbps
pattern $bUplinkGbps_UPLINK_100G :: UplinkGbps
$mUplinkGbps_UPLINK_100G :: forall {r}. UplinkGbps -> ((# #) -> r) -> ((# #) -> r) -> r
UplinkGbps_UPLINK_100G = UplinkGbps' "UPLINK_100G"

pattern UplinkGbps_UPLINK_10G :: UplinkGbps
pattern $bUplinkGbps_UPLINK_10G :: UplinkGbps
$mUplinkGbps_UPLINK_10G :: forall {r}. UplinkGbps -> ((# #) -> r) -> ((# #) -> r) -> r
UplinkGbps_UPLINK_10G = UplinkGbps' "UPLINK_10G"

pattern UplinkGbps_UPLINK_1G :: UplinkGbps
pattern $bUplinkGbps_UPLINK_1G :: UplinkGbps
$mUplinkGbps_UPLINK_1G :: forall {r}. UplinkGbps -> ((# #) -> r) -> ((# #) -> r) -> r
UplinkGbps_UPLINK_1G = UplinkGbps' "UPLINK_1G"

pattern UplinkGbps_UPLINK_40G :: UplinkGbps
pattern $bUplinkGbps_UPLINK_40G :: UplinkGbps
$mUplinkGbps_UPLINK_40G :: forall {r}. UplinkGbps -> ((# #) -> r) -> ((# #) -> r) -> r
UplinkGbps_UPLINK_40G = UplinkGbps' "UPLINK_40G"

{-# COMPLETE
  UplinkGbps_UPLINK_100G,
  UplinkGbps_UPLINK_10G,
  UplinkGbps_UPLINK_1G,
  UplinkGbps_UPLINK_40G,
  UplinkGbps'
  #-}