{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.StepFunctions.Types.CloudWatchEventsExecutionDataDetails
-- 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.StepFunctions.Types.CloudWatchEventsExecutionDataDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides details about execution input or output.
--
-- /See:/ 'newCloudWatchEventsExecutionDataDetails' smart constructor.
data CloudWatchEventsExecutionDataDetails = CloudWatchEventsExecutionDataDetails'
  { -- | Indicates whether input or output was included in the response. Always
    -- @true@ for API calls.
    CloudWatchEventsExecutionDataDetails -> Maybe Bool
included :: Prelude.Maybe Prelude.Bool
  }
  deriving (CloudWatchEventsExecutionDataDetails
-> CloudWatchEventsExecutionDataDetails -> Bool
(CloudWatchEventsExecutionDataDetails
 -> CloudWatchEventsExecutionDataDetails -> Bool)
-> (CloudWatchEventsExecutionDataDetails
    -> CloudWatchEventsExecutionDataDetails -> Bool)
-> Eq CloudWatchEventsExecutionDataDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CloudWatchEventsExecutionDataDetails
-> CloudWatchEventsExecutionDataDetails -> Bool
$c/= :: CloudWatchEventsExecutionDataDetails
-> CloudWatchEventsExecutionDataDetails -> Bool
== :: CloudWatchEventsExecutionDataDetails
-> CloudWatchEventsExecutionDataDetails -> Bool
$c== :: CloudWatchEventsExecutionDataDetails
-> CloudWatchEventsExecutionDataDetails -> Bool
Prelude.Eq, ReadPrec [CloudWatchEventsExecutionDataDetails]
ReadPrec CloudWatchEventsExecutionDataDetails
Int -> ReadS CloudWatchEventsExecutionDataDetails
ReadS [CloudWatchEventsExecutionDataDetails]
(Int -> ReadS CloudWatchEventsExecutionDataDetails)
-> ReadS [CloudWatchEventsExecutionDataDetails]
-> ReadPrec CloudWatchEventsExecutionDataDetails
-> ReadPrec [CloudWatchEventsExecutionDataDetails]
-> Read CloudWatchEventsExecutionDataDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CloudWatchEventsExecutionDataDetails]
$creadListPrec :: ReadPrec [CloudWatchEventsExecutionDataDetails]
readPrec :: ReadPrec CloudWatchEventsExecutionDataDetails
$creadPrec :: ReadPrec CloudWatchEventsExecutionDataDetails
readList :: ReadS [CloudWatchEventsExecutionDataDetails]
$creadList :: ReadS [CloudWatchEventsExecutionDataDetails]
readsPrec :: Int -> ReadS CloudWatchEventsExecutionDataDetails
$creadsPrec :: Int -> ReadS CloudWatchEventsExecutionDataDetails
Prelude.Read, Int -> CloudWatchEventsExecutionDataDetails -> ShowS
[CloudWatchEventsExecutionDataDetails] -> ShowS
CloudWatchEventsExecutionDataDetails -> String
(Int -> CloudWatchEventsExecutionDataDetails -> ShowS)
-> (CloudWatchEventsExecutionDataDetails -> String)
-> ([CloudWatchEventsExecutionDataDetails] -> ShowS)
-> Show CloudWatchEventsExecutionDataDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CloudWatchEventsExecutionDataDetails] -> ShowS
$cshowList :: [CloudWatchEventsExecutionDataDetails] -> ShowS
show :: CloudWatchEventsExecutionDataDetails -> String
$cshow :: CloudWatchEventsExecutionDataDetails -> String
showsPrec :: Int -> CloudWatchEventsExecutionDataDetails -> ShowS
$cshowsPrec :: Int -> CloudWatchEventsExecutionDataDetails -> ShowS
Prelude.Show, (forall x.
 CloudWatchEventsExecutionDataDetails
 -> Rep CloudWatchEventsExecutionDataDetails x)
