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