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