-> (forall x.
    Rep CloudWatchEventsExecutionDataDetails x
    -> CloudWatchEventsExecutionDataDetails)
-> Generic CloudWatchEventsExecutionDataDetails
forall x.
Rep CloudWatchEventsExecutionDataDetails x
-> CloudWatchEventsExecutionDataDetails
forall x.
CloudWatchEventsExecutionDataDetails
-> Rep CloudWatchEventsExecutionDataDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CloudWatchEventsExecutionDataDetails x
-> CloudWatchEventsExecutionDataDetails
$cfrom :: forall x.
CloudWatchEventsExecutionDataDetails
-> Rep CloudWatchEventsExecutionDataDetails x
Prelude.Generic)

-- |
-- Create a value of 'CloudWatchEventsExecutionDataDetails' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'included', 'cloudWatchEventsExecutionDataDetails_included' - Indicates whether input or output was included in the response. Always
-- @true@ for API calls.
newCloudWatchEventsExecutionDataDetails ::
  CloudWatchEventsExecutionDataDetails
newCloudWatchEventsExecutionDataDetails :: CloudWatchEventsExecutionDataDetails
newCloudWatchEventsExecutionDataDetails =
  CloudWatchEventsExecutionDataDetails' :: Maybe Bool -> CloudWatchEventsExecutionDataDetails
CloudWatchEventsExecutionDataDetails'
    { $sel:included:CloudWatchEventsExecutionDataDetails' :: Maybe Bool
included =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing
    }

-- | Indicates whether input or output was included in the response. Always
-- @true@ for API calls.
cloudWatchEventsExecutionDataDetails_included :: Lens.Lens' CloudWatchEventsExecutionDataDetails (Prelude.Maybe Prelude.Bool)
cloudWatchEventsExecutionDataDetails_included :: (Maybe Bool -> f (Maybe Bool))
-> CloudWatchEventsExecutionDataDetails
-> f CloudWatchEventsExecutionDataDetails
cloudWatchEventsExecutionDataDetails_included = (CloudWatchEventsExecutionDataDetails -> Maybe Bool)
-> (CloudWatchEventsExecutionDataDetails
    -> Maybe Bool -> CloudWatchEventsExecutionDataDetails)
-> Lens
     CloudWatchEventsExecutionDataDetails
     CloudWatchEventsExecutionDataDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloudWatchEventsExecutionDataDetails' {Maybe Bool
included :: Maybe Bool
$sel:included:CloudWatchEventsExecutionDataDetails' :: CloudWatchEventsExecutionDataDetails -> Maybe Bool
included} -> Maybe Bool
included) (\s :: CloudWatchEventsExecutionDataDetails
s@CloudWatchEventsExecutionDataDetails' {} Maybe Bool
a -> CloudWatchEventsExecutionDataDetails
s {$sel:included:CloudWatchEventsExecutionDataDetails' :: Maybe Bool
included = Maybe Bool
a} :: CloudWatchEventsExecutionDataDetails)

instance
  Core.FromJSON
    CloudWatchEventsExecutionDataDetails
  where
  parseJSON :: Value -> Parser CloudWatchEventsExecutionDataDetails
parseJSON =
    String
-> (Object -> Parser CloudWatchEventsExecutionDataDetails)
-> Value
-> Parser CloudWatchEventsExecutionDataDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"CloudWatchEventsExecutionDataDetails"
      ( \Object
x ->
          Maybe Bool -> CloudWatchEventsExecutionDataDetails
CloudWatchEventsExecutionDataDetails'
            (Maybe Bool -> CloudWatchEventsExecutionDataDetails)
-> Parser (Maybe Bool)
-> Parser CloudWatchEventsExecutionDataDetails
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"included")
      )

instance
  Prelude.Hashable
    CloudWatchEventsExecutionDataDetails

instance
  Prelude.NFData
    CloudWatchEventsExecutionDataDetails