{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AppStream.Types.ApplicationSettingsResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ApplicationSettingsResponse = ApplicationSettingsResponse'
{
ApplicationSettingsResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
ApplicationSettingsResponse -> Maybe Text
s3BucketName :: Prelude.Maybe Prelude.Text,
ApplicationSettingsResponse -> Maybe Text
settingsGroup :: Prelude.Maybe Prelude.Text
}
deriving (ApplicationSettingsResponse -> ApplicationSettingsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationSettingsResponse -> ApplicationSettingsResponse -> Bool
$c/= :: ApplicationSettingsResponse -> ApplicationSettingsResponse -> Bool
== :: ApplicationSettingsResponse -> ApplicationSettingsResponse -> Bool
$c== :: ApplicationSettingsResponse -> ApplicationSettingsResponse -> Bool
Prelude.Eq, ReadPrec [ApplicationSettingsResponse]
ReadPrec ApplicationSettingsResponse
Int -> ReadS ApplicationSettingsResponse
ReadS [ApplicationSettingsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationSettingsResponse]
$creadListPrec :: ReadPrec [ApplicationSettingsResponse]
readPrec :: ReadPrec ApplicationSettingsResponse
$creadPrec :: ReadPrec ApplicationSettingsResponse
readList :: ReadS [ApplicationSettingsResponse]
$creadList :: ReadS [ApplicationSettingsResponse]
readsPrec :: Int -> ReadS ApplicationSettingsResponse
$creadsPrec :: Int -> ReadS ApplicationSettingsResponse
Prelude.Read, Int -> ApplicationSettingsResponse -> ShowS
[ApplicationSettingsResponse] -> ShowS
ApplicationSettingsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationSettingsResponse] -> ShowS
$cshowList :: [ApplicationSettingsResponse] -> ShowS
show :: ApplicationSettingsResponse -> String
$cshow :: ApplicationSettingsResponse -> String
showsPrec :: Int -> ApplicationSettingsResponse -> ShowS
$cshowsPrec :: Int -> ApplicationSettingsResponse -> ShowS
Prelude.Show, forall x.
Rep ApplicationSettingsResponse x -> ApplicationSettingsResponse
forall x.
ApplicationSettingsResponse -> Rep ApplicationSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ApplicationSettingsResponse x -> ApplicationSettingsResponse
$cfrom :: forall x.
ApplicationSettingsResponse -> Rep ApplicationSettingsResponse x
Prelude.Generic)
newApplicationSettingsResponse ::
ApplicationSettingsResponse
newApplicationSettingsResponse :: ApplicationSettingsResponse
newApplicationSettingsResponse =
ApplicationSettingsResponse'
{ $sel:enabled:ApplicationSettingsResponse' :: Maybe Bool
enabled =
forall a. Maybe a
Prelude.Nothing,
$sel:s3BucketName:ApplicationSettingsResponse' :: Maybe Text
s3BucketName = forall a. Maybe a
Prelude.Nothing,
$sel:settingsGroup:ApplicationSettingsResponse' :: Maybe Text
settingsGroup = forall a. Maybe a
Prelude.Nothing
}
applicationSettingsResponse_enabled :: Lens.Lens' ApplicationSettingsResponse (Prelude.Maybe Prelude.Bool)
applicationSettingsResponse_enabled :: Lens' ApplicationSettingsResponse (Maybe Bool)
applicationSettingsResponse_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationSettingsResponse' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: ApplicationSettingsResponse
s@ApplicationSettingsResponse' {} Maybe Bool
a -> ApplicationSettingsResponse
s {$sel:enabled:ApplicationSettingsResponse' :: Maybe Bool
enabled = Maybe Bool
a} :: ApplicationSettingsResponse)
applicationSettingsResponse_s3BucketName :: Lens.Lens' ApplicationSettingsResponse (Prelude.Maybe Prelude.Text)
applicationSettingsResponse_s3BucketName :: Lens' ApplicationSettingsResponse (Maybe Text)
applicationSettingsResponse_s3BucketName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationSettingsResponse' {Maybe Text
s3BucketName :: Maybe Text
$sel:s3BucketName:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
s3BucketName} -> Maybe Text
s3BucketName) (\s :: ApplicationSettingsResponse
s@ApplicationSettingsResponse' {} Maybe Text
a -> ApplicationSettingsResponse
s {$sel:s3BucketName:ApplicationSettingsResponse' :: Maybe Text
s3BucketName = Maybe Text
a} :: ApplicationSettingsResponse)
applicationSettingsResponse_settingsGroup :: Lens.Lens' ApplicationSettingsResponse (Prelude.Maybe Prelude.Text)
applicationSettingsResponse_settingsGroup :: Lens' ApplicationSettingsResponse (Maybe Text)
applicationSettingsResponse_settingsGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationSettingsResponse' {Maybe Text
settingsGroup :: Maybe Text
$sel:settingsGroup:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
settingsGroup} -> Maybe Text
settingsGroup) (\s :: ApplicationSettingsResponse
s@ApplicationSettingsResponse' {} Maybe Text
a -> ApplicationSettingsResponse
s {$sel:settingsGroup:ApplicationSettingsResponse' :: Maybe Text
settingsGroup = Maybe Text
a} :: ApplicationSettingsResponse)
instance Data.FromJSON ApplicationSettingsResponse where
parseJSON :: Value -> Parser ApplicationSettingsResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ApplicationSettingsResponse"
( \Object
x ->
Maybe Bool
-> Maybe Text -> Maybe Text -> ApplicationSettingsResponse
ApplicationSettingsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Enabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"S3BucketName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SettingsGroup")
)
instance Prelude.Hashable ApplicationSettingsResponse where
hashWithSalt :: Int -> ApplicationSettingsResponse -> Int
hashWithSalt Int
_salt ApplicationSettingsResponse' {Maybe Bool
Maybe Text
settingsGroup :: Maybe Text
s3BucketName :: Maybe Text
enabled :: Maybe Bool
$sel:settingsGroup:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
$sel:s3BucketName:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
$sel:enabled:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
s3BucketName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
settingsGroup
instance Prelude.NFData ApplicationSettingsResponse where
rnf :: ApplicationSettingsResponse -> ()
rnf ApplicationSettingsResponse' {Maybe Bool
Maybe Text
settingsGroup :: Maybe Text
s3BucketName :: Maybe Text
enabled :: Maybe Bool
$sel:settingsGroup:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
$sel:s3BucketName:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Text
$sel:enabled:ApplicationSettingsResponse' :: ApplicationSettingsResponse -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
s3BucketName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
settingsGroup