{-# 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.OpenSearchServerless.Types.DeleteVpcEndpointDetail where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.OpenSearchServerless.Types.VpcEndpointStatus
import qualified Amazonka.Prelude as Prelude
data DeleteVpcEndpointDetail = DeleteVpcEndpointDetail'
{
DeleteVpcEndpointDetail -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DeleteVpcEndpointDetail -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DeleteVpcEndpointDetail -> Maybe VpcEndpointStatus
status :: Prelude.Maybe VpcEndpointStatus
}
deriving (DeleteVpcEndpointDetail -> DeleteVpcEndpointDetail -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteVpcEndpointDetail -> DeleteVpcEndpointDetail -> Bool
$c/= :: DeleteVpcEndpointDetail -> DeleteVpcEndpointDetail -> Bool
== :: DeleteVpcEndpointDetail -> DeleteVpcEndpointDetail -> Bool
$c== :: DeleteVpcEndpointDetail -> DeleteVpcEndpointDetail -> Bool
Prelude.Eq, ReadPrec [DeleteVpcEndpointDetail]
ReadPrec DeleteVpcEndpointDetail
Int -> ReadS DeleteVpcEndpointDetail
ReadS [DeleteVpcEndpointDetail]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteVpcEndpointDetail]
$creadListPrec :: ReadPrec [DeleteVpcEndpointDetail]
readPrec :: ReadPrec DeleteVpcEndpointDetail
$creadPrec :: ReadPrec DeleteVpcEndpointDetail
readList :: ReadS [DeleteVpcEndpointDetail]
$creadList :: ReadS [DeleteVpcEndpointDetail]
readsPrec :: Int -> ReadS DeleteVpcEndpointDetail
$creadsPrec :: Int -> ReadS DeleteVpcEndpointDetail
Prelude.Read, Int -> DeleteVpcEndpointDetail -> ShowS
[DeleteVpcEndpointDetail] -> ShowS
DeleteVpcEndpointDetail -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteVpcEndpointDetail] -> ShowS
$cshowList :: [DeleteVpcEndpointDetail] -> ShowS
show :: DeleteVpcEndpointDetail -> String
$cshow :: DeleteVpcEndpointDetail -> String
showsPrec :: Int -> DeleteVpcEndpointDetail -> ShowS
$cshowsPrec :: Int -> DeleteVpcEndpointDetail -> ShowS
Prelude.Show, forall x. Rep DeleteVpcEndpointDetail x -> DeleteVpcEndpointDetail
forall x. DeleteVpcEndpointDetail -> Rep DeleteVpcEndpointDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteVpcEndpointDetail x -> DeleteVpcEndpointDetail
$cfrom :: forall x. DeleteVpcEndpointDetail -> Rep DeleteVpcEndpointDetail x
Prelude.Generic)
newDeleteVpcEndpointDetail ::
DeleteVpcEndpointDetail
newDeleteVpcEndpointDetail :: DeleteVpcEndpointDetail
newDeleteVpcEndpointDetail =
DeleteVpcEndpointDetail'
{ $sel:id:DeleteVpcEndpointDetail' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:name:DeleteVpcEndpointDetail' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:status:DeleteVpcEndpointDetail' :: Maybe VpcEndpointStatus
status = forall a. Maybe a
Prelude.Nothing
}
deleteVpcEndpointDetail_id :: Lens.Lens' DeleteVpcEndpointDetail (Prelude.Maybe Prelude.Text)
deleteVpcEndpointDetail_id :: Lens' DeleteVpcEndpointDetail (Maybe Text)
deleteVpcEndpointDetail_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVpcEndpointDetail' {Maybe Text
id :: Maybe Text
$sel:id:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
id} -> Maybe Text
id) (\s :: DeleteVpcEndpointDetail
s@DeleteVpcEndpointDetail' {} Maybe Text
a -> DeleteVpcEndpointDetail
s {$sel:id:DeleteVpcEndpointDetail' :: Maybe Text
id = Maybe Text
a} :: DeleteVpcEndpointDetail)
deleteVpcEndpointDetail_name :: Lens.Lens' DeleteVpcEndpointDetail (Prelude.Maybe Prelude.Text)
deleteVpcEndpointDetail_name :: Lens' DeleteVpcEndpointDetail (Maybe Text)
deleteVpcEndpointDetail_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVpcEndpointDetail' {Maybe Text
name :: Maybe Text
$sel:name:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
name} -> Maybe Text
name) (\s :: DeleteVpcEndpointDetail
s@DeleteVpcEndpointDetail' {} Maybe Text
a -> DeleteVpcEndpointDetail
s {$sel:name:DeleteVpcEndpointDetail' :: Maybe Text
name = Maybe Text
a} :: DeleteVpcEndpointDetail)
deleteVpcEndpointDetail_status :: Lens.Lens' DeleteVpcEndpointDetail (Prelude.Maybe VpcEndpointStatus)
deleteVpcEndpointDetail_status :: Lens' DeleteVpcEndpointDetail (Maybe VpcEndpointStatus)
deleteVpcEndpointDetail_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVpcEndpointDetail' {Maybe VpcEndpointStatus
status :: Maybe VpcEndpointStatus
$sel:status:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe VpcEndpointStatus
status} -> Maybe VpcEndpointStatus
status) (\s :: DeleteVpcEndpointDetail
s@DeleteVpcEndpointDetail' {} Maybe VpcEndpointStatus
a -> DeleteVpcEndpointDetail
s {$sel:status:DeleteVpcEndpointDetail' :: Maybe VpcEndpointStatus
status = Maybe VpcEndpointStatus
a} :: DeleteVpcEndpointDetail)
instance Data.FromJSON DeleteVpcEndpointDetail where
parseJSON :: Value -> Parser DeleteVpcEndpointDetail
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DeleteVpcEndpointDetail"
( \Object
x ->
Maybe Text
-> Maybe Text -> Maybe VpcEndpointStatus -> DeleteVpcEndpointDetail
DeleteVpcEndpointDetail'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
)
instance Prelude.Hashable DeleteVpcEndpointDetail where
hashWithSalt :: Int -> DeleteVpcEndpointDetail -> Int
hashWithSalt Int
_salt DeleteVpcEndpointDetail' {Maybe Text
Maybe VpcEndpointStatus
status :: Maybe VpcEndpointStatus
name :: Maybe Text
id :: Maybe Text
$sel:status:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe VpcEndpointStatus
$sel:name:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
$sel:id:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpcEndpointStatus
status
instance Prelude.NFData DeleteVpcEndpointDetail where
rnf :: DeleteVpcEndpointDetail -> ()
rnf DeleteVpcEndpointDetail' {Maybe Text
Maybe VpcEndpointStatus
status :: Maybe VpcEndpointStatus
name :: Maybe Text
id :: Maybe Text
$sel:status:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe VpcEndpointStatus
$sel:name:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
$sel:id:DeleteVpcEndpointDetail' :: DeleteVpcEndpointDetail -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcEndpointStatus
status