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