module Stratosphere.PCAConnectorAD.Template.GeneralFlagsV2Property (
        GeneralFlagsV2Property(..), mkGeneralFlagsV2Property
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeneralFlagsV2Property
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv2.html>
    GeneralFlagsV2Property {GeneralFlagsV2Property -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv2.html#cfn-pcaconnectorad-template-generalflagsv2-autoenrollment>
                            GeneralFlagsV2Property -> Maybe (Value Bool)
autoEnrollment :: (Prelude.Maybe (Value Prelude.Bool)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv2.html#cfn-pcaconnectorad-template-generalflagsv2-machinetype>
                            GeneralFlagsV2Property -> Maybe (Value Bool)
machineType :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool
(GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool)
-> (GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool)
-> Eq GeneralFlagsV2Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool
== :: GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool
$c/= :: GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool
/= :: GeneralFlagsV2Property -> GeneralFlagsV2Property -> Bool
Prelude.Eq, Int -> GeneralFlagsV2Property -> ShowS
[GeneralFlagsV2Property] -> ShowS
GeneralFlagsV2Property -> String
(Int -> GeneralFlagsV2Property -> ShowS)
-> (GeneralFlagsV2Property -> String)
-> ([GeneralFlagsV2Property] -> ShowS)
-> Show GeneralFlagsV2Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeneralFlagsV2Property -> ShowS
showsPrec :: Int -> GeneralFlagsV2Property -> ShowS
$cshow :: GeneralFlagsV2Property -> String
show :: GeneralFlagsV2Property -> String
$cshowList :: [GeneralFlagsV2Property] -> ShowS
showList :: [GeneralFlagsV2Property] -> ShowS
Prelude.Show)
mkGeneralFlagsV2Property :: GeneralFlagsV2Property
mkGeneralFlagsV2Property :: GeneralFlagsV2Property
mkGeneralFlagsV2Property
  = GeneralFlagsV2Property
      {haddock_workaround_ :: ()
haddock_workaround_ = (), autoEnrollment :: Maybe (Value Bool)
autoEnrollment = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       machineType :: Maybe (Value Bool)
machineType = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeneralFlagsV2Property where
  toResourceProperties :: GeneralFlagsV2Property -> ResourceProperties
toResourceProperties GeneralFlagsV2Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV2Property -> ()
autoEnrollment :: GeneralFlagsV2Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.GeneralFlagsV2",
         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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoEnrollment" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoEnrollment,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MachineType" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
machineType])}
instance JSON.ToJSON GeneralFlagsV2Property where
  toJSON :: GeneralFlagsV2Property -> Value
toJSON GeneralFlagsV2Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV2Property -> ()
autoEnrollment :: GeneralFlagsV2Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = [(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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoEnrollment" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoEnrollment,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MachineType" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
machineType]))
instance Property "AutoEnrollment" GeneralFlagsV2Property where
  type PropertyType "AutoEnrollment" GeneralFlagsV2Property = Value Prelude.Bool
  set :: PropertyType "AutoEnrollment" GeneralFlagsV2Property
-> GeneralFlagsV2Property -> GeneralFlagsV2Property
set PropertyType "AutoEnrollment" GeneralFlagsV2Property
newValue GeneralFlagsV2Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV2Property -> ()
autoEnrollment :: GeneralFlagsV2Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = GeneralFlagsV2Property
        {autoEnrollment :: Maybe (Value Bool)
autoEnrollment = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoEnrollment" GeneralFlagsV2Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
..}
instance Property "MachineType" GeneralFlagsV2Property where
  type PropertyType "MachineType" GeneralFlagsV2Property = Value Prelude.Bool
  set :: PropertyType "MachineType" GeneralFlagsV2Property
-> GeneralFlagsV2Property -> GeneralFlagsV2Property
set PropertyType "MachineType" GeneralFlagsV2Property
newValue GeneralFlagsV2Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV2Property -> ()
autoEnrollment :: GeneralFlagsV2Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = GeneralFlagsV2Property {machineType :: Maybe (Value Bool)
machineType = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MachineType" GeneralFlagsV2Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
..}