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