{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AppStream.Types.Application
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AppStream.Types.Application where

import Amazonka.AppStream.Types.PlatformType
import Amazonka.AppStream.Types.S3Location
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

-- | Describes an application in the application catalog.
--
-- /See:/ 'newApplication' smart constructor.
data Application = Application'
  { -- | The app block ARN of the application.
    Application -> Maybe Text
appBlockArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the application.
    Application -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time at which the application was created within the app block.
    Application -> Maybe POSIX
createdTime :: Prelude.Maybe Data.POSIX,
    -- | The description of the application.
    Application -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The application name to display.
    Application -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
    -- | If there is a problem, the application can be disabled after image
    -- creation.
    Application -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | The S3 location of the application icon.
    Application -> Maybe S3Location
iconS3Location :: Prelude.Maybe S3Location,
    -- | The URL for the application icon. This URL might be time-limited.
    Application -> Maybe Text
iconURL :: Prelude.Maybe Prelude.Text,
    -- | The instance families for the application.
    Application -> Maybe [Text]
instanceFamilies :: Prelude.Maybe [Prelude.Text],
    -- | The arguments that are passed to the application at launch.
    Application -> Maybe Text
launchParameters :: Prelude.Maybe Prelude.Text,
    -- | The path to the application executable in the instance.
    Application -> Maybe Text
launchPath :: Prelude.Maybe Prelude.Text,
    -- | Additional attributes that describe the application.
    Application -> Maybe (HashMap Text Text)
metadata :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The name of the application.
    Application -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The platforms on which the application can run.
    Application -> Maybe [PlatformType]
platforms :: Prelude.Maybe [PlatformType],
    -- | The working directory for the application.
    Application -> Maybe Text
workingDirectory :: Prelude.Maybe Prelude.Text
  }
  deriving (Application -> Application -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Application -> Application -> Bool
$c/= :: Application -> Application -> Bool
== :: Application -> Application -> Bool
$c== :: Application -> Application -> Bool
Prelude.Eq, ReadPrec [Application]
ReadPrec Application
Int -> ReadS Application
ReadS [Application]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Application]
$creadListPrec :: ReadPrec [Application]
readPrec :: ReadPrec Application
$creadPrec :: ReadPrec Application
readList :: ReadS [Application]
$creadList :: ReadS [Application]
readsPrec :: Int -> ReadS Application
$creadsPrec :: Int -> ReadS Application
Prelude.Read, Int -> Application -> ShowS
[Application] -> ShowS
Application -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Application] -> ShowS
$cshowList :: [Application] -> ShowS
show :: Application -> String
$cshow :: Application -> String
showsPrec :: Int -> Application -> ShowS
$cshowsPrec :: Int -> Application -> ShowS
Prelude.Show, forall x. Rep Application x -> Application
forall x. Application -> Rep Application x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Application x -> Application
$cfrom :: forall x. Application -> Rep Application x
Prelude.Generic)

-- |
-- Create a value of 'Application' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'appBlockArn', 'application_appBlockArn' - The app block ARN of the application.
--
-- 'arn', 'application_arn' - The ARN of the application.
--
-- 'createdTime', 'application_createdTime' - The time at which the application was created within the app block.
--
-- 'description', 'application_description' - The description of the application.
--
-- 'displayName', 'application_displayName' - The application name to display.
--
-- 'enabled', 'application_enabled' - If there is a problem, the application can be disabled after image
-- creation.
--
-- 'iconS3Location', 'application_iconS3Location' - The S3 location of the application icon.
--
-- 'iconURL', 'application_iconURL' - The URL for the application icon. This URL might be time-limited.
--
-- 'instanceFamilies', 'application_instanceFamilies' - The instance families for the application.
--
-- 'launchParameters', 'application_launchParameters' - The arguments that are passed to the application at launch.
--
-- 'launchPath', 'application_launchPath' - The path to the application executable in the instance.
--
-- 'metadata', 'application_metadata' - Additional attributes that describe the application.
--
-- 'name', 'application_name' - The name of the application.
--
-- 'platforms', 'application_platforms' - The platforms on which the application can run.
--
-- 'workingDirectory', 'application_workingDirectory' - The working directory for the application.
newApplication ::
  Application
