module Stratosphere.QuickSight.Analysis.PluginVisualConfigurationProperty (
        module Exports, PluginVisualConfigurationProperty(..),
        mkPluginVisualConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.PluginVisualFieldWellProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.PluginVisualOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.PluginVisualSortConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data PluginVisualConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-pluginvisualconfiguration.html>
    PluginVisualConfigurationProperty {PluginVisualConfigurationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-pluginvisualconfiguration.html#cfn-quicksight-analysis-pluginvisualconfiguration-fieldwells>
                                       PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
fieldWells :: (Prelude.Maybe [PluginVisualFieldWellProperty]),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-pluginvisualconfiguration.html#cfn-quicksight-analysis-pluginvisualconfiguration-sortconfiguration>
                                       PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
sortConfiguration :: (Prelude.Maybe PluginVisualSortConfigurationProperty),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-pluginvisualconfiguration.html#cfn-quicksight-analysis-pluginvisualconfiguration-visualoptions>
                                       PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
visualOptions :: (Prelude.Maybe PluginVisualOptionsProperty)}
  deriving stock (PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty -> Bool
(PluginVisualConfigurationProperty
 -> PluginVisualConfigurationProperty -> Bool)
-> (PluginVisualConfigurationProperty
    -> PluginVisualConfigurationProperty -> Bool)
-> Eq PluginVisualConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty -> Bool
== :: PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty -> Bool
$c/= :: PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty -> Bool
/= :: PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty -> Bool
Prelude.Eq, Int -> PluginVisualConfigurationProperty -> ShowS
[PluginVisualConfigurationProperty] -> ShowS
PluginVisualConfigurationProperty -> String
(Int -> PluginVisualConfigurationProperty -> ShowS)
-> (PluginVisualConfigurationProperty -> String)
-> ([PluginVisualConfigurationProperty] -> ShowS)
-> Show PluginVisualConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PluginVisualConfigurationProperty -> ShowS
showsPrec :: Int -> PluginVisualConfigurationProperty -> ShowS
$cshow :: PluginVisualConfigurationProperty -> String
show :: PluginVisualConfigurationProperty -> String
$cshowList :: [PluginVisualConfigurationProperty] -> ShowS
showList :: [PluginVisualConfigurationProperty] -> ShowS
Prelude.Show)
mkPluginVisualConfigurationProperty ::
  PluginVisualConfigurationProperty
mkPluginVisualConfigurationProperty :: PluginVisualConfigurationProperty
mkPluginVisualConfigurationProperty
  = PluginVisualConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldWells :: Maybe [PluginVisualFieldWellProperty]
fieldWells = Maybe [PluginVisualFieldWellProperty]
forall a. Maybe a
Prelude.Nothing,
       sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
sortConfiguration = Maybe PluginVisualSortConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       visualOptions :: Maybe PluginVisualOptionsProperty
visualOptions = Maybe PluginVisualOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PluginVisualConfigurationProperty where
  toResourceProperties :: PluginVisualConfigurationProperty -> ResourceProperties
toResourceProperties PluginVisualConfigurationProperty {Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: PluginVisualConfigurationProperty -> ()
fieldWells :: PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
visualOptions :: PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.PluginVisualConfiguration",
         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 -> [PluginVisualFieldWellProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldWells" ([PluginVisualFieldWellProperty] -> (Key, Value))
-> Maybe [PluginVisualFieldWellProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PluginVisualFieldWellProperty]
fieldWells,
                            Key -> PluginVisualSortConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SortConfiguration" (PluginVisualSortConfigurationProperty -> (Key, Value))
-> Maybe PluginVisualSortConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PluginVisualSortConfigurationProperty
sortConfiguration,
                            Key -> PluginVisualOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VisualOptions" (PluginVisualOptionsProperty -> (Key, Value))
-> Maybe PluginVisualOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PluginVisualOptionsProperty
visualOptions])}
instance JSON.ToJSON PluginVisualConfigurationProperty where
  toJSON :: PluginVisualConfigurationProperty -> Value
