{-# 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.IosImportClientBrandingAttributes 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 IosImportClientBrandingAttributes = IosImportClientBrandingAttributes'
{
IosImportClientBrandingAttributes -> Maybe Text
forgotPasswordLink :: Prelude.Maybe Prelude.Text,
IosImportClientBrandingAttributes -> Maybe (HashMap Text Text)
loginMessage :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
IosImportClientBrandingAttributes -> Maybe Base64
logo :: Prelude.Maybe Data.Base64,
IosImportClientBrandingAttributes -> Maybe Base64
logo2x :: Prelude.Maybe Data.Base64,
IosImportClientBrandingAttributes -> Maybe Base64
logo3x :: Prelude.Maybe Data.Base64,
IosImportClientBrandingAttributes -> Maybe Text
supportEmail :: Prelude.Maybe Prelude.Text,
IosImportClientBrandingAttributes -> Maybe Text
supportLink :: Prelude.Maybe Prelude.Text
}
deriving (IosImportClientBrandingAttributes
-> IosImportClientBrandingAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IosImportClientBrandingAttributes
-> IosImportClientBrandingAttributes -> Bool
$c/= :: IosImportClientBrandingAttributes
-> IosImportClientBrandingAttributes -> Bool
== :: IosImportClientBrandingAttributes
-> IosImportClientBrandingAttributes -> Bool
$c== :: IosImportClientBrandingAttributes
-> IosImportClientBrandingAttributes -> Bool
Prelude.Eq, ReadPrec [IosImportClientBrandingAttributes]
ReadPrec IosImportClientBrandingAttributes
Int -> ReadS IosImportClientBrandingAttributes
ReadS [IosImportClientBrandingAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IosImportClientBrandingAttributes]
$creadListPrec :: ReadPrec [IosImportClientBrandingAttributes]
readPrec :: ReadPrec IosImportClientBrandingAttributes
$creadPrec :: ReadPrec IosImportClientBrandingAttributes
readList :: ReadS [IosImportClientBrandingAttributes]
$creadList :: ReadS [IosImportClientBrandingAttributes]
readsPrec :: Int -> ReadS IosImportClientBrandingAttributes
$creadsPrec :: Int -> ReadS IosImportClientBrandingAttributes
Prelude.Read, Int -> IosImportClientBrandingAttributes -> ShowS
[IosImportClientBrandingAttributes] -> ShowS
IosImportClientBrandingAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IosImportClientBrandingAttributes] -> ShowS
$cshowList :: [IosImportClientBrandingAttributes] -> ShowS
show :: IosImportClientBrandingAttributes -> String
$cshow :: IosImportClientBrandingAttributes -> String
showsPrec :: Int -> IosImportClientBrandingAttributes -> ShowS
$cshowsPrec :: Int -> IosImportClientBrandingAttributes -> ShowS
Prelude.Show, forall x.
Rep IosImportClientBrandingAttributes x
-> IosImportClientBrandingAttributes
forall x.
IosImportClientBrandingAttributes
-> Rep IosImportClientBrandingAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep IosImportClientBrandingAttributes x
-> IosImportClientBrandingAttributes
$cfrom :: forall x.
IosImportClientBrandingAttributes
-> Rep IosImportClientBrandingAttributes x
Prelude.Generic)
newIosImportClientBrandingAttributes ::
IosImportClientBrandingAttributes
newIosImportClientBrandingAttributes :: IosImportClientBrandingAttributes
newIosImportClientBrandingAttributes =
IosImportClientBrandingAttributes'
{ $sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: Maybe Text
forgotPasswordLink =
forall a. Maybe a
Prelude.Nothing,
$sel:loginMessage:IosImportClientBrandingAttributes' :: Maybe (HashMap Text Text)
loginMessage = forall a. Maybe a
Prelude.Nothing,
$sel:logo:IosImportClientBrandingAttributes' :: Maybe Base64
logo = forall a. Maybe a
Prelude.Nothing,
$sel:logo2x:IosImportClientBrandingAttributes' :: Maybe Base64
logo2x = forall a. Maybe a
Prelude.Nothing,
$sel:logo3x:IosImportClientBrandingAttributes' :: Maybe Base64
logo3x = forall a. Maybe a
Prelude.Nothing,
$sel:supportEmail:IosImportClientBrandingAttributes' :: Maybe Text
supportEmail = forall a. Maybe a
Prelude.Nothing,
$sel:supportLink:IosImportClientBrandingAttributes' :: Maybe Text
supportLink = forall a. Maybe a
Prelude.Nothing
}
iosImportClientBrandingAttributes_forgotPasswordLink :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
iosImportClientBrandingAttributes_forgotPasswordLink :: Lens' IosImportClientBrandingAttributes (Maybe Text)
iosImportClientBrandingAttributes_forgotPasswordLink = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Text
forgotPasswordLink :: Maybe Text
$sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
forgotPasswordLink} -> Maybe Text
forgotPasswordLink) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Text
a -> IosImportClientBrandingAttributes
s {$sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: Maybe Text
forgotPasswordLink = Maybe Text
a} :: IosImportClientBrandingAttributes)
iosImportClientBrandingAttributes_loginMessage :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
iosImportClientBrandingAttributes_loginMessage :: Lens' IosImportClientBrandingAttributes (Maybe (HashMap Text Text))
iosImportClientBrandingAttributes_loginMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe (HashMap Text Text)
loginMessage :: Maybe (HashMap Text Text)
$sel:loginMessage:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe (HashMap Text Text)
loginMessage} -> Maybe (HashMap Text Text)
loginMessage) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe (HashMap Text Text)
a -> IosImportClientBrandingAttributes
s {$sel:loginMessage:IosImportClientBrandingAttributes' :: Maybe (HashMap Text Text)
loginMessage = Maybe (HashMap Text Text)
a} :: IosImportClientBrandingAttributes) 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
iosImportClientBrandingAttributes_logo :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.ByteString)
iosImportClientBrandingAttributes_logo :: Lens' IosImportClientBrandingAttributes (Maybe ByteString)
iosImportClientBrandingAttributes_logo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Base64
logo :: Maybe Base64
$sel:logo:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
logo} -> Maybe Base64
logo) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Base64
a -> IosImportClientBrandingAttributes
s {$sel:logo:IosImportClientBrandingAttributes' :: Maybe Base64
logo = Maybe Base64
a} :: IosImportClientBrandingAttributes) 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
iosImportClientBrandingAttributes_logo2x :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.ByteString)
iosImportClientBrandingAttributes_logo2x :: Lens' IosImportClientBrandingAttributes (Maybe ByteString)
iosImportClientBrandingAttributes_logo2x = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Base64
logo2x :: Maybe Base64
$sel:logo2x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
logo2x} -> Maybe Base64
logo2x) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Base64
a -> IosImportClientBrandingAttributes
s {$sel:logo2x:IosImportClientBrandingAttributes' :: Maybe Base64
logo2x = Maybe Base64
a} :: IosImportClientBrandingAttributes) 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
iosImportClientBrandingAttributes_logo3x :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.ByteString)
iosImportClientBrandingAttributes_logo3x :: Lens' IosImportClientBrandingAttributes (Maybe ByteString)
iosImportClientBrandingAttributes_logo3x = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Base64
logo3x :: Maybe Base64
$sel:logo3x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
logo3x} -> Maybe Base64
logo3x) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Base64
a -> IosImportClientBrandingAttributes
s {$sel:logo3x:IosImportClientBrandingAttributes' :: Maybe Base64
logo3x = Maybe Base64
a} :: IosImportClientBrandingAttributes) 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
iosImportClientBrandingAttributes_supportEmail :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
iosImportClientBrandingAttributes_supportEmail :: Lens' IosImportClientBrandingAttributes (Maybe Text)
iosImportClientBrandingAttributes_supportEmail = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Text
supportEmail :: Maybe Text
$sel:supportEmail:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
supportEmail} -> Maybe Text
supportEmail) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Text
a -> IosImportClientBrandingAttributes
s {$sel:supportEmail:IosImportClientBrandingAttributes' :: Maybe Text
supportEmail = Maybe Text
a} :: IosImportClientBrandingAttributes)
iosImportClientBrandingAttributes_supportLink :: Lens.Lens' IosImportClientBrandingAttributes (Prelude.Maybe Prelude.Text)
iosImportClientBrandingAttributes_supportLink :: Lens' IosImportClientBrandingAttributes (Maybe Text)
iosImportClientBrandingAttributes_supportLink = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IosImportClientBrandingAttributes' {Maybe Text
supportLink :: Maybe Text
$sel:supportLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
supportLink} -> Maybe Text
supportLink) (\s :: IosImportClientBrandingAttributes
s@IosImportClientBrandingAttributes' {} Maybe Text
a -> IosImportClientBrandingAttributes
s {$sel:supportLink:IosImportClientBrandingAttributes' :: Maybe Text
supportLink = Maybe Text
a} :: IosImportClientBrandingAttributes)
instance
Prelude.Hashable
IosImportClientBrandingAttributes
where
hashWithSalt :: Int -> IosImportClientBrandingAttributes -> Int
hashWithSalt
Int
_salt
IosImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo3x :: Maybe Base64
logo2x :: Maybe Base64
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:logo3x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo2x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> 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 Base64
logo2x
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Base64
logo3x
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
IosImportClientBrandingAttributes
where
rnf :: IosImportClientBrandingAttributes -> ()
rnf IosImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo3x :: Maybe Base64
logo2x :: Maybe Base64
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:logo3x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo2x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> 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 Base64
logo2x
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Base64
logo3x
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
IosImportClientBrandingAttributes
where
toJSON :: IosImportClientBrandingAttributes -> Value
toJSON IosImportClientBrandingAttributes' {Maybe Text
Maybe (HashMap Text Text)
Maybe Base64
supportLink :: Maybe Text
supportEmail :: Maybe Text
logo3x :: Maybe Base64
logo2x :: Maybe Base64
logo :: Maybe Base64
loginMessage :: Maybe (HashMap Text Text)
forgotPasswordLink :: Maybe Text
$sel:supportLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:supportEmail:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Text
$sel:logo3x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo2x:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:logo:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe Base64
$sel:loginMessage:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> Maybe (HashMap Text Text)
$sel:forgotPasswordLink:IosImportClientBrandingAttributes' :: IosImportClientBrandingAttributes -> 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
"Logo2x" 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
logo2x,
(Key
"Logo3x" 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
logo3x,
(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
]
)