{-# 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.DeleteFileSystemWindowsResponse 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 DeleteFileSystemWindowsResponse = DeleteFileSystemWindowsResponse'
{
DeleteFileSystemWindowsResponse -> Maybe Text
finalBackupId :: Prelude.Maybe Prelude.Text,
DeleteFileSystemWindowsResponse -> Maybe (NonEmpty Tag)
finalBackupTags :: Prelude.Maybe (Prelude.NonEmpty Tag)
}
deriving (DeleteFileSystemWindowsResponse
-> DeleteFileSystemWindowsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFileSystemWindowsResponse
-> DeleteFileSystemWindowsResponse -> Bool
$c/= :: DeleteFileSystemWindowsResponse
-> DeleteFileSystemWindowsResponse -> Bool
== :: DeleteFileSystemWindowsResponse
-> DeleteFileSystemWindowsResponse -> Bool
$c== :: DeleteFileSystemWindowsResponse
-> DeleteFileSystemWindowsResponse -> Bool
Prelude.Eq, ReadPrec [DeleteFileSystemWindowsResponse]
ReadPrec DeleteFileSystemWindowsResponse
Int -> ReadS DeleteFileSystemWindowsResponse
ReadS [DeleteFileSystemWindowsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFileSystemWindowsResponse]
$creadListPrec :: ReadPrec [DeleteFileSystemWindowsResponse]
readPrec :: ReadPrec DeleteFileSystemWindowsResponse
$creadPrec :: ReadPrec DeleteFileSystemWindowsResponse
readList :: ReadS [DeleteFileSystemWindowsResponse]
$creadList :: ReadS [DeleteFileSystemWindowsResponse]
readsPrec :: Int -> ReadS DeleteFileSystemWindowsResponse
$creadsPrec :: Int -> ReadS DeleteFileSystemWindowsResponse
Prelude.Read, Int -> DeleteFileSystemWindowsResponse -> ShowS
[DeleteFileSystemWindowsResponse] -> ShowS
DeleteFileSystemWindowsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFileSystemWindowsResponse] -> ShowS
$cshowList :: [DeleteFileSystemWindowsResponse] -> ShowS
show :: DeleteFileSystemWindowsResponse -> String
$cshow :: DeleteFileSystemWindowsResponse -> String
showsPrec :: Int -> DeleteFileSystemWindowsResponse -> ShowS
$cshowsPrec :: Int -> DeleteFileSystemWindowsResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteFileSystemWindowsResponse x
-> DeleteFileSystemWindowsResponse
forall x.
DeleteFileSystemWindowsResponse
-> Rep DeleteFileSystemWindowsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteFileSystemWindowsResponse x
-> DeleteFileSystemWindowsResponse
$cfrom :: forall x.
DeleteFileSystemWindowsResponse
-> Rep DeleteFileSystemWindowsResponse x
Prelude.Generic)
newDeleteFileSystemWindowsResponse ::
DeleteFileSystemWindowsResponse
newDeleteFileSystemWindowsResponse :: DeleteFileSystemWindowsResponse
newDeleteFileSystemWindowsResponse =
DeleteFileSystemWindowsResponse'
{ $sel:finalBackupId:DeleteFileSystemWindowsResponse' :: Maybe Text
finalBackupId =
forall a. Maybe a
Prelude.Nothing,
$sel:finalBackupTags:DeleteFileSystemWindowsResponse' :: Maybe (NonEmpty Tag)
finalBackupTags = forall a. Maybe a
Prelude.Nothing
}
deleteFileSystemWindowsResponse_finalBackupId :: Lens.Lens' DeleteFileSystemWindowsResponse (Prelude.Maybe Prelude.Text)
deleteFileSystemWindowsResponse_finalBackupId :: Lens' DeleteFileSystemWindowsResponse (Maybe Text)
deleteFileSystemWindowsResponse_finalBackupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFileSystemWindowsResponse' {Maybe Text
finalBackupId :: Maybe Text
$sel:finalBackupId:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> Maybe Text
finalBackupId} -> Maybe Text
finalBackupId) (\s :: DeleteFileSystemWindowsResponse
s@DeleteFileSystemWindowsResponse' {} Maybe Text
a -> DeleteFileSystemWindowsResponse
s {$sel:finalBackupId:DeleteFileSystemWindowsResponse' :: Maybe Text
finalBackupId = Maybe Text
a} :: DeleteFileSystemWindowsResponse)
deleteFileSystemWindowsResponse_finalBackupTags :: Lens.Lens' DeleteFileSystemWindowsResponse (Prelude.Maybe (Prelude.NonEmpty Tag))
deleteFileSystemWindowsResponse_finalBackupTags :: Lens' DeleteFileSystemWindowsResponse (Maybe (NonEmpty Tag))
deleteFileSystemWindowsResponse_finalBackupTags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFileSystemWindowsResponse' {Maybe (NonEmpty Tag)
finalBackupTags :: Maybe (NonEmpty Tag)
$sel:finalBackupTags:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> Maybe (NonEmpty Tag)
finalBackupTags} -> Maybe (NonEmpty Tag)
finalBackupTags) (\s :: DeleteFileSystemWindowsResponse
s@DeleteFileSystemWindowsResponse' {} Maybe (NonEmpty Tag)
a -> DeleteFileSystemWindowsResponse
s {$sel:finalBackupTags:DeleteFileSystemWindowsResponse' :: Maybe (NonEmpty Tag)
finalBackupTags = Maybe (NonEmpty Tag)
a} :: DeleteFileSystemWindowsResponse) 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
DeleteFileSystemWindowsResponse
where
parseJSON :: Value -> Parser DeleteFileSystemWindowsResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DeleteFileSystemWindowsResponse"
( \Object
x ->
Maybe Text
-> Maybe (NonEmpty Tag) -> DeleteFileSystemWindowsResponse
DeleteFileSystemWindowsResponse'
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
DeleteFileSystemWindowsResponse
where
hashWithSalt :: Int -> DeleteFileSystemWindowsResponse -> Int
hashWithSalt
Int
_salt
DeleteFileSystemWindowsResponse' {Maybe (NonEmpty Tag)
Maybe Text
finalBackupTags :: Maybe (NonEmpty Tag)
finalBackupId :: Maybe Text
$sel:finalBackupTags:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> Maybe (NonEmpty Tag)
$sel:finalBackupId:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> 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
DeleteFileSystemWindowsResponse
where
rnf :: DeleteFileSystemWindowsResponse -> ()
rnf DeleteFileSystemWindowsResponse' {Maybe (NonEmpty Tag)
Maybe Text
finalBackupTags :: Maybe (NonEmpty Tag)
finalBackupId :: Maybe Text
$sel:finalBackupTags:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> Maybe (NonEmpty Tag)
$sel:finalBackupId:DeleteFileSystemWindowsResponse' :: DeleteFileSystemWindowsResponse -> 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