{-# 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.CostAndUsageReport.Types.SchemaElement
-- 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.CostAndUsageReport.Types.SchemaElement
  ( SchemaElement
      ( ..,
        SchemaElement_RESOURCES
      ),
  )
where

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

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

pattern SchemaElement_RESOURCES :: SchemaElement
pattern $bSchemaElement_RESOURCES :: SchemaElement
$mSchemaElement_RESOURCES :: forall {r}. SchemaElement -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaElement_RESOURCES = SchemaElement' "RESOURCES"

{-# COMPLETE
  SchemaElement_RESOURCES,
  SchemaElement'
  #-}