newApplication :: Application
newApplication =
  Application'
    { $sel:appBlockArn:Application' :: Maybe Text
appBlockArn = forall a. Maybe a
Prelude.Nothing,
      $sel:arn:Application' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:Application' :: Maybe POSIX
createdTime = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Application' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:displayName:Application' :: Maybe Text
displayName = forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:Application' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:iconS3Location:Application' :: Maybe S3Location
iconS3Location = forall a. Maybe a
Prelude.Nothing,
      $sel:iconURL:Application' :: Maybe Text
iconURL = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceFamilies:Application' :: Maybe [Text]
instanceFamilies = forall a. Maybe a
Prelude.Nothing,
      $sel:launchParameters:Application' :: Maybe Text
launchParameters = forall a. Maybe a
Prelude.Nothing,
      $sel:launchPath:Application' :: Maybe Text
launchPath = forall a. Maybe a
Prelude.Nothing,
      $sel:metadata:Application' :: Maybe (HashMap Text Text)
metadata = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Application' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:platforms:Application' :: Maybe [PlatformType]
platforms = forall a. Maybe a
Prelude.Nothing,
      $sel:workingDirectory:Application' :: Maybe Text
workingDirectory = forall a. Maybe a
Prelude.Nothing
    }

-- | The app block ARN of the application.
application_appBlockArn :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_appBlockArn :: Lens' Application (Maybe Text)
application_appBlockArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
appBlockArn :: Maybe Text
$sel:appBlockArn:Application' :: Application -> Maybe Text
appBlockArn} -> Maybe Text
appBlockArn) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:appBlockArn:Application' :: Maybe Text
appBlockArn = Maybe Text
a} :: Application)

-- | The ARN of the application.
application_arn :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_arn :: Lens' Application (Maybe Text)
application_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
arn :: Maybe Text
$sel:arn:Application' :: Application -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:arn:Application' :: Maybe Text
arn = Maybe Text
a} :: Application)

-- | The time at which the application was created within the app block.
application_createdTime :: Lens.Lens' Application (Prelude.Maybe Prelude.UTCTime)
application_createdTime :: Lens' Application (Maybe UTCTime)
application_createdTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:Application' :: Application -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: Application
s@Application' {} Maybe POSIX
a -> Application
s {$sel:createdTime:Application' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: Application) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The description of the application.
application_description :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_description :: Lens' Application (Maybe Text)
application_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
description :: Maybe Text
$sel:description:Application' :: Application -> Maybe Text
description} -> Maybe Text
description) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:description:Application' :: Maybe Text
description = Maybe Text
a} :: Application)

-- | The application name to display.
application_displayName :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_displayName :: Lens' Application (Maybe Text)
application_displayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
displayName :: Maybe Text
$sel:displayName:Application' :: Application -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:displayName:Application' :: Maybe Text
displayName = Maybe Text
a} :: Application)

-- | If there is a problem, the application can be disabled after image
-- creation.
application_enabled :: Lens.Lens' Application (Prelude.Maybe Prelude.Bool)
application_enabled :: Lens' Application (Maybe Bool)
application_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:Application' :: Application -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: Application
s@Application' {} Maybe Bool
a -> Application
s {$sel:enabled:Application' :: Maybe Bool
enabled = Maybe Bool
a} :: Application)

-- | The S3 location of the application icon.
application_iconS3Location :: Lens.Lens' Application (Prelude.Maybe S3Location)
application_iconS3Location :: Lens' Application (Maybe S3Location)
application_iconS3Location = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe S3Location
iconS3Location :: Maybe S3Location
$sel:iconS3Location:Application' :: Application -> Maybe S3Location
iconS3Location} -> Maybe S3Location
iconS3Location) (\s :: Application
s@Application' {} Maybe S3Location
a -> Application
s {$sel:iconS3Location:Application' :: Maybe S3Location
iconS3Location = Maybe S3Location
a} :: Application)

-- | The URL for the application icon. This URL might be time-limited.
application_iconURL :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_iconURL :: Lens' Application (Maybe Text)
application_iconURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
iconURL :: Maybe Text
$sel:iconURL:Application' :: Application -> Maybe Text
iconURL} -> Maybe Text
iconURL) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:iconURL:Application' :: Maybe Text
iconURL = Maybe Text
a} :: Application)

-- | The instance families for the application.
application_instanceFamilies :: Lens.Lens' Application (Prelude.Maybe [Prelude.Text])
application_instanceFamilies :: Lens' Application (Maybe [Text])
application_instanceFamilies = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe [Text]
instanceFamilies :: Maybe [Text]
$sel:instanceFamilies:Application' :: Application -> Maybe [Text]
instanceFamilies} -> Maybe [Text]
instanceFamilies) (\s :: Application
s@Application' {} Maybe [Text]
a -> Application
s {$sel:instanceFamilies:Application' :: Maybe [Text]
instanceFamilies = Maybe [Text]
a} :: Application) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The arguments that are passed to the application at launch.
application_launchParameters :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_launchParameters :: Lens' Application (Maybe Text)
application_launchParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
launchParameters :: Maybe Text
$sel:launchParameters:Application' :: Application -> Maybe Text
launchParameters} -> Maybe Text
launchParameters) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:launchParameters:Application' :: Maybe Text
launchParameters = Maybe Text
a} :: Application)

-- | The path to the application executable in the instance.
application_launchPath :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_launchPath :: Lens' Application (Maybe Text)
application_launchPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
launchPath :: Maybe Text
$sel:launchPath:Application' :: Application -> Maybe Text
launchPath} -> Maybe Text
launchPath) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:launchPath:Application' :: Maybe Text
launchPath = Maybe Text
a} :: Application)

-- | Additional attributes that describe the application.
application_metadata :: Lens.Lens' Application (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
application_metadata :: Lens' Application (Maybe (HashMap Text Text))
application_metadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe (HashMap Text Text)
metadata :: Maybe (HashMap Text Text)
$sel:metadata:Application' :: Application -> Maybe (HashMap Text Text)
metadata} -> Maybe (HashMap Text Text)
metadata) (\s :: Application
s@Application' {} Maybe (HashMap Text Text)
a -> Application
s {$sel:metadata:Application' :: Maybe (HashMap Text Text)
metadata = Maybe (HashMap Text Text)
a} :: Application) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the application.
application_name :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_name :: Lens' Application (Maybe Text)
application_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
name :: Maybe Text
$sel:name:Application' :: Application -> Maybe Text
name} -> Maybe Text
name) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:name:Application' :: Maybe Text
name = Maybe Text
a} :: Application)

-- | The platforms on which the application can run.
application_platforms :: Lens.Lens' Application (Prelude.Maybe [PlatformType])
application_platforms :: Lens' Application (Maybe [PlatformType])
application_platforms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe [PlatformType]
platforms :: Maybe [PlatformType]
$sel:platforms:Application' :: Application -> Maybe [PlatformType]
platforms} -> Maybe [PlatformType]
platforms) (\s :: Application
s@Application' {} Maybe [PlatformType]
a -> Application
s {$sel:platforms:Application' :: Maybe [PlatformType]
platforms = Maybe [PlatformType]
a} :: Application) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The working directory for the application.
application_workingDirectory :: Lens.Lens' Application (Prelude.Maybe Prelude.Text)
application_workingDirectory :: Lens' Application (Maybe Text)
application_workingDirectory = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Application' {Maybe Text
workingDirectory :: Maybe Text
$sel:workingDirectory:Application' :: Application -> Maybe Text
workingDirectory} -> Maybe Text
workingDirectory) (\s :: Application
s@Application' {} Maybe Text
a -> Application
s {$sel:workingDirectory:Application' :: Maybe Text
workingDirectory = Maybe Text
a} :: Application)

instance Data.FromJSON Application where
  parseJSON :: Value -> Parser Application
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Application"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe S3Location
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe [PlatformType]
-> Maybe Text
-> Application
Application'
            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
"AppBlockArn")
            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
"Arn")
            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
"CreatedTime")
            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
"Description")
            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
"DisplayName")
            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
"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
"IconS3Location")
            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
"IconURL")
            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
"InstanceFamilies"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"LaunchParameters")
            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
"LaunchPath")
            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
"Metadata" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"Name")
            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
"Platforms" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"WorkingDirectory")
      )

instance Prelude.Hashable Application where
  hashWithSalt :: Int -> Application -> Int
hashWithSalt Int
_salt Application' {Maybe Bool
Maybe [Text]
Maybe [PlatformType]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe S3Location
workingDirectory :: Maybe Text
platforms :: Maybe [PlatformType]
name :: Maybe Text
metadata :: Maybe (HashMap Text Text)
launchPath :: Maybe Text
launchParameters :: Maybe Text
instanceFamilies :: Maybe [Text]
iconURL :: Maybe Text
iconS3Location :: Maybe S3Location
enabled :: Maybe Bool
displayName :: Maybe Text
description :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
appBlockArn :: Maybe Text
$sel:workingDirectory:Application' :: Application -> Maybe Text
$sel:platforms:Application' :: Application -> Maybe [PlatformType]
$sel:name:Application' :: Application -> Maybe Text
$sel:metadata:Application' :: Application -> Maybe (HashMap Text Text)
$sel:launchPath:Application' :: Application -> Maybe Text
$sel:launchParameters:Application' :: Application -> Maybe Text
$sel:instanceFamilies:Application' :: Application -> Maybe [Text]
$sel:iconURL:Application' :: Application -> Maybe Text
$sel:iconS3Location:Application' :: Application -> Maybe S3Location
$sel:enabled:Application' :: Application -> Maybe Bool
$sel:displayName:Application' :: Application -> Maybe Text
$sel:description:Application' :: Application -> Maybe Text
$sel:createdTime:Application' :: Application -> Maybe POSIX
$sel:arn:Application' :: Application -> Maybe Text
$sel:appBlockArn:Application' :: Application -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
appBlockArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
displayName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3Location
iconS3Location
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iconURL
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
instanceFamilies
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
launchParameters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
launchPath
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
metadata
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [PlatformType]
platforms
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workingDirectory

instance Prelude.NFData Application where
  rnf :: Application -> ()
rnf Application' {Maybe Bool
Maybe [Text]
Maybe [PlatformType]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe S3Location
workingDirectory :: Maybe Text
platforms :: Maybe [PlatformType]
name :: Maybe Text
metadata :: Maybe (HashMap Text Text)
launchPath :: Maybe Text
launchParameters :: Maybe Text
instanceFamilies :: Maybe [Text]
iconURL :: Maybe Text
iconS3Location :: Maybe S3Location
enabled :: Maybe Bool
displayName :: Maybe Text
description :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
appBlockArn :: Maybe Text
$sel:workingDirectory:Application' :: Application -> Maybe Text
$sel:platforms:Application' :: Application -> Maybe [PlatformType]
$sel:name:Application' :: Application -> Maybe Text
$sel:metadata:Application' :: Application -> Maybe (HashMap Text Text)
$sel:launchPath:Application' :: Application -> Maybe Text
$sel:launchParameters:Application' :: Application -> Maybe Text
$sel:instanceFamilies:Application' :: Application -> Maybe [Text]
$sel:iconURL:Application' :: Application -> Maybe Text
$sel:iconS3Location:Application' :: Application -> Maybe S3Location
$sel:enabled:Application' :: Application -> Maybe Bool
$sel:displayName:Application' :: Application -> Maybe Text
$sel:description:Application' :: Application -> Maybe Text
$sel:createdTime:Application' :: Application -> Maybe POSIX
$sel:arn:Application' :: Application -> Maybe Text
$sel:appBlockArn:Application' :: Application -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
appBlockArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
displayName
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 S3Location
iconS3Location
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iconURL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
instanceFamilies
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
launchParameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
launchPath
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
metadata
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PlatformType]
platforms
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
workingDirectory