{-# 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.FSx.Types.DeleteFileSystemLustreResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.Tag
import qualified Amazonka.Prelude as Prelude
data DeleteFileSystemLustreResponse = DeleteFileSystemLustreResponse'
{
DeleteFileSystemLustreResponse -> Maybe Text
finalBackupId :: Prelude.Maybe Prelude.Text,
DeleteFileSystemLustreResponse -> Maybe (NonEmpty Tag)
finalBackupTags :: Prelude.Maybe (Prelude.NonEmpty Tag)
}
deriving (DeleteFileSystemLustreResponse
-> DeleteFileSystemLustreResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFileSystemLustreResponse
-> DeleteFileSystemLustreResponse -> Bool
$c/= :: DeleteFileSystemLustreResponse
-> DeleteFileSystemLustreResponse -> Bool
== :: DeleteFileSystemLustreResponse
-> DeleteFileSystemLustreResponse -> Bool
$c== :: DeleteFileSystemLustreResponse
-> DeleteFileSystemLustreResponse -> Bool
Prelude.Eq, ReadPrec [DeleteFileSystemLustreResponse]
ReadPrec DeleteFileSystemLustreResponse
Int -> ReadS DeleteFileSystemLustreResponse
ReadS [DeleteFileSystemLustreResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFileSystemLustreResponse]
$creadListPrec :: ReadPrec [DeleteFileSystemLustreResponse]
readPrec :: ReadPrec DeleteFileSystemLustreResponse
$creadPrec :: ReadPrec DeleteFileSystemLustreResponse
readList :: ReadS [DeleteFileSystemLustreResponse]
$creadList :: ReadS [DeleteFileSystemLustreResponse]
readsPrec :: Int -> ReadS DeleteFileSystemLustreResponse
$creadsPrec :: Int -> ReadS DeleteFileSystemLustreResponse
Prelude.Read, Int -> DeleteFileSystemLustreResponse -> ShowS
[DeleteFileSystemLustreResponse] -> ShowS
DeleteFileSystemLustreResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFileSystemLustreResponse] -> ShowS
$cshowList :: [DeleteFileSystemLustreResponse] -> ShowS
show :: DeleteFileSystemLustreResponse -> String
$cshow :: DeleteFileSystemLustreResponse -> String
showsPrec :: Int -> DeleteFileSystemLustreResponse -> ShowS
$cshowsPrec :: Int -> DeleteFileSystemLustreResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteFileSystemLustreResponse x
-> DeleteFileSystemLustreResponse
forall x.
DeleteFileSystemLustreResponse
-> Rep DeleteFileSystemLustreResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteFileSystemLustreResponse x
-> DeleteFileSystemLustreResponse
$cfrom :: forall x.
DeleteFileSystemLustreResponse
-> Rep DeleteFileSystemLustreResponse x
Prelude.Generic)
newDeleteFileSystemLustreResponse ::
DeleteFileSystemLustreResponse
newDeleteFileSystemLustreResponse :: DeleteFileSystemLustreResponse
newDeleteFileSystemLustreResponse =
DeleteFileSystemLustreResponse'
{ $sel:finalBackupId:DeleteFileSystemLustreResponse' :: Maybe Text
finalBackupId =
forall a. Maybe a
Prelude.Nothing,
$sel:finalBackupTags:DeleteFileSystemLustreResponse' :: Maybe (NonEmpty Tag)
finalBackupTags = forall a. Maybe a
Prelude.Nothing
}
deleteFileSystemLustreResponse_finalBackupId :: Lens.Lens' DeleteFileSystemLustreResponse (Prelude.Maybe Prelude.Text)
deleteFileSystemLustreResponse_finalBackupId :: Lens' DeleteFileSystemLustreResponse (Maybe Text)
deleteFileSystemLustreResponse_finalBackupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFileSystemLustreResponse' {Maybe Text
finalBackupId :: Maybe Text
$sel:finalBackupId:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe Text
finalBackupId} -> Maybe Text
finalBackupId) (\s :: DeleteFileSystemLustreResponse
s@DeleteFileSystemLustreResponse' {} Maybe Text
a -> DeleteFileSystemLustreResponse
s {$sel:finalBackupId:DeleteFileSystemLustreResponse' :: Maybe Text
finalBackupId = Maybe Text
a} :: DeleteFileSystemLustreResponse)
deleteFileSystemLustreResponse_finalBackupTags :: Lens.Lens' DeleteFileSystemLustreResponse (Prelude.Maybe (Prelude.NonEmpty Tag))
deleteFileSystemLustreResponse_finalBackupTags :: Lens' DeleteFileSystemLustreResponse (Maybe (NonEmpty Tag))
deleteFileSystemLustreResponse_finalBackupTags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFileSystemLustreResponse' {Maybe (NonEmpty Tag)
finalBackupTags :: Maybe (NonEmpty Tag)
$sel:finalBackupTags:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe (NonEmpty Tag)
finalBackupTags} -> Maybe (NonEmpty Tag)
finalBackupTags) (\s :: DeleteFileSystemLustreResponse
s@DeleteFileSystemLustreResponse' {} Maybe (NonEmpty Tag)
a -> DeleteFileSystemLustreResponse
s {$sel:finalBackupTags:DeleteFileSystemLustreResponse' :: Maybe (NonEmpty Tag)
finalBackupTags = Maybe (NonEmpty Tag)
a} :: DeleteFileSystemLustreResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON DeleteFileSystemLustreResponse where
parseJSON :: Value -> Parser DeleteFileSystemLustreResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DeleteFileSystemLustreResponse"
( \Object
x ->
Maybe Text
-> Maybe (NonEmpty Tag) -> DeleteFileSystemLustreResponse
DeleteFileSystemLustreResponse'
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
"FinalBackupId")
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
"FinalBackupTags")
)
instance
Prelude.Hashable
DeleteFileSystemLustreResponse
where
hashWithSalt :: Int -> DeleteFileSystemLustreResponse -> Int
hashWithSalt
Int
_salt
DeleteFileSystemLustreResponse' {Maybe (NonEmpty Tag)
Maybe Text
finalBackupTags :: Maybe (NonEmpty Tag)
finalBackupId :: Maybe Text
$sel:finalBackupTags:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe (NonEmpty Tag)
$sel:finalBackupId:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
finalBackupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
finalBackupTags
instance
Prelude.NFData
DeleteFileSystemLustreResponse
where
rnf :: DeleteFileSystemLustreResponse -> ()
rnf DeleteFileSystemLustreResponse' {Maybe (NonEmpty Tag)
Maybe Text
finalBackupTags :: Maybe (NonEmpty Tag)
finalBackupId :: Maybe Text
$sel:finalBackupTags:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe (NonEmpty Tag)
$sel:finalBackupId:DeleteFileSystemLustreResponse' :: DeleteFileSystemLustreResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
finalBackupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
finalBackupTags