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