{-# 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.EC2.Types.Phase1EncryptionAlgorithmsRequestListValue where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
data Phase1EncryptionAlgorithmsRequestListValue = Phase1EncryptionAlgorithmsRequestListValue'
{
Phase1EncryptionAlgorithmsRequestListValue -> Maybe Text
value :: Prelude.Maybe Prelude.Text
}
deriving (Phase1EncryptionAlgorithmsRequestListValue
-> Phase1EncryptionAlgorithmsRequestListValue -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Phase1EncryptionAlgorithmsRequestListValue
-> Phase1EncryptionAlgorithmsRequestListValue -> Bool
$c/= :: Phase1EncryptionAlgorithmsRequestListValue
-> Phase1EncryptionAlgorithmsRequestListValue -> Bool
== :: Phase1EncryptionAlgorithmsRequestListValue
-> Phase1EncryptionAlgorithmsRequestListValue -> Bool
$c== :: Phase1EncryptionAlgorithmsRequestListValue
-> Phase1EncryptionAlgorithmsRequestListValue -> Bool
Prelude.Eq, ReadPrec [Phase1EncryptionAlgorithmsRequestListValue]
ReadPrec Phase1EncryptionAlgorithmsRequestListValue
Int -> ReadS Phase1EncryptionAlgorithmsRequestListValue
ReadS [Phase1EncryptionAlgorithmsRequestListValue]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Phase1EncryptionAlgorithmsRequestListValue]
$creadListPrec :: ReadPrec [Phase1EncryptionAlgorithmsRequestListValue]
readPrec :: ReadPrec Phase1EncryptionAlgorithmsRequestListValue
$creadPrec :: ReadPrec Phase1EncryptionAlgorithmsRequestListValue
readList :: ReadS [Phase1EncryptionAlgorithmsRequestListValue]
$creadList :: ReadS [Phase1EncryptionAlgorithmsRequestListValue]
readsPrec :: Int -> ReadS Phase1EncryptionAlgorithmsRequestListValue
$creadsPrec :: Int -> ReadS Phase1EncryptionAlgorithmsRequestListValue
Prelude.Read, Int -> Phase1EncryptionAlgorithmsRequestListValue -> ShowS
[Phase1EncryptionAlgorithmsRequestListValue] -> ShowS
Phase1EncryptionAlgorithmsRequestListValue -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Phase1EncryptionAlgorithmsRequestListValue] -> ShowS
$cshowList :: [Phase1EncryptionAlgorithmsRequestListValue] -> ShowS
show :: Phase1EncryptionAlgorithmsRequestListValue -> String
$cshow :: Phase1EncryptionAlgorithmsRequestListValue -> String
showsPrec :: Int -> Phase1EncryptionAlgorithmsRequestListValue -> ShowS
$cshowsPrec :: Int -> Phase1EncryptionAlgorithmsRequestListValue -> ShowS
Prelude.Show, forall x.
Rep Phase1EncryptionAlgorithmsRequestListValue x
-> Phase1EncryptionAlgorithmsRequestListValue
forall x.
Phase1EncryptionAlgorithmsRequestListValue
-> Rep Phase1EncryptionAlgorithmsRequestListValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Phase1EncryptionAlgorithmsRequestListValue x
-> Phase1EncryptionAlgorithmsRequestListValue
$cfrom :: forall x.
Phase1EncryptionAlgorithmsRequestListValue
-> Rep Phase1EncryptionAlgorithmsRequestListValue x
Prelude.Generic)
newPhase1EncryptionAlgorithmsRequestListValue ::
Phase1EncryptionAlgorithmsRequestListValue
newPhase1EncryptionAlgorithmsRequestListValue :: Phase1EncryptionAlgorithmsRequestListValue
newPhase1EncryptionAlgorithmsRequestListValue =
Phase1EncryptionAlgorithmsRequestListValue'
{ $sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Maybe Text
value =
forall a. Maybe a
Prelude.Nothing
}
phase1EncryptionAlgorithmsRequestListValue_value :: Lens.Lens' Phase1EncryptionAlgorithmsRequestListValue (Prelude.Maybe Prelude.Text)
phase1EncryptionAlgorithmsRequestListValue_value :: Lens' Phase1EncryptionAlgorithmsRequestListValue (Maybe Text)
phase1EncryptionAlgorithmsRequestListValue_value = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Phase1EncryptionAlgorithmsRequestListValue' {Maybe Text
value :: Maybe Text
$sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Phase1EncryptionAlgorithmsRequestListValue -> Maybe Text
value} -> Maybe Text
value) (\s :: Phase1EncryptionAlgorithmsRequestListValue
s@Phase1EncryptionAlgorithmsRequestListValue' {} Maybe Text
a -> Phase1EncryptionAlgorithmsRequestListValue
s {$sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Maybe Text
value = Maybe Text
a} :: Phase1EncryptionAlgorithmsRequestListValue)
instance
Prelude.Hashable
Phase1EncryptionAlgorithmsRequestListValue
where
hashWithSalt :: Int -> Phase1EncryptionAlgorithmsRequestListValue -> Int
hashWithSalt
Int
_salt
Phase1EncryptionAlgorithmsRequestListValue' {Maybe Text
value :: Maybe Text
$sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Phase1EncryptionAlgorithmsRequestListValue -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
value
instance
Prelude.NFData
Phase1EncryptionAlgorithmsRequestListValue
where
rnf :: Phase1EncryptionAlgorithmsRequestListValue -> ()
rnf Phase1EncryptionAlgorithmsRequestListValue' {Maybe Text
value :: Maybe Text
$sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Phase1EncryptionAlgorithmsRequestListValue -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
value
instance
Data.ToQuery
Phase1EncryptionAlgorithmsRequestListValue
where
toQuery :: Phase1EncryptionAlgorithmsRequestListValue -> QueryString
toQuery
Phase1EncryptionAlgorithmsRequestListValue' {Maybe Text
value :: Maybe Text
$sel:value:Phase1EncryptionAlgorithmsRequestListValue' :: Phase1EncryptionAlgorithmsRequestListValue -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Value" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
value]