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