{-# 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.Chime.Types.Account
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Chime.Types.Account where

import Amazonka.Chime.Types.AccountStatus
import Amazonka.Chime.Types.AccountType
import Amazonka.Chime.Types.License
import Amazonka.Chime.Types.SigninDelegateGroup
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The Amazon Chime account details. An AWS account can have multiple
-- Amazon Chime accounts.
--
-- /See:/ 'newAccount' smart constructor.
data Account = Account'
  { -- | The sign-in delegate groups associated with the account.
    Account -> Maybe [SigninDelegateGroup]
signinDelegateGroups :: Prelude.Maybe [SigninDelegateGroup],
    -- | The status of the account.
    Account -> Maybe AccountStatus
accountStatus :: Prelude.Maybe AccountStatus,
    -- | The default license for the Amazon Chime account.
    Account -> Maybe License
defaultLicense :: Prelude.Maybe License,
    -- | Supported licenses for the Amazon Chime account.
    Account -> Maybe [License]
supportedLicenses :: Prelude.Maybe [License],
    -- | The Amazon Chime account creation timestamp, in ISO 8601 format.
    Account -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Chime account type. For more information about different
    -- account types, see
    -- <https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html Managing Your Amazon Chime Accounts>
    -- in the /Amazon Chime Administration Guide/.
    Account -> Maybe AccountType
accountType :: Prelude.Maybe AccountType,
    -- | The AWS account ID.
    Account -> Text
awsAccountId :: Prelude.Text,
    -- | The Amazon Chime account ID.
    Account -> Text
accountId :: Prelude.Text,
    -- | The Amazon Chime account name.
    Account -> Text
name :: Prelude.Text
  }
  deriving (Account -> Account -> Bool
(Account -> Account -> Bool)
-> (Account -> Account -> Bool) -> Eq Account
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Account -> Account -> Bool
$c/= :: Account -> Account -> Bool
== :: Account -> Account -> Bool
$c== :: Account -> Account -> Bool
Prelude.Eq, ReadPrec [Account]
ReadPrec Account
Int -> ReadS Account
ReadS [Account]
(Int -> ReadS Account)
-> ReadS [Account]
-> ReadPrec Account
-> ReadPrec [Account]
-> Read Account
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Account]
$creadListPrec :: ReadPrec [Account]
readPrec :: ReadPrec Account
$creadPrec :: ReadPrec Account
readList :: ReadS [Account]
$creadList :: ReadS [Account]
readsPrec :: Int -> ReadS Account
$creadsPrec :: Int -> ReadS Account
Prelude.Read, Int -> Account -> ShowS
[Account] -> ShowS
Account -> String
(Int -> Account -> ShowS)
-> (Account -> String) -> ([Account] -> ShowS) -> Show Account
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Account] -> ShowS
$cshowList :: [Account] -> ShowS
show :: Account -> String
$cshow :: Account -> String
showsPrec :: Int -> Account -> ShowS
$cshowsPrec :: Int -> Account -> ShowS
Prelude.Show, (forall x. Account -> Rep Account x)
-> (forall x. Rep Account x -> Account) -> Generic Account
forall x. Rep Account x -> Account
forall x. Account -> Rep Account x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Account x -> Account
$cfrom :: forall x. Account -> Rep Account x
Prelude.Generic)

-- |
-- Create a value of 'Account' 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:
--
-- 'signinDelegateGroups', 'account_signinDelegateGroups' - The sign-in delegate groups associated with the account.
--
-- 'accountStatus', 'account_accountStatus' - The status of the account.
--
-- 'defaultLicense', 'account_defaultLicense' - The default license for the Amazon Chime account.
--
-- 'supportedLicenses', 'account_supportedLicenses' - Supported licenses for the Amazon Chime account.
--
-- 'createdTimestamp', 'account_createdTimestamp' - The Amazon Chime account creation timestamp, in ISO 8601 format.
--
-- 'accountType', 'account_accountType' - The Amazon Chime account type. For more information about different
-- account types, see
-- <https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html Managing Your Amazon Chime Accounts>
-- in the /Amazon Chime Administration Guide/.
--
-- 'awsAccountId', 'account_awsAccountId' - The AWS account ID.
--
-- 'accountId', 'account_accountId' - The Amazon Chime account ID.
--
-- 'name', 'account_name' - The Amazon Chime account name.
newAccount ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'accountId'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  Account
newAccount :: Text -> Text -> Text -> Account
newAccount Text
pAwsAccountId_ Text
pAccountId_ Text
pName_ =
  Account' :: Maybe [SigninDelegateGroup]
