module Stratosphere.PCAConnectorAD.Template.GeneralFlagsV3Property (
        GeneralFlagsV3Property(..), mkGeneralFlagsV3Property
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeneralFlagsV3Property
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv3.html>
    GeneralFlagsV3Property {GeneralFlagsV3Property -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv3.html#cfn-pcaconnectorad-template-generalflagsv3-autoenrollment>
                            GeneralFlagsV3Property -> Maybe (Value Bool)
autoEnrollment :: (Prelude.Maybe (Value Prelude.Bool)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-generalflagsv3.html#cfn-pcaconnectorad-template-generalflagsv3-machinetype>
                            GeneralFlagsV3Property -> Maybe (Value Bool)
machineType :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool
(GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool)
-> (GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool)
-> Eq GeneralFlagsV3Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool
== :: GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool
$c/= :: GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool
/= :: GeneralFlagsV3Property -> GeneralFlagsV3Property -> Bool
Prelude.Eq, Int -> GeneralFlagsV3Property -> ShowS
[GeneralFlagsV3Property] -> ShowS
GeneralFlagsV3Property -> String
(Int -> GeneralFlagsV3Property -> ShowS)
-> (GeneralFlagsV3Property -> String)
-> ([GeneralFlagsV3Property] -> ShowS)
-> Show GeneralFlagsV3Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeneralFlagsV3Property -> ShowS
showsPrec :: Int -> GeneralFlagsV3Property -> ShowS
$cshow :: GeneralFlagsV3Property -> String
show :: GeneralFlagsV3Property -> String
$cshowList :: [GeneralFlagsV3Property] -> ShowS
showList :: [GeneralFlagsV3Property] -> ShowS
Prelude.Show)
mkGeneralFlagsV3Property :: GeneralFlagsV3Property
mkGeneralFlagsV3Property :: GeneralFlagsV3Property
mkGeneralFlagsV3Property
  = GeneralFlagsV3Property
      {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 GeneralFlagsV3Property where
  toResourceProperties :: GeneralFlagsV3Property -> ResourceProperties
toResourceProperties GeneralFlagsV3Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV3Property -> ()
autoEnrollment :: GeneralFlagsV3Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV3Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.GeneralFlagsV3",
         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 GeneralFlagsV3Property where
  toJSON :: GeneralFlagsV3Property -> Value
toJSON GeneralFlagsV3Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV3Property -> ()
autoEnrollment :: GeneralFlagsV3Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV3Property -> 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" GeneralFlagsV3Property where
  type PropertyType "AutoEnrollment" GeneralFlagsV3Property = Value Prelude.Bool
  set :: PropertyType "AutoEnrollment" GeneralFlagsV3Property
-> GeneralFlagsV3Property -> GeneralFlagsV3Property
set PropertyType "AutoEnrollment" GeneralFlagsV3Property
newValue GeneralFlagsV3Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV3Property -> ()
autoEnrollment :: GeneralFlagsV3Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV3Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = GeneralFlagsV3Property
        {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" GeneralFlagsV3Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
haddock_workaround_ :: ()
machineType :: Maybe (Value Bool)
..}
instance Property "MachineType" GeneralFlagsV3Property where
  type PropertyType "MachineType" GeneralFlagsV3Property = Value Prelude.Bool
  set :: PropertyType "MachineType" GeneralFlagsV3Property
-> GeneralFlagsV3Property -> GeneralFlagsV3Property
set PropertyType "MachineType" GeneralFlagsV3Property
newValue GeneralFlagsV3Property {Maybe (Value Bool)
()
haddock_workaround_ :: GeneralFlagsV3Property -> ()
autoEnrollment :: GeneralFlagsV3Property -> Maybe (Value Bool)
machineType :: GeneralFlagsV3Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
machineType :: Maybe (Value Bool)
..}
    = GeneralFlagsV3Property {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" GeneralFlagsV3Property
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
haddock_workaround_ :: ()
autoEnrollment :: Maybe (Value Bool)
..}