module Stratosphere.MediaLive.Channel.ThumbnailConfigurationProperty (
        ThumbnailConfigurationProperty(..),
        mkThumbnailConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThumbnailConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-thumbnailconfiguration.html>
    ThumbnailConfigurationProperty {ThumbnailConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-thumbnailconfiguration.html#cfn-medialive-channel-thumbnailconfiguration-state>
                                    ThumbnailConfigurationProperty -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
(ThumbnailConfigurationProperty
 -> ThumbnailConfigurationProperty -> Bool)
-> (ThumbnailConfigurationProperty
    -> ThumbnailConfigurationProperty -> Bool)
-> Eq ThumbnailConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
== :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
$c/= :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
/= :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
Prelude.Eq, Int -> ThumbnailConfigurationProperty -> ShowS
[ThumbnailConfigurationProperty] -> ShowS
ThumbnailConfigurationProperty -> String
(Int -> ThumbnailConfigurationProperty -> ShowS)
-> (ThumbnailConfigurationProperty -> String)
-> ([ThumbnailConfigurationProperty] -> ShowS)
-> Show ThumbnailConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThumbnailConfigurationProperty -> ShowS
showsPrec :: Int -> ThumbnailConfigurationProperty -> ShowS
$cshow :: ThumbnailConfigurationProperty -> String
show :: ThumbnailConfigurationProperty -> String
$cshowList :: [ThumbnailConfigurationProperty] -> ShowS
showList :: [ThumbnailConfigurationProperty] -> ShowS
Prelude.Show)
mkThumbnailConfigurationProperty :: ThumbnailConfigurationProperty
mkThumbnailConfigurationProperty :: ThumbnailConfigurationProperty
mkThumbnailConfigurationProperty
  = ThumbnailConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), state :: Maybe (Value Text)
state = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ThumbnailConfigurationProperty where
  toResourceProperties :: ThumbnailConfigurationProperty -> ResourceProperties
toResourceProperties ThumbnailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
state :: ThumbnailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.ThumbnailConfiguration",
         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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"State" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
state])}
instance JSON.ToJSON ThumbnailConfigurationProperty where
  toJSON :: ThumbnailConfigurationProperty -> Value
toJSON ThumbnailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
state :: ThumbnailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
    = [(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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"State" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
state]))
instance Property "State" ThumbnailConfigurationProperty where
  type PropertyType "State" ThumbnailConfigurationProperty = Value Prelude.Text
  set :: PropertyType "State" ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> ThumbnailConfigurationProperty
set PropertyType "State" ThumbnailConfigurationProperty
newValue ThumbnailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
state :: ThumbnailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
    = ThumbnailConfigurationProperty
        {state :: Maybe (Value Text)
state = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "State" ThumbnailConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}