module Stratosphere.FSx.FileSystem.ClientConfigurationsProperty (
        ClientConfigurationsProperty(..), mkClientConfigurationsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientConfigurationsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-openzfsconfiguration-rootvolumeconfiguration-nfsexports-clientconfigurations.html>
    ClientConfigurationsProperty {ClientConfigurationsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-openzfsconfiguration-rootvolumeconfiguration-nfsexports-clientconfigurations.html#cfn-fsx-filesystem-openzfsconfiguration-rootvolumeconfiguration-nfsexports-clientconfigurations-clients>
                                  ClientConfigurationsProperty -> Maybe (Value Text)
clients :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-openzfsconfiguration-rootvolumeconfiguration-nfsexports-clientconfigurations.html#cfn-fsx-filesystem-openzfsconfiguration-rootvolumeconfiguration-nfsexports-clientconfigurations-options>
                                  ClientConfigurationsProperty -> Maybe (ValueList Text)
options :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (ClientConfigurationsProperty
-> ClientConfigurationsProperty -> Bool
(ClientConfigurationsProperty
 -> ClientConfigurationsProperty -> Bool)
-> (ClientConfigurationsProperty
    -> ClientConfigurationsProperty -> Bool)
-> Eq ClientConfigurationsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientConfigurationsProperty
-> ClientConfigurationsProperty -> Bool
== :: ClientConfigurationsProperty
-> ClientConfigurationsProperty -> Bool
$c/= :: ClientConfigurationsProperty
-> ClientConfigurationsProperty -> Bool
/= :: ClientConfigurationsProperty
-> ClientConfigurationsProperty -> Bool
Prelude.Eq, Int -> ClientConfigurationsProperty -> ShowS
[ClientConfigurationsProperty] -> ShowS
ClientConfigurationsProperty -> String
(Int -> ClientConfigurationsProperty -> ShowS)
-> (ClientConfigurationsProperty -> String)
-> ([ClientConfigurationsProperty] -> ShowS)
-> Show ClientConfigurationsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientConfigurationsProperty -> ShowS
showsPrec :: Int -> ClientConfigurationsProperty -> ShowS
$cshow :: ClientConfigurationsProperty -> String
show :: ClientConfigurationsProperty -> String
$cshowList :: [ClientConfigurationsProperty] -> ShowS
showList :: [ClientConfigurationsProperty] -> ShowS
Prelude.Show)
mkClientConfigurationsProperty :: ClientConfigurationsProperty
mkClientConfigurationsProperty :: ClientConfigurationsProperty
mkClientConfigurationsProperty
  = ClientConfigurationsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), clients :: Maybe (Value Text)
clients = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       options :: Maybe (ValueList Text)
options = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClientConfigurationsProperty where
  toResourceProperties :: ClientConfigurationsProperty -> ResourceProperties
toResourceProperties ClientConfigurationsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ClientConfigurationsProperty -> ()
clients :: ClientConfigurationsProperty -> Maybe (Value Text)
options :: ClientConfigurationsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
options :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::FSx::FileSystem.ClientConfigurations",
         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 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
"Clients" (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)
clients,
                            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
"Options" (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)
options])}
instance JSON.ToJSON ClientConfigurationsProperty where
  toJSON :: ClientConfigurationsProperty -> Value
toJSON ClientConfigurationsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ClientConfigurationsProperty -> ()
clients :: ClientConfigurationsProperty -> Maybe (Value Text)
options :: ClientConfigurationsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
options :: 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 -> 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
"Clients" (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)
clients,
               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
"Options" (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)
options]))
instance Property "Clients" ClientConfigurationsProperty where
  type PropertyType "Clients" ClientConfigurationsProperty = Value Prelude.Text
  set :: PropertyType "Clients" ClientConfigurationsProperty
-> ClientConfigurationsProperty -> ClientConfigurationsProperty
set PropertyType "Clients" ClientConfigurationsProperty
newValue ClientConfigurationsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ClientConfigurationsProperty -> ()
clients :: ClientConfigurationsProperty -> Maybe (Value Text)
options :: ClientConfigurationsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
options :: Maybe (ValueList Text)
..}
    = ClientConfigurationsProperty
        {clients :: Maybe (Value Text)
clients = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Clients" ClientConfigurationsProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
options :: Maybe (ValueList Text)
haddock_workaround_ :: ()
options :: Maybe (ValueList Text)
..}
instance Property "Options" ClientConfigurationsProperty where
  type PropertyType "Options" ClientConfigurationsProperty = ValueList Prelude.Text
  set :: PropertyType "Options" ClientConfigurationsProperty
-> ClientConfigurationsProperty -> ClientConfigurationsProperty
set PropertyType "Options" ClientConfigurationsProperty
newValue ClientConfigurationsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ClientConfigurationsProperty -> ()
clients :: ClientConfigurationsProperty -> Maybe (Value Text)
options :: ClientConfigurationsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
options :: Maybe (ValueList Text)
..}
    = ClientConfigurationsProperty
        {options :: Maybe (ValueList Text)
options = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Options" ClientConfigurationsProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
haddock_workaround_ :: ()
clients :: Maybe (Value Text)
..}