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