module Stratosphere.QuickSight.Dashboard.TableFieldOptionProperty (
        module Exports, TableFieldOptionProperty(..),
        mkTableFieldOptionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.TableFieldURLConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableFieldOptionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html>
    TableFieldOptionProperty {TableFieldOptionProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html#cfn-quicksight-dashboard-tablefieldoption-customlabel>
                              TableFieldOptionProperty -> Maybe (Value Text)
customLabel :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html#cfn-quicksight-dashboard-tablefieldoption-fieldid>
                              TableFieldOptionProperty -> Value Text
fieldId :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html#cfn-quicksight-dashboard-tablefieldoption-urlstyling>
                              TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
uRLStyling :: (Prelude.Maybe TableFieldURLConfigurationProperty),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html#cfn-quicksight-dashboard-tablefieldoption-visibility>
                              TableFieldOptionProperty -> Maybe (Value Text)
visibility :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldoption.html#cfn-quicksight-dashboard-tablefieldoption-width>
                              TableFieldOptionProperty -> Maybe (Value Text)
width :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TableFieldOptionProperty -> TableFieldOptionProperty -> Bool
(TableFieldOptionProperty -> TableFieldOptionProperty -> Bool)
-> (TableFieldOptionProperty -> TableFieldOptionProperty -> Bool)
-> Eq TableFieldOptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableFieldOptionProperty -> TableFieldOptionProperty -> Bool
== :: TableFieldOptionProperty -> TableFieldOptionProperty -> Bool
$c/= :: TableFieldOptionProperty -> TableFieldOptionProperty -> Bool
/= :: TableFieldOptionProperty -> TableFieldOptionProperty -> Bool
Prelude.Eq, Int -> TableFieldOptionProperty -> ShowS
[TableFieldOptionProperty] -> ShowS
TableFieldOptionProperty -> String
(Int -> TableFieldOptionProperty -> ShowS)
-> (TableFieldOptionProperty -> String)
-> ([TableFieldOptionProperty] -> ShowS)
-> Show TableFieldOptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableFieldOptionProperty -> ShowS
showsPrec :: Int -> TableFieldOptionProperty -> ShowS
$cshow :: TableFieldOptionProperty -> String
show :: TableFieldOptionProperty -> String
$cshowList :: [TableFieldOptionProperty] -> ShowS
showList :: [TableFieldOptionProperty] -> ShowS
Prelude.Show)
mkTableFieldOptionProperty ::
  Value Prelude.Text -> TableFieldOptionProperty
mkTableFieldOptionProperty :: Value Text -> TableFieldOptionProperty
mkTableFieldOptionProperty Value Text
fieldId
  = TableFieldOptionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldId :: Value Text
fieldId = Value Text
fieldId,
       customLabel :: Maybe (Value Text)
customLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, uRLStyling :: Maybe TableFieldURLConfigurationProperty
uRLStyling = Maybe TableFieldURLConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       visibility :: Maybe (Value Text)
visibility = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, width :: Maybe (Value Text)
width = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableFieldOptionProperty where
  toResourceProperties :: TableFieldOptionProperty -> ResourceProperties
toResourceProperties TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.TableFieldOption",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"FieldId" 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
fieldId]
                           ([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
"CustomLabel" (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)
customLabel,
                               Key -> TableFieldURLConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"URLStyling" (TableFieldURLConfigurationProperty -> (Key, Value))
-> Maybe TableFieldURLConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldURLConfigurationProperty
uRLStyling,
                               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
"Visibility" (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)
visibility,
                               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
"Width" (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)
width]))}
instance JSON.ToJSON TableFieldOptionProperty where
  toJSON :: TableFieldOptionProperty -> Value
toJSON TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"FieldId" 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
fieldId]
              ([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
"CustomLabel" (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)
customLabel,
                  Key -> TableFieldURLConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"URLStyling" (TableFieldURLConfigurationProperty -> (Key, Value))
-> Maybe TableFieldURLConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldURLConfigurationProperty
uRLStyling,
                  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
"Visibility" (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)
visibility,
                  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
"Width" (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)
width])))
instance Property "CustomLabel" TableFieldOptionProperty where
  type PropertyType "CustomLabel" TableFieldOptionProperty = Value Prelude.Text
  set :: PropertyType "CustomLabel" TableFieldOptionProperty
-> TableFieldOptionProperty -> TableFieldOptionProperty
set PropertyType "CustomLabel" TableFieldOptionProperty
newValue TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = TableFieldOptionProperty
        {customLabel :: Maybe (Value Text)
customLabel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomLabel" TableFieldOptionProperty
Value Text
newValue, Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
instance Property "FieldId" TableFieldOptionProperty where
  type PropertyType "FieldId" TableFieldOptionProperty = Value Prelude.Text
  set :: PropertyType "FieldId" TableFieldOptionProperty
-> TableFieldOptionProperty -> TableFieldOptionProperty
set PropertyType "FieldId" TableFieldOptionProperty
newValue TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = TableFieldOptionProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" TableFieldOptionProperty
Value Text
newValue, Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
instance Property "URLStyling" TableFieldOptionProperty where
  type PropertyType "URLStyling" TableFieldOptionProperty = TableFieldURLConfigurationProperty
  set :: PropertyType "URLStyling" TableFieldOptionProperty
-> TableFieldOptionProperty -> TableFieldOptionProperty
set PropertyType "URLStyling" TableFieldOptionProperty
newValue TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = TableFieldOptionProperty {uRLStyling :: Maybe TableFieldURLConfigurationProperty
uRLStyling = TableFieldURLConfigurationProperty
-> Maybe TableFieldURLConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "URLStyling" TableFieldOptionProperty
TableFieldURLConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
instance Property "Visibility" TableFieldOptionProperty where
  type PropertyType "Visibility" TableFieldOptionProperty = Value Prelude.Text
  set :: PropertyType "Visibility" TableFieldOptionProperty
-> TableFieldOptionProperty -> TableFieldOptionProperty
set PropertyType "Visibility" TableFieldOptionProperty
newValue TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = TableFieldOptionProperty {visibility :: Maybe (Value Text)
visibility = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Visibility" TableFieldOptionProperty
Value Text
newValue, Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
width :: Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
width :: Maybe (Value Text)
..}
instance Property "Width" TableFieldOptionProperty where
  type PropertyType "Width" TableFieldOptionProperty = Value Prelude.Text
  set :: PropertyType "Width" TableFieldOptionProperty
-> TableFieldOptionProperty -> TableFieldOptionProperty
set PropertyType "Width" TableFieldOptionProperty
newValue TableFieldOptionProperty {Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: TableFieldOptionProperty -> ()
customLabel :: TableFieldOptionProperty -> Maybe (Value Text)
fieldId :: TableFieldOptionProperty -> Value Text
uRLStyling :: TableFieldOptionProperty
-> Maybe TableFieldURLConfigurationProperty
visibility :: TableFieldOptionProperty -> Maybe (Value Text)
width :: TableFieldOptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
width :: Maybe (Value Text)
..}
    = TableFieldOptionProperty {width :: Maybe (Value Text)
width = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Width" TableFieldOptionProperty
Value Text
newValue, Maybe (Value Text)
Maybe TableFieldURLConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fieldId :: Value Text
uRLStyling :: Maybe TableFieldURLConfigurationProperty
visibility :: Maybe (Value Text)
..}