{-# 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.Ipv6PrefixSpecificationResponse 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 Ipv6PrefixSpecificationResponse = Ipv6PrefixSpecificationResponse'
{
Ipv6PrefixSpecificationResponse -> Maybe Text
ipv6Prefix :: Prelude.Maybe Prelude.Text
}
deriving (Ipv6PrefixSpecificationResponse
-> Ipv6PrefixSpecificationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ipv6PrefixSpecificationResponse
-> Ipv6PrefixSpecificationResponse -> Bool
$c/= :: Ipv6PrefixSpecificationResponse
-> Ipv6PrefixSpecificationResponse -> Bool
== :: Ipv6PrefixSpecificationResponse
-> Ipv6PrefixSpecificationResponse -> Bool
$c== :: Ipv6PrefixSpecificationResponse
-> Ipv6PrefixSpecificationResponse -> Bool
Prelude.Eq, ReadPrec [Ipv6PrefixSpecificationResponse]
ReadPrec Ipv6PrefixSpecificationResponse
Int -> ReadS Ipv6PrefixSpecificationResponse
ReadS [Ipv6PrefixSpecificationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ipv6PrefixSpecificationResponse]
$creadListPrec :: ReadPrec [Ipv6PrefixSpecificationResponse]
readPrec :: ReadPrec Ipv6PrefixSpecificationResponse
$creadPrec :: ReadPrec Ipv6PrefixSpecificationResponse
readList :: ReadS [Ipv6PrefixSpecificationResponse]
$creadList :: ReadS [Ipv6PrefixSpecificationResponse]
readsPrec :: Int -> ReadS Ipv6PrefixSpecificationResponse
$creadsPrec :: Int -> ReadS Ipv6PrefixSpecificationResponse
Prelude.Read, Int -> Ipv6PrefixSpecificationResponse -> ShowS
[Ipv6PrefixSpecificationResponse] -> ShowS
Ipv6PrefixSpecificationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ipv6PrefixSpecificationResponse] -> ShowS
$cshowList :: [Ipv6PrefixSpecificationResponse] -> ShowS
show :: Ipv6PrefixSpecificationResponse -> String
$cshow :: Ipv6PrefixSpecificationResponse -> String
showsPrec :: Int -> Ipv6PrefixSpecificationResponse -> ShowS
$cshowsPrec :: Int -> Ipv6PrefixSpecificationResponse -> ShowS
Prelude.Show, forall x.
Rep Ipv6PrefixSpecificationResponse x
-> Ipv6PrefixSpecificationResponse
forall x.
Ipv6PrefixSpecificationResponse
-> Rep Ipv6PrefixSpecificationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Ipv6PrefixSpecificationResponse x
-> Ipv6PrefixSpecificationResponse
$cfrom :: forall x.
Ipv6PrefixSpecificationResponse
-> Rep Ipv6PrefixSpecificationResponse x
Prelude.Generic)
newIpv6PrefixSpecificationResponse ::
Ipv6PrefixSpecificationResponse
newIpv6PrefixSpecificationResponse :: Ipv6PrefixSpecificationResponse
newIpv6PrefixSpecificationResponse =
Ipv6PrefixSpecificationResponse'
{ $sel:ipv6Prefix:Ipv6PrefixSpecificationResponse' :: Maybe Text
ipv6Prefix =
forall a. Maybe a
Prelude.Nothing
}
ipv6PrefixSpecificationResponse_ipv6Prefix :: Lens.Lens' Ipv6PrefixSpecificationResponse (Prelude.Maybe Prelude.Text)
ipv6PrefixSpecificationResponse_ipv6Prefix :: Lens' Ipv6PrefixSpecificationResponse (Maybe Text)
ipv6PrefixSpecificationResponse_ipv6Prefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Ipv6PrefixSpecificationResponse' {Maybe Text
ipv6Prefix :: Maybe Text
$sel:ipv6Prefix:Ipv6PrefixSpecificationResponse' :: Ipv6PrefixSpecificationResponse -> Maybe Text
ipv6Prefix} -> Maybe Text
ipv6Prefix) (\s :: Ipv6PrefixSpecificationResponse
s@Ipv6PrefixSpecificationResponse' {} Maybe Text
a -> Ipv6PrefixSpecificationResponse
s {$sel:ipv6Prefix:Ipv6PrefixSpecificationResponse' :: Maybe Text
ipv6Prefix = Maybe Text
a} :: Ipv6PrefixSpecificationResponse)
instance Data.FromXML Ipv6PrefixSpecificationResponse where
parseXML :: [Node] -> Either String Ipv6PrefixSpecificationResponse
parseXML [Node]
x =
Maybe Text -> Ipv6PrefixSpecificationResponse
Ipv6PrefixSpecificationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ipv6Prefix")
instance
Prelude.Hashable
Ipv6PrefixSpecificationResponse
where
hashWithSalt :: Int -> Ipv6PrefixSpecificationResponse -> Int
hashWithSalt
Int
_salt
Ipv6PrefixSpecificationResponse' {Maybe Text
ipv6Prefix :: Maybe Text
$sel:ipv6Prefix:Ipv6PrefixSpecificationResponse' :: Ipv6PrefixSpecificationResponse -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ipv6Prefix
instance
Prelude.NFData
Ipv6PrefixSpecificationResponse
where
rnf :: Ipv6PrefixSpecificationResponse -> ()
rnf Ipv6PrefixSpecificationResponse' {Maybe Text
ipv6Prefix :: Maybe Text
$sel:ipv6Prefix:Ipv6PrefixSpecificationResponse' :: Ipv6PrefixSpecificationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ipv6Prefix