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