{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

-- | Whether or not AWS includes resource IDs in the report.
newtype SchemaElement = SchemaElement'
  { SchemaElement -> Text
fromSchemaElement ::
      Core.Text
  }
  deriving stock
    ( Int -> SchemaElement -> ShowS
[SchemaElement] -> ShowS
SchemaElement -> String
(Int -> SchemaElement -> ShowS)
-> (SchemaElement -> String)
-> ([SchemaElement] -> ShowS)
-> Show SchemaElement
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]
(Int -> ReadS SchemaElement)
-> ReadS [SchemaElement]
-> ReadPrec SchemaElement
-> ReadPrec [SchemaElement]
-> Read 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
(SchemaElement -> SchemaElement -> Bool)
-> (SchemaElement -> SchemaElement -> Bool) -> Eq SchemaElement
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
Eq SchemaElement
-> (SchemaElement -> SchemaElement -> Ordering)
-> (SchemaElement -> SchemaElement -> Bool)
-> (SchemaElement -> SchemaElement -> Bool)
-> (SchemaElement -> SchemaElement -> Bool)
-> (SchemaElement -> SchemaElement -> Bool)
-> (SchemaElement -> SchemaElement -> SchemaElement)
-> (SchemaElement -> SchemaElement -> SchemaElement)
-> Ord 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
$cp1Ord :: Eq SchemaElement
Prelude.Ord,
      (forall x. SchemaElement -> Rep SchemaElement x)
-> (forall x. Rep SchemaElement x -> SchemaElement)
-> Generic SchemaElement
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
    ( Int -> SchemaElement -> Int
SchemaElement -> Int
(Int -> SchemaElement -> Int)
-> (SchemaElement -> Int) -> Hashable SchemaElement
forall 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 -> ()
(SchemaElement -> ()) -> NFData SchemaElement
forall a. (a -> ()) -> NFData a
rnf :: SchemaElement -> ()
$crnf :: SchemaElement -> ()
Prelude.NFData,
      Text -> Either String SchemaElement
(Text -> Either String SchemaElement) -> FromText SchemaElement
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SchemaElement
$cfromText :: Text -> Either String SchemaElement
Core.FromText,
      SchemaElement -> Text
(SchemaElement -> Text) -> ToText SchemaElement
forall a. (a -> Text) -> ToText a
toText :: SchemaElement -> Text
$ctoText :: SchemaElement -> Text
Core.ToText,
      SchemaElement -> ByteString
(SchemaElement -> ByteString) -> ToByteString SchemaElement
forall a. (a -> ByteString) -> ToByteString a
toBS :: SchemaElement -> ByteString
$ctoBS :: SchemaElement -> ByteString
Core.ToByteString,
      SchemaElement -> ByteStringBuilder
(SchemaElement -> ByteStringBuilder) -> ToLog SchemaElement
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SchemaElement -> ByteStringBuilder
$cbuild :: SchemaElement -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SchemaElement -> [Header]
(HeaderName -> SchemaElement -> [Header]) -> ToHeader SchemaElement
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SchemaElement -> [Header]
$ctoHeader :: HeaderName -> SchemaElement -> [Header]
Core.ToHeader,
      SchemaElement -> QueryString
(SchemaElement -> QueryString) -> ToQuery SchemaElement
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SchemaElement -> QueryString
$ctoQuery :: SchemaElement -> QueryString
Core.ToQuery,
      Value -> Parser [SchemaElement]
Value -> Parser SchemaElement
(Value -> Parser SchemaElement)
-> (Value -> Parser [SchemaElement]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SchemaElement]
FromJSONKeyFunction SchemaElement
FromJSONKeyFunction SchemaElement
-> FromJSONKeyFunction [SchemaElement] -> FromJSONKey SchemaElement
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SchemaElement]
$cfromJSONKeyList :: FromJSONKeyFunction [SchemaElement]
fromJSONKey :: FromJSONKeyFunction SchemaElement
$cfromJSONKey :: FromJSONKeyFunction SchemaElement
Core.FromJSONKey,
      [SchemaElement] -> Encoding
[SchemaElement] -> Value
SchemaElement -> Encoding
SchemaElement -> Value
(SchemaElement -> Value)
-> (SchemaElement -> Encoding)
-> ([SchemaElement] -> Value)
-> ([SchemaElement] -> Encoding)
-> ToJSON SchemaElement
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
Core.ToJSON,
      ToJSONKeyFunction [SchemaElement]
ToJSONKeyFunction SchemaElement
ToJSONKeyFunction SchemaElement
-> ToJSONKeyFunction [SchemaElement] -> ToJSONKey SchemaElement
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SchemaElement]
$ctoJSONKeyList :: ToJSONKeyFunction [SchemaElement]
toJSONKey :: ToJSONKeyFunction SchemaElement
$ctoJSONKey :: ToJSONKeyFunction SchemaElement
Core.ToJSONKey,
      [Node] -> Either String SchemaElement
([Node] -> Either String SchemaElement) -> FromXML SchemaElement
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SchemaElement
$cparseXML :: [Node] -> Either String SchemaElement
Core.FromXML,
      SchemaElement -> XML
(SchemaElement -> XML) -> ToXML SchemaElement
forall a. (a -> XML) -> ToXML a
toXML :: SchemaElement -> XML
$ctoXML :: SchemaElement -> XML
Core.ToXML
    )

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

{-# COMPLETE
  SchemaElement_RESOURCES,
  SchemaElement'
  #-}