module Stratosphere.QuickSight.Template.TableFieldURLConfigurationProperty (
        module Exports, TableFieldURLConfigurationProperty(..),
        mkTableFieldURLConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.TableFieldImageConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.TableFieldLinkConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data TableFieldURLConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-tablefieldurlconfiguration.html>
    TableFieldURLConfigurationProperty {TableFieldURLConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-tablefieldurlconfiguration.html#cfn-quicksight-template-tablefieldurlconfiguration-imageconfiguration>
                                        TableFieldURLConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
imageConfiguration :: (Prelude.Maybe TableFieldImageConfigurationProperty),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-tablefieldurlconfiguration.html#cfn-quicksight-template-tablefieldurlconfiguration-linkconfiguration>
                                        TableFieldURLConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
linkConfiguration :: (Prelude.Maybe TableFieldLinkConfigurationProperty)}
  deriving stock (TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty -> Bool
(TableFieldURLConfigurationProperty
 -> TableFieldURLConfigurationProperty -> Bool)
-> (TableFieldURLConfigurationProperty
    -> TableFieldURLConfigurationProperty -> Bool)
-> Eq TableFieldURLConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty -> Bool
== :: TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty -> Bool
$c/= :: TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty -> Bool
/= :: TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty -> Bool
Prelude.Eq, Int -> TableFieldURLConfigurationProperty -> ShowS
[TableFieldURLConfigurationProperty] -> ShowS
TableFieldURLConfigurationProperty -> String
(Int -> TableFieldURLConfigurationProperty -> ShowS)
-> (TableFieldURLConfigurationProperty -> String)
-> ([TableFieldURLConfigurationProperty] -> ShowS)
-> Show TableFieldURLConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableFieldURLConfigurationProperty -> ShowS
showsPrec :: Int -> TableFieldURLConfigurationProperty -> ShowS
$cshow :: TableFieldURLConfigurationProperty -> String
show :: TableFieldURLConfigurationProperty -> String
$cshowList :: [TableFieldURLConfigurationProperty] -> ShowS
showList :: [TableFieldURLConfigurationProperty] -> ShowS
Prelude.Show)
mkTableFieldURLConfigurationProperty ::
  TableFieldURLConfigurationProperty
mkTableFieldURLConfigurationProperty :: TableFieldURLConfigurationProperty
mkTableFieldURLConfigurationProperty
  = TableFieldURLConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), imageConfiguration :: Maybe TableFieldImageConfigurationProperty
imageConfiguration = Maybe TableFieldImageConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
linkConfiguration = Maybe TableFieldLinkConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableFieldURLConfigurationProperty where
  toResourceProperties :: TableFieldURLConfigurationProperty -> ResourceProperties
toResourceProperties TableFieldURLConfigurationProperty {Maybe TableFieldImageConfigurationProperty
Maybe TableFieldLinkConfigurationProperty
()
haddock_workaround_ :: TableFieldURLConfigurationProperty -> ()
imageConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
linkConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.TableFieldURLConfiguration",
         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 -> TableFieldImageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (TableFieldImageConfigurationProperty -> (Key, Value))
-> Maybe TableFieldImageConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldImageConfigurationProperty
imageConfiguration,
                            Key -> TableFieldLinkConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LinkConfiguration" (TableFieldLinkConfigurationProperty -> (Key, Value))
-> Maybe TableFieldLinkConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldLinkConfigurationProperty
linkConfiguration])}
instance JSON.ToJSON TableFieldURLConfigurationProperty where
  toJSON :: TableFieldURLConfigurationProperty -> Value
toJSON TableFieldURLConfigurationProperty {Maybe TableFieldImageConfigurationProperty
Maybe TableFieldLinkConfigurationProperty
()
haddock_workaround_ :: TableFieldURLConfigurationProperty -> ()
imageConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
linkConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
..}
    = [(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 -> TableFieldImageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (TableFieldImageConfigurationProperty -> (Key, Value))
-> Maybe TableFieldImageConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldImageConfigurationProperty
imageConfiguration,
               Key -> TableFieldLinkConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LinkConfiguration" (TableFieldLinkConfigurationProperty -> (Key, Value))
-> Maybe TableFieldLinkConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldLinkConfigurationProperty
linkConfiguration]))
instance Property "ImageConfiguration" TableFieldURLConfigurationProperty where
  type PropertyType "ImageConfiguration" TableFieldURLConfigurationProperty = TableFieldImageConfigurationProperty
  set :: PropertyType
  "ImageConfiguration" TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty
set PropertyType
  "ImageConfiguration" TableFieldURLConfigurationProperty
newValue TableFieldURLConfigurationProperty {Maybe TableFieldImageConfigurationProperty
Maybe TableFieldLinkConfigurationProperty
()
haddock_workaround_ :: TableFieldURLConfigurationProperty -> ()
imageConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
linkConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
..}
    = TableFieldURLConfigurationProperty
        {imageConfiguration :: Maybe TableFieldImageConfigurationProperty
imageConfiguration = TableFieldImageConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ImageConfiguration" TableFieldURLConfigurationProperty
TableFieldImageConfigurationProperty
newValue, Maybe TableFieldLinkConfigurationProperty
()
haddock_workaround_ :: ()
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
haddock_workaround_ :: ()
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
..}
instance Property "LinkConfiguration" TableFieldURLConfigurationProperty where
  type PropertyType "LinkConfiguration" TableFieldURLConfigurationProperty = TableFieldLinkConfigurationProperty
  set :: PropertyType "LinkConfiguration" TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty
-> TableFieldURLConfigurationProperty
set PropertyType "LinkConfiguration" TableFieldURLConfigurationProperty
newValue TableFieldURLConfigurationProperty {Maybe TableFieldImageConfigurationProperty
Maybe TableFieldLinkConfigurationProperty
()
haddock_workaround_ :: TableFieldURLConfigurationProperty -> ()
imageConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldImageConfigurationProperty
linkConfiguration :: TableFieldURLConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
..}
    = TableFieldURLConfigurationProperty
        {linkConfiguration :: Maybe TableFieldLinkConfigurationProperty
linkConfiguration = TableFieldLinkConfigurationProperty
-> Maybe TableFieldLinkConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LinkConfiguration" TableFieldURLConfigurationProperty
TableFieldLinkConfigurationProperty
newValue, Maybe TableFieldImageConfigurationProperty
()
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe TableFieldImageConfigurationProperty
..}