module Stratosphere.MediaTailor.PlaybackConfiguration.AdConditioningConfigurationProperty (
        AdConditioningConfigurationProperty(..),
        mkAdConditioningConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AdConditioningConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-adconditioningconfiguration.html>
    AdConditioningConfigurationProperty {AdConditioningConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-adconditioningconfiguration.html#cfn-mediatailor-playbackconfiguration-adconditioningconfiguration-streamingmediafileconditioning>
                                         AdConditioningConfigurationProperty -> Value Text
streamingMediaFileConditioning :: (Value Prelude.Text)}
  deriving stock (AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty -> Bool
(AdConditioningConfigurationProperty
 -> AdConditioningConfigurationProperty -> Bool)
-> (AdConditioningConfigurationProperty
    -> AdConditioningConfigurationProperty -> Bool)
-> Eq AdConditioningConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty -> Bool
== :: AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty -> Bool
$c/= :: AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty -> Bool
/= :: AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty -> Bool
Prelude.Eq, Int -> AdConditioningConfigurationProperty -> ShowS
[AdConditioningConfigurationProperty] -> ShowS
AdConditioningConfigurationProperty -> String
(Int -> AdConditioningConfigurationProperty -> ShowS)
-> (AdConditioningConfigurationProperty -> String)
-> ([AdConditioningConfigurationProperty] -> ShowS)
-> Show AdConditioningConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AdConditioningConfigurationProperty -> ShowS
showsPrec :: Int -> AdConditioningConfigurationProperty -> ShowS
$cshow :: AdConditioningConfigurationProperty -> String
show :: AdConditioningConfigurationProperty -> String
$cshowList :: [AdConditioningConfigurationProperty] -> ShowS
showList :: [AdConditioningConfigurationProperty] -> ShowS
Prelude.Show)
mkAdConditioningConfigurationProperty ::
  Value Prelude.Text -> AdConditioningConfigurationProperty
mkAdConditioningConfigurationProperty :: Value Text -> AdConditioningConfigurationProperty
mkAdConditioningConfigurationProperty
  Value Text
streamingMediaFileConditioning
  = AdConditioningConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       streamingMediaFileConditioning :: Value Text
streamingMediaFileConditioning = Value Text
streamingMediaFileConditioning}
instance ToResourceProperties AdConditioningConfigurationProperty where
  toResourceProperties :: AdConditioningConfigurationProperty -> ResourceProperties
toResourceProperties AdConditioningConfigurationProperty {()
Value Text
haddock_workaround_ :: AdConditioningConfigurationProperty -> ()
streamingMediaFileConditioning :: AdConditioningConfigurationProperty -> Value Text
haddock_workaround_ :: ()
streamingMediaFileConditioning :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::PlaybackConfiguration.AdConditioningConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"StreamingMediaFileConditioning"
                         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..= Value Text
streamingMediaFileConditioning]}
instance JSON.ToJSON AdConditioningConfigurationProperty where
  toJSON :: AdConditioningConfigurationProperty -> Value
toJSON AdConditioningConfigurationProperty {()
Value Text
haddock_workaround_ :: AdConditioningConfigurationProperty -> ()
streamingMediaFileConditioning :: AdConditioningConfigurationProperty -> Value Text
haddock_workaround_ :: ()
streamingMediaFileConditioning :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"StreamingMediaFileConditioning"
           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..= Value Text
streamingMediaFileConditioning]
instance Property "StreamingMediaFileConditioning" AdConditioningConfigurationProperty where
  type PropertyType "StreamingMediaFileConditioning" AdConditioningConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "StreamingMediaFileConditioning"
  AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty
-> AdConditioningConfigurationProperty
set PropertyType
  "StreamingMediaFileConditioning"
  AdConditioningConfigurationProperty
newValue AdConditioningConfigurationProperty {()
Value Text
haddock_workaround_ :: AdConditioningConfigurationProperty -> ()
streamingMediaFileConditioning :: AdConditioningConfigurationProperty -> Value Text
haddock_workaround_ :: ()
streamingMediaFileConditioning :: Value Text
..}
    = AdConditioningConfigurationProperty
        {streamingMediaFileConditioning :: Value Text
streamingMediaFileConditioning = PropertyType
  "StreamingMediaFileConditioning"
  AdConditioningConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}