toJSON PluginVisualConfigurationProperty {Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: PluginVisualConfigurationProperty -> ()
fieldWells :: PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
visualOptions :: PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
    = [(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 -> [PluginVisualFieldWellProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldWells" ([PluginVisualFieldWellProperty] -> (Key, Value))
-> Maybe [PluginVisualFieldWellProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PluginVisualFieldWellProperty]
fieldWells,
               Key -> PluginVisualSortConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SortConfiguration" (PluginVisualSortConfigurationProperty -> (Key, Value))
-> Maybe PluginVisualSortConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PluginVisualSortConfigurationProperty
sortConfiguration,
               Key -> PluginVisualOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VisualOptions" (PluginVisualOptionsProperty -> (Key, Value))
-> Maybe PluginVisualOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PluginVisualOptionsProperty
visualOptions]))
instance Property "FieldWells" PluginVisualConfigurationProperty where
  type PropertyType "FieldWells" PluginVisualConfigurationProperty = [PluginVisualFieldWellProperty]
  set :: PropertyType "FieldWells" PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
set PropertyType "FieldWells" PluginVisualConfigurationProperty
newValue PluginVisualConfigurationProperty {Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: PluginVisualConfigurationProperty -> ()
fieldWells :: PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
visualOptions :: PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
    = PluginVisualConfigurationProperty
        {fieldWells :: Maybe [PluginVisualFieldWellProperty]
fieldWells = [PluginVisualFieldWellProperty]
-> Maybe [PluginVisualFieldWellProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [PluginVisualFieldWellProperty]
PropertyType "FieldWells" PluginVisualConfigurationProperty
newValue, Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: ()
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
instance Property "SortConfiguration" PluginVisualConfigurationProperty where
  type PropertyType "SortConfiguration" PluginVisualConfigurationProperty = PluginVisualSortConfigurationProperty
  set :: PropertyType "SortConfiguration" PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
set PropertyType "SortConfiguration" PluginVisualConfigurationProperty
newValue PluginVisualConfigurationProperty {Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: PluginVisualConfigurationProperty -> ()
fieldWells :: PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
visualOptions :: PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
    = PluginVisualConfigurationProperty
        {sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
sortConfiguration = PluginVisualSortConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SortConfiguration" PluginVisualConfigurationProperty
PluginVisualSortConfigurationProperty
newValue, Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
()
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
visualOptions :: Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
visualOptions :: Maybe PluginVisualOptionsProperty
..}
instance Property "VisualOptions" PluginVisualConfigurationProperty where
  type PropertyType "VisualOptions" PluginVisualConfigurationProperty = PluginVisualOptionsProperty
  set :: PropertyType "VisualOptions" PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
-> PluginVisualConfigurationProperty
set PropertyType "VisualOptions" PluginVisualConfigurationProperty
newValue PluginVisualConfigurationProperty {Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualOptionsProperty
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: PluginVisualConfigurationProperty -> ()
fieldWells :: PluginVisualConfigurationProperty
-> Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: PluginVisualConfigurationProperty
-> Maybe PluginVisualSortConfigurationProperty
visualOptions :: PluginVisualConfigurationProperty
-> Maybe PluginVisualOptionsProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
visualOptions :: Maybe PluginVisualOptionsProperty
..}
    = PluginVisualConfigurationProperty
        {visualOptions :: Maybe PluginVisualOptionsProperty
visualOptions = PluginVisualOptionsProperty -> Maybe PluginVisualOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VisualOptions" PluginVisualConfigurationProperty
PluginVisualOptionsProperty
newValue, Maybe [PluginVisualFieldWellProperty]
Maybe PluginVisualSortConfigurationProperty
()
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
haddock_workaround_ :: ()
fieldWells :: Maybe [PluginVisualFieldWellProperty]
sortConfiguration :: Maybe PluginVisualSortConfigurationProperty
..}