module Stratosphere.QBusiness.Index.TextDocumentStatisticsProperty (
        TextDocumentStatisticsProperty(..),
        mkTextDocumentStatisticsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TextDocumentStatisticsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-textdocumentstatistics.html>
    TextDocumentStatisticsProperty {TextDocumentStatisticsProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-textdocumentstatistics.html#cfn-qbusiness-index-textdocumentstatistics-indexedtextbytes>
                                    TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextBytes :: (Prelude.Maybe (Value Prelude.Double)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-index-textdocumentstatistics.html#cfn-qbusiness-index-textdocumentstatistics-indexedtextdocumentcount>
                                    TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextDocumentCount :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> Bool
(TextDocumentStatisticsProperty
 -> TextDocumentStatisticsProperty -> Bool)
-> (TextDocumentStatisticsProperty
    -> TextDocumentStatisticsProperty -> Bool)
-> Eq TextDocumentStatisticsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> Bool
== :: TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> Bool
$c/= :: TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> Bool
/= :: TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> Bool
Prelude.Eq, Int -> TextDocumentStatisticsProperty -> ShowS
[TextDocumentStatisticsProperty] -> ShowS
TextDocumentStatisticsProperty -> String
(Int -> TextDocumentStatisticsProperty -> ShowS)
-> (TextDocumentStatisticsProperty -> String)
-> ([TextDocumentStatisticsProperty] -> ShowS)
-> Show TextDocumentStatisticsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TextDocumentStatisticsProperty -> ShowS
showsPrec :: Int -> TextDocumentStatisticsProperty -> ShowS
$cshow :: TextDocumentStatisticsProperty -> String
show :: TextDocumentStatisticsProperty -> String
$cshowList :: [TextDocumentStatisticsProperty] -> ShowS
showList :: [TextDocumentStatisticsProperty] -> ShowS
Prelude.Show)
mkTextDocumentStatisticsProperty :: TextDocumentStatisticsProperty
mkTextDocumentStatisticsProperty :: TextDocumentStatisticsProperty
mkTextDocumentStatisticsProperty
  = TextDocumentStatisticsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), indexedTextBytes :: Maybe (Value Double)
indexedTextBytes = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       indexedTextDocumentCount :: Maybe (Value Double)
indexedTextDocumentCount = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TextDocumentStatisticsProperty where
  toResourceProperties :: TextDocumentStatisticsProperty -> ResourceProperties
toResourceProperties TextDocumentStatisticsProperty {Maybe (Value Double)
()
haddock_workaround_ :: TextDocumentStatisticsProperty -> ()
indexedTextBytes :: TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextDocumentCount :: TextDocumentStatisticsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
indexedTextDocumentCount :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::Index.TextDocumentStatistics",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexedTextBytes" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
indexedTextBytes,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexedTextDocumentCount"
                              (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
indexedTextDocumentCount])}
instance JSON.ToJSON TextDocumentStatisticsProperty where
  toJSON :: TextDocumentStatisticsProperty -> Value
toJSON TextDocumentStatisticsProperty {Maybe (Value Double)
()
haddock_workaround_ :: TextDocumentStatisticsProperty -> ()
indexedTextBytes :: TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextDocumentCount :: TextDocumentStatisticsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
indexedTextDocumentCount :: Maybe (Value Double)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexedTextBytes" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
indexedTextBytes,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IndexedTextDocumentCount"
                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
indexedTextDocumentCount]))
instance Property "IndexedTextBytes" TextDocumentStatisticsProperty where
  type PropertyType "IndexedTextBytes" TextDocumentStatisticsProperty = Value Prelude.Double
  set :: PropertyType "IndexedTextBytes" TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> TextDocumentStatisticsProperty
set PropertyType "IndexedTextBytes" TextDocumentStatisticsProperty
newValue TextDocumentStatisticsProperty {Maybe (Value Double)
()
haddock_workaround_ :: TextDocumentStatisticsProperty -> ()
indexedTextBytes :: TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextDocumentCount :: TextDocumentStatisticsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
indexedTextDocumentCount :: Maybe (Value Double)
..}
    = TextDocumentStatisticsProperty
        {indexedTextBytes :: Maybe (Value Double)
indexedTextBytes = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IndexedTextBytes" TextDocumentStatisticsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
indexedTextDocumentCount :: Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextDocumentCount :: Maybe (Value Double)
..}
instance Property "IndexedTextDocumentCount" TextDocumentStatisticsProperty where
  type PropertyType "IndexedTextDocumentCount" TextDocumentStatisticsProperty = Value Prelude.Double
  set :: PropertyType
  "IndexedTextDocumentCount" TextDocumentStatisticsProperty
-> TextDocumentStatisticsProperty -> TextDocumentStatisticsProperty
set PropertyType
  "IndexedTextDocumentCount" TextDocumentStatisticsProperty
newValue TextDocumentStatisticsProperty {Maybe (Value Double)
()
haddock_workaround_ :: TextDocumentStatisticsProperty -> ()
indexedTextBytes :: TextDocumentStatisticsProperty -> Maybe (Value Double)
indexedTextDocumentCount :: TextDocumentStatisticsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
indexedTextDocumentCount :: Maybe (Value Double)
..}
    = TextDocumentStatisticsProperty
        {indexedTextDocumentCount :: Maybe (Value Double)
indexedTextDocumentCount = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IndexedTextDocumentCount" TextDocumentStatisticsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
haddock_workaround_ :: ()
indexedTextBytes :: Maybe (Value Double)
..}