{-# 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.WorkSpaces.Types.DefaultImportClientBrandingAttributes 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 DefaultImportClientBrandingAttributes = DefaultImportClientBrandingAttributes'
{
DefaultImportClientBrandingAttributes -> Maybe Text
forgotPasswordLink :: Prelude.Maybe Prelude.Text,
DefaultImportClientBrandingAttributes -> Maybe (HashMap Text Text)
loginMessage :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DefaultImportClientBrandingAttributes -> Maybe Base64
logo :: Prelude.Maybe Data.Base64,
DefaultImportClientBrandingAttributes -> Maybe Text
supportEmail :: Prelude.Maybe Prelude.Text,
DefaultImportClientBrandingAttributes -> Maybe Text
supportLink :: Prelude.Maybe Prelude.Text
}
deriving (DefaultImportClientBrandingAttributes
-> DefaultImportClientBrandingAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DefaultImportClientBrandingAttributes
-> DefaultImportClientBrandingAttributes -> Bool
$c/= :: DefaultImportClientBrandingAttributes
-> DefaultImportClientBrandingAttributes -> Bool
== :: DefaultImportClientBrandingAttributes
-> DefaultImportClientBrandingAttributes -> Bool
$c== :: DefaultImportClientBrandingAttributes
-> DefaultImportClientBrandingAttributes -> Bool
Prelude.Eq, ReadPrec [DefaultImportClientBrandingAttributes]
ReadPrec DefaultImportClientBrandingAttributes
Int -> ReadS DefaultImportClientBrandingAttributes
ReadS [DefaultImportClientBrandingAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DefaultImportClientBrandingAttributes]
$creadListPrec :: ReadPrec [DefaultImportClientBrandingAttributes]
readPrec :: ReadPrec DefaultImportClientBrandingAttributes
$creadPrec :: ReadPrec DefaultImportClientBrandingAttributes
readList :: ReadS [DefaultImportClientBrandingAttributes]
$creadList :: ReadS [DefaultImportClientBrandingAttributes]
readsPrec :: Int -> ReadS DefaultImportClientBrandingAttributes
$creadsPrec :: Int -> ReadS DefaultImportClientBrandingAttributes
Prelude.Read, Int -> DefaultImportClientBrandingAttributes -> ShowS
[DefaultImportClientBrandingAttributes] -> ShowS
DefaultImportClientBrandingAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DefaultImportClientBrandingAttributes] -> ShowS
$cshowList :: [DefaultImportClientBrandingAttributes] -> ShowS
show :: DefaultImportClientBrandingAttributes -> String
$cshow :: DefaultImportClientBrandingAttributes -> String
showsPrec :: Int -> DefaultImportClientBrandingAttributes -> ShowS
$cshowsPrec :: Int -> DefaultImportClientBrandingAttributes -> ShowS
Prelude.Show, forall x.
Rep DefaultImportClientBrandingAttributes x
-> DefaultImportClientBrandingAttributes
forall x.
DefaultImportClientBrandingAttributes
-> Rep DefaultImportClientBrandingAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DefaultImportClientBrandingAttributes x
-> DefaultImportClientBrandingAttributes
$cfrom :: forall x.
DefaultImportClientBrandingAttributes
-> Rep DefaultImportClientBrandingAttributes x
Prelude.Generic)
newDefaultImportClientBrandingAttributes ::
DefaultImportClientBrandingAttributes
newDefaultImportClientBrandingAttributes :: DefaultImportClientBrandingAttributes
newDefaultImportClientBrandingAttributes =
DefaultImportClientBrandingAttributes'
{ $sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: Maybe Text
forgotPasswordLink =
forall a. Maybe a
Prelude.Nothing,
$sel:loginMessage:DefaultImportClientBrandingAttributes' :: Maybe (HashMap Text Text)
loginMessage = forall a. Maybe a
Prelude.Nothing,
$sel:logo:DefaultImportClientBrandingAttributes' :: Maybe Base64
logo = forall a. Maybe a
Prelude.Nothing,
$sel:supportEmail:DefaultImportClientBrandingAttributes' :: Maybe Text
supportEmail = forall a. Maybe a
Prelude.Nothing,
$sel:supportLink:DefaultImportClientBrandingAttributes' :: Maybe Text
supportLink = forall a. Maybe a
Prelude.Nothing
}
defaultImportClientBrandingAttributes_forgotPasswordLink :: Lens.Lens' DefaultImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
defaultImportClientBrandingAttributes_forgotPasswordLink :: Lens' DefaultImportClientBrandingAttributes (Maybe Text)
defaultImportClientBrandingAttributes_forgotPasswordLink = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultImportClientBrandingAttributes' {Maybe Text
forgotPasswordLink :: Maybe Text
$sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
forgotPasswordLink} -> Maybe Text
forgotPasswordLink) (\s :: DefaultImportClientBrandingAttributes
s@DefaultImportClientBrandingAttributes' {} Maybe Text
a -> DefaultImportClientBrandingAttributes
s {$sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: Maybe Text
forgotPasswordLink = Maybe Text
a} :: DefaultImportClientBrandingAttributes)
defaultImportClientBrandingAttributes_loginMessage :: Lens.Lens' DefaultImportClientBrandingAttributes (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
defaultImportClientBrandingAttributes_loginMessage :: Lens'
DefaultImportClientBrandingAttributes (Maybe (HashMap Text Text))
defaultImportClientBrandingAttributes_loginMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultImportClientBrandingAttributes' {Maybe (HashMap Text Text)
loginMessage :: Maybe (HashMap Text Text)
$sel:loginMessage:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe (HashMap Text Text)
loginMessage} -> Maybe (HashMap Text Text)
loginMessage) (\s :: DefaultImportClientBrandingAttributes
s@DefaultImportClientBrandingAttributes' {} Maybe (HashMap Text Text)
a -> DefaultImportClientBrandingAttributes
s {$sel:loginMessage:DefaultImportClientBrandingAttributes' :: Maybe (HashMap Text Text)
loginMessage = Maybe (HashMap Text Text)
a} :: DefaultImportClientBrandingAttributes) 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
defaultImportClientBrandingAttributes_logo :: Lens.Lens' DefaultImportClientBrandingAttributes (Prelude.Maybe Prelude.ByteString)
defaultImportClientBrandingAttributes_logo :: Lens' DefaultImportClientBrandingAttributes (Maybe ByteString)
defaultImportClientBrandingAttributes_logo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultImportClientBrandingAttributes' {Maybe Base64
logo :: Maybe Base64
$sel:logo:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Base64
logo} -> Maybe Base64
logo) (\s :: DefaultImportClientBrandingAttributes
s@DefaultImportClientBrandingAttributes' {} Maybe Base64
a -> DefaultImportClientBrandingAttributes
s {$sel:logo:DefaultImportClientBrandingAttributes' :: Maybe Base64
logo = Maybe Base64
a} :: DefaultImportClientBrandingAttributes) 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 Iso' Base64 ByteString
Data._Base64
defaultImportClientBrandingAttributes_supportEmail :: Lens.Lens' DefaultImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
defaultImportClientBrandingAttributes_supportEmail :: Lens' DefaultImportClientBrandingAttributes (Maybe Text)
defaultImportClientBrandingAttributes_supportEmail = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultImportClientBrandingAttributes' {Maybe Text
supportEmail :: Maybe Text
$sel:supportEmail:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
supportEmail} -> Maybe Text
supportEmail) (\s :: DefaultImportClientBrandingAttributes
s@DefaultImportClientBrandingAttributes' {} Maybe Text
a -> DefaultImportClientBrandingAttributes
s {$sel:supportEmail:DefaultImportClientBrandingAttributes' :: Maybe Text
supportEmail = Maybe Text
a} :: DefaultImportClientBrandingAttributes)
defaultImportClientBrandingAttributes_supportLink :: Lens.Lens' DefaultImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
defaultImportClientBrandingAttributes_supportLink :: Lens' DefaultImportClientBrandingAttributes (Maybe Text)
defaultImportClientBrandingAttributes_supportLink = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultImportClientBrandingAttributes' {Maybe Text
supportLink :: Maybe Text
$sel:supportLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
supportLink} -> Maybe Text
supportLink) (\s :: DefaultImportClientBrandingAttributes
s@DefaultImportClientBrandingAttributes' {} Maybe Text
a -> DefaultImportClientBrandingAttributes
s {$sel:supportLink:DefaultImportClientBrandingAttributes' :: Maybe Text
supportLink = Maybe Text
a} :: DefaultImportClientBrandingAttributes)
instance
Prelude.Hashable
DefaultImportClientBrandingAttributes
where
hashWithSalt :: Int -> DefaultImportClientBrandingAttributes -> Int
hashWithSalt
Int
_salt
DefaultImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:logo:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
forgotPasswordLink
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
loginMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Base64
logo
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
supportEmail
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
supportLink
instance
Prelude.NFData
DefaultImportClientBrandingAttributes
where
rnf :: DefaultImportClientBrandingAttributes -> ()
rnf DefaultImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:logo:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
forgotPasswordLink
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
loginMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Base64
logo
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
supportEmail
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
supportLink
instance
Data.ToJSON
DefaultImportClientBrandingAttributes
where
toJSON :: DefaultImportClientBrandingAttributes -> Value
toJSON DefaultImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
$sel:logo:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:DefaultImportClientBrandingAttributes' :: DefaultImportClientBrandingAttributes -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ForgotPasswordLink" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
forgotPasswordLink,
(Key
"LoginMessage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
loginMessage,
(Key
"Logo" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Base64
logo,
(Key
"SupportEmail" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
supportEmail,
(Key
"SupportLink" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
supportLink
]
)