module Stratosphere.QuickSight.Analysis.FilterOperationSelectedFieldsConfigurationProperty (
        module Exports,
        FilterOperationSelectedFieldsConfigurationProperty(..),
        mkFilterOperationSelectedFieldsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ColumnIdentifierProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterOperationSelectedFieldsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filteroperationselectedfieldsconfiguration.html>
    FilterOperationSelectedFieldsConfigurationProperty {FilterOperationSelectedFieldsConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filteroperationselectedfieldsconfiguration.html#cfn-quicksight-analysis-filteroperationselectedfieldsconfiguration-selectedcolumns>
                                                        FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedColumns :: (Prelude.Maybe [ColumnIdentifierProperty]),
                                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filteroperationselectedfieldsconfiguration.html#cfn-quicksight-analysis-filteroperationselectedfieldsconfiguration-selectedfieldoptions>
                                                        FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFieldOptions :: (Prelude.Maybe (Value Prelude.Text)),
                                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filteroperationselectedfieldsconfiguration.html#cfn-quicksight-analysis-filteroperationselectedfieldsconfiguration-selectedfields>
                                                        FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
selectedFields :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty -> Bool
(FilterOperationSelectedFieldsConfigurationProperty
 -> FilterOperationSelectedFieldsConfigurationProperty -> Bool)
-> (FilterOperationSelectedFieldsConfigurationProperty
    -> FilterOperationSelectedFieldsConfigurationProperty -> Bool)
-> Eq FilterOperationSelectedFieldsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty -> Bool
== :: FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty -> Bool
$c/= :: FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty -> Bool
/= :: FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty -> Bool
Prelude.Eq, Int -> FilterOperationSelectedFieldsConfigurationProperty -> ShowS
[FilterOperationSelectedFieldsConfigurationProperty] -> ShowS
FilterOperationSelectedFieldsConfigurationProperty -> String
(Int
 -> FilterOperationSelectedFieldsConfigurationProperty -> ShowS)
-> (FilterOperationSelectedFieldsConfigurationProperty -> String)
-> ([FilterOperationSelectedFieldsConfigurationProperty] -> ShowS)
-> Show FilterOperationSelectedFieldsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterOperationSelectedFieldsConfigurationProperty -> ShowS
showsPrec :: Int -> FilterOperationSelectedFieldsConfigurationProperty -> ShowS
$cshow :: FilterOperationSelectedFieldsConfigurationProperty -> String
show :: FilterOperationSelectedFieldsConfigurationProperty -> String
$cshowList :: [FilterOperationSelectedFieldsConfigurationProperty] -> ShowS
showList :: [FilterOperationSelectedFieldsConfigurationProperty] -> ShowS
Prelude.Show)
mkFilterOperationSelectedFieldsConfigurationProperty ::
  FilterOperationSelectedFieldsConfigurationProperty
mkFilterOperationSelectedFieldsConfigurationProperty :: FilterOperationSelectedFieldsConfigurationProperty
mkFilterOperationSelectedFieldsConfigurationProperty
  = FilterOperationSelectedFieldsConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedColumns = Maybe [ColumnIdentifierProperty]
forall a. Maybe a
Prelude.Nothing,
       selectedFieldOptions :: Maybe (Value Text)
selectedFieldOptions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       selectedFields :: Maybe (ValueList Text)
selectedFields = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterOperationSelectedFieldsConfigurationProperty where
  toResourceProperties :: FilterOperationSelectedFieldsConfigurationProperty
-> ResourceProperties
toResourceProperties
    FilterOperationSelectedFieldsConfigurationProperty {Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FilterOperationSelectedFieldsConfigurationProperty -> ()
selectedColumns :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFields :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.FilterOperationSelectedFieldsConfiguration",
         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 -> [ColumnIdentifierProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectedColumns" ([ColumnIdentifierProperty] -> (Key, Value))
-> Maybe [ColumnIdentifierProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnIdentifierProperty]
selectedColumns,
                            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
"SelectedFieldOptions" (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)
selectedFieldOptions,
                            Key -> ValueList 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
"SelectedFields" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
selectedFields])}
instance JSON.ToJSON FilterOperationSelectedFieldsConfigurationProperty where
  toJSON :: FilterOperationSelectedFieldsConfigurationProperty -> Value
toJSON FilterOperationSelectedFieldsConfigurationProperty {Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FilterOperationSelectedFieldsConfigurationProperty -> ()
selectedColumns :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFields :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList 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 -> [ColumnIdentifierProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectedColumns" ([ColumnIdentifierProperty] -> (Key, Value))
-> Maybe [ColumnIdentifierProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnIdentifierProperty]
selectedColumns,
               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
"SelectedFieldOptions" (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)
selectedFieldOptions,
               Key -> ValueList 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
"SelectedFields" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
selectedFields]))
instance Property "SelectedColumns" FilterOperationSelectedFieldsConfigurationProperty where
  type PropertyType "SelectedColumns" FilterOperationSelectedFieldsConfigurationProperty = [ColumnIdentifierProperty]
  set :: PropertyType
  "SelectedColumns"
  FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
set
    PropertyType
  "SelectedColumns"
  FilterOperationSelectedFieldsConfigurationProperty
newValue
    FilterOperationSelectedFieldsConfigurationProperty {Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FilterOperationSelectedFieldsConfigurationProperty -> ()
selectedColumns :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFields :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
..}
    = FilterOperationSelectedFieldsConfigurationProperty
        {selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedColumns = [ColumnIdentifierProperty] -> Maybe [ColumnIdentifierProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnIdentifierProperty]
PropertyType
  "SelectedColumns"
  FilterOperationSelectedFieldsConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
..}
instance Property "SelectedFieldOptions" FilterOperationSelectedFieldsConfigurationProperty where
  type PropertyType "SelectedFieldOptions" FilterOperationSelectedFieldsConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SelectedFieldOptions"
  FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
set
    PropertyType
  "SelectedFieldOptions"
  FilterOperationSelectedFieldsConfigurationProperty
newValue
    FilterOperationSelectedFieldsConfigurationProperty {Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FilterOperationSelectedFieldsConfigurationProperty -> ()
selectedColumns :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFields :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
..}
    = FilterOperationSelectedFieldsConfigurationProperty
        {selectedFieldOptions :: Maybe (Value Text)
selectedFieldOptions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelectedFieldOptions"
  FilterOperationSelectedFieldsConfigurationProperty
Value Text
newValue, Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFields :: Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFields :: Maybe (ValueList Text)
..}
instance Property "SelectedFields" FilterOperationSelectedFieldsConfigurationProperty where
  type PropertyType "SelectedFields" FilterOperationSelectedFieldsConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType
  "SelectedFields" FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
-> FilterOperationSelectedFieldsConfigurationProperty
set
    PropertyType
  "SelectedFields" FilterOperationSelectedFieldsConfigurationProperty
newValue
    FilterOperationSelectedFieldsConfigurationProperty {Maybe [ColumnIdentifierProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FilterOperationSelectedFieldsConfigurationProperty -> ()
selectedColumns :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (Value Text)
selectedFields :: FilterOperationSelectedFieldsConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
selectedFields :: Maybe (ValueList Text)
..}
    = FilterOperationSelectedFieldsConfigurationProperty
        {selectedFields :: Maybe (ValueList Text)
selectedFields = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelectedFields" FilterOperationSelectedFieldsConfigurationProperty
ValueList Text
newValue, Maybe [ColumnIdentifierProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
haddock_workaround_ :: ()
selectedColumns :: Maybe [ColumnIdentifierProperty]
selectedFieldOptions :: Maybe (Value Text)
..}