-> Maybe AccountStatus
-> Maybe License
-> Maybe [License]
-> Maybe POSIX
-> Maybe AccountType
-> Text
-> Text
-> Text
-> Account
Account'
    { $sel:signinDelegateGroups:Account' :: Maybe [SigninDelegateGroup]
signinDelegateGroups = Maybe [SigninDelegateGroup]
forall a. Maybe a
Prelude.Nothing,
      $sel:accountStatus:Account' :: Maybe AccountStatus
accountStatus = Maybe AccountStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultLicense:Account' :: Maybe License
defaultLicense = Maybe License
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedLicenses:Account' :: Maybe [License]
supportedLicenses = Maybe [License]
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTimestamp:Account' :: Maybe POSIX
createdTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:accountType:Account' :: Maybe AccountType
accountType = Maybe AccountType
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:Account' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:accountId:Account' :: Text
accountId = Text
pAccountId_,
      $sel:name:Account' :: Text
name = Text
pName_
    }

-- | The sign-in delegate groups associated with the account.
account_signinDelegateGroups :: Lens.Lens' Account (Prelude.Maybe [SigninDelegateGroup])
account_signinDelegateGroups :: (Maybe [SigninDelegateGroup] -> f (Maybe [SigninDelegateGroup]))
-> Account -> f Account
account_signinDelegateGroups = (Account -> Maybe [SigninDelegateGroup])
-> (Account -> Maybe [SigninDelegateGroup] -> Account)
-> Lens
     Account
     Account
     (Maybe [SigninDelegateGroup])
     (Maybe [SigninDelegateGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe [SigninDelegateGroup]
signinDelegateGroups :: Maybe [SigninDelegateGroup]
$sel:signinDelegateGroups:Account' :: Account -> Maybe [SigninDelegateGroup]
signinDelegateGroups} -> Maybe [SigninDelegateGroup]
signinDelegateGroups) (\s :: Account
s@Account' {} Maybe [SigninDelegateGroup]
a -> Account
s {$sel:signinDelegateGroups:Account' :: Maybe [SigninDelegateGroup]
signinDelegateGroups = Maybe [SigninDelegateGroup]
a} :: Account) ((Maybe [SigninDelegateGroup] -> f (Maybe [SigninDelegateGroup]))
 -> Account -> f Account)
-> ((Maybe [SigninDelegateGroup]
     -> f (Maybe [SigninDelegateGroup]))
    -> Maybe [SigninDelegateGroup] -> f (Maybe [SigninDelegateGroup]))
-> (Maybe [SigninDelegateGroup] -> f (Maybe [SigninDelegateGroup]))
-> Account
-> f Account
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SigninDelegateGroup]
  [SigninDelegateGroup]
  [SigninDelegateGroup]
  [SigninDelegateGroup]
-> Iso
     (Maybe [SigninDelegateGroup])
     (Maybe [SigninDelegateGroup])
     (Maybe [SigninDelegateGroup])
     (Maybe [SigninDelegateGroup])
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 AnIso
  [SigninDelegateGroup]
  [SigninDelegateGroup]
  [SigninDelegateGroup]
  [SigninDelegateGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The status of the account.
account_accountStatus :: Lens.Lens' Account (Prelude.Maybe AccountStatus)
account_accountStatus :: (Maybe AccountStatus -> f (Maybe AccountStatus))
-> Account -> f Account
account_accountStatus = (Account -> Maybe AccountStatus)
-> (Account -> Maybe AccountStatus -> Account)
-> Lens Account Account (Maybe AccountStatus) (Maybe AccountStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe AccountStatus
accountStatus :: Maybe AccountStatus
$sel:accountStatus:Account' :: Account -> Maybe AccountStatus
accountStatus} -> Maybe AccountStatus
accountStatus) (\s :: Account
s@Account' {} Maybe AccountStatus
a -> Account
s {$sel:accountStatus:Account' :: Maybe AccountStatus
accountStatus = Maybe AccountStatus
a} :: Account)

-- | The default license for the Amazon Chime account.
account_defaultLicense :: Lens.Lens' Account (Prelude.Maybe License)
account_defaultLicense :: (Maybe License -> f (Maybe License)) -> Account -> f Account
account_defaultLicense = (Account -> Maybe License)
-> (Account -> Maybe License -> Account)
-> Lens Account Account (Maybe License) (Maybe License)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe License
defaultLicense :: Maybe License
$sel:defaultLicense:Account' :: Account -> Maybe License
defaultLicense} -> Maybe License
defaultLicense) (\s :: Account
s@Account' {} Maybe License
a -> Account
s {$sel:defaultLicense:Account' :: Maybe License
defaultLicense = Maybe License
a} :: Account)

-- | Supported licenses for the Amazon Chime account.
account_supportedLicenses :: Lens.Lens' Account (Prelude.Maybe [License])
account_supportedLicenses :: (Maybe [License] -> f (Maybe [License])) -> Account -> f Account
account_supportedLicenses = (Account -> Maybe [License])
-> (Account -> Maybe [License] -> Account)
-> Lens Account Account (Maybe [License]) (Maybe [License])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe [License]
supportedLicenses :: Maybe [License]
$sel:supportedLicenses:Account' :: Account -> Maybe [License]
supportedLicenses} -> Maybe [License]
supportedLicenses) (\s :: Account
s@Account' {} Maybe [License]
a -> Account
s {$sel:supportedLicenses:Account' :: Maybe [License]
supportedLicenses = Maybe [License]
a} :: Account) ((Maybe [License] -> f (Maybe [License])) -> Account -> f Account)
-> ((Maybe [License] -> f (Maybe [License]))
    -> Maybe [License] -> f (Maybe [License]))
-> (Maybe [License] -> f (Maybe [License]))
-> Account
-> f Account
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [License] [License] [License] [License]
-> Iso
     (Maybe [License])
     (Maybe [License])
     (Maybe [License])
     (Maybe [License])
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 AnIso [License] [License] [License] [License]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The Amazon Chime account creation timestamp, in ISO 8601 format.
account_createdTimestamp :: Lens.Lens' Account (Prelude.Maybe Prelude.UTCTime)
account_createdTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Account -> f Account
account_createdTimestamp = (Account -> Maybe POSIX)
-> (Account -> Maybe POSIX -> Account)
-> Lens Account Account (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:Account' :: Account -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: Account
s@Account' {} Maybe POSIX
a -> Account
s {$sel:createdTimestamp:Account' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: Account) ((Maybe POSIX -> f (Maybe POSIX)) -> Account -> f Account)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Account
-> f Account
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The Amazon Chime account type. For more information about different
-- account types, see
-- <https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html Managing Your Amazon Chime Accounts>
-- in the /Amazon Chime Administration Guide/.
account_accountType :: Lens.Lens' Account (Prelude.Maybe AccountType)
account_accountType :: (Maybe AccountType -> f (Maybe AccountType))
-> Account -> f Account
account_accountType = (Account -> Maybe AccountType)
-> (Account -> Maybe AccountType -> Account)
-> Lens Account Account (Maybe AccountType) (Maybe AccountType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Maybe AccountType
accountType :: Maybe AccountType
$sel:accountType:Account' :: Account -> Maybe AccountType
accountType} -> Maybe AccountType
accountType) (\s :: Account
s@Account' {} Maybe AccountType
a -> Account
s {$sel:accountType:Account' :: Maybe AccountType
accountType = Maybe AccountType
a} :: Account)

-- | The AWS account ID.
account_awsAccountId :: Lens.Lens' Account Prelude.Text
account_awsAccountId :: (Text -> f Text) -> Account -> f Account
account_awsAccountId = (Account -> Text)
-> (Account -> Text -> Account) -> Lens Account Account Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Text
awsAccountId :: Text
$sel:awsAccountId:Account' :: Account -> Text
awsAccountId} -> Text
awsAccountId) (\s :: Account
s@Account' {} Text
a -> Account
s {$sel:awsAccountId:Account' :: Text
awsAccountId = Text
a} :: Account)

-- | The Amazon Chime account ID.
account_accountId :: Lens.Lens' Account Prelude.Text
account_accountId :: (Text -> f Text) -> Account -> f Account
account_accountId = (Account -> Text)
-> (Account -> Text -> Account) -> Lens Account Account Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Text
accountId :: Text
$sel:accountId:Account' :: Account -> Text
accountId} -> Text
accountId) (\s :: Account
s@Account' {} Text
a -> Account
s {$sel:accountId:Account' :: Text
accountId = Text
a} :: Account)

-- | The Amazon Chime account name.
account_name :: Lens.Lens' Account Prelude.Text
account_name :: (Text -> f Text) -> Account -> f Account
account_name = (Account -> Text)
-> (Account -> Text -> Account) -> Lens Account Account Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Account' {Text
name :: Text
$sel:name:Account' :: Account -> Text
name} -> Text
name) (\s :: Account
s@Account' {} Text
a -> Account
s {$sel:name:Account' :: Text
name = Text
a} :: Account)

instance Core.FromJSON Account where
  parseJSON :: Value -> Parser Account
parseJSON =
    String -> (Object -> Parser Account) -> Value -> Parser Account
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Account"
      ( \Object
x ->
          Maybe [SigninDelegateGroup]
-> Maybe AccountStatus
-> Maybe License
-> Maybe [License]
-> Maybe POSIX
-> Maybe AccountType
-> Text
-> Text
-> Text
-> Account
Account'
            (Maybe [SigninDelegateGroup]
 -> Maybe AccountStatus
 -> Maybe License
 -> Maybe [License]
 -> Maybe POSIX
 -> Maybe AccountType
 -> Text
 -> Text
 -> Text
 -> Account)
-> Parser (Maybe [SigninDelegateGroup])
-> Parser
     (Maybe AccountStatus
      -> Maybe License
      -> Maybe [License]
      -> Maybe POSIX
      -> Maybe AccountType
      -> Text
      -> Text
      -> Text
      -> Account)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Parser (Maybe (Maybe [SigninDelegateGroup]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SigninDelegateGroups"
                            Parser (Maybe (Maybe [SigninDelegateGroup]))
-> Maybe [SigninDelegateGroup]
-> Parser (Maybe [SigninDelegateGroup])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [SigninDelegateGroup]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe AccountStatus
   -> Maybe License
   -> Maybe [License]
   -> Maybe POSIX
   -> Maybe AccountType
   -> Text
   -> Text
   -> Text
   -> Account)
-> Parser (Maybe AccountStatus)
-> Parser
     (Maybe License
      -> Maybe [License]
      -> Maybe POSIX
      -> Maybe AccountType
      -> Text
      -> Text
      -> Text
      -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AccountStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccountStatus")
            Parser
  (Maybe License
   -> Maybe [License]
   -> Maybe POSIX
   -> Maybe AccountType
   -> Text
   -> Text
   -> Text
   -> Account)
-> Parser (Maybe License)
-> Parser
     (Maybe [License]
      -> Maybe POSIX
      -> Maybe AccountType
      -> Text
      -> Text
      -> Text
      -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe License)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DefaultLicense")
            Parser
  (Maybe [License]
   -> Maybe POSIX
   -> Maybe AccountType
   -> Text
   -> Text
   -> Text
   -> Account)
-> Parser (Maybe [License])
-> Parser
     (Maybe POSIX
      -> Maybe AccountType -> Text -> Text -> Text -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [License]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SupportedLicenses"
                            Parser (Maybe (Maybe [License]))
-> Maybe [License] -> Parser (Maybe [License])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [License]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe POSIX
   -> Maybe AccountType -> Text -> Text -> Text -> Account)
-> Parser (Maybe POSIX)
-> Parser (Maybe AccountType -> Text -> Text -> Text -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTimestamp")
            Parser (Maybe AccountType -> Text -> Text -> Text -> Account)
-> Parser (Maybe AccountType)
-> Parser (Text -> Text -> Text -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AccountType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccountType")
            Parser (Text -> Text -> Text -> Account)
-> Parser Text -> Parser (Text -> Text -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"AwsAccountId")
            Parser (Text -> Text -> Account)
-> Parser Text -> Parser (Text -> Account)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"AccountId")
            Parser (Text -> Account) -> Parser Text -> Parser Account
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Name")
      )

instance Prelude.Hashable Account

instance Prelude.NFData Account