{-# 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.StorageGateway.Types.FileSystemAssociationStatusDetail where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data FileSystemAssociationStatusDetail = FileSystemAssociationStatusDetail'
{
FileSystemAssociationStatusDetail -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text
}
deriving (FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool
(FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool)
-> (FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool)
-> Eq FileSystemAssociationStatusDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool
$c/= :: FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool
== :: FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool
$c== :: FileSystemAssociationStatusDetail
-> FileSystemAssociationStatusDetail -> Bool
Prelude.Eq, ReadPrec [FileSystemAssociationStatusDetail]
ReadPrec FileSystemAssociationStatusDetail
Int -> ReadS FileSystemAssociationStatusDetail
ReadS [FileSystemAssociationStatusDetail]
(Int -> ReadS FileSystemAssociationStatusDetail)
-> ReadS [FileSystemAssociationStatusDetail]
-> ReadPrec FileSystemAssociationStatusDetail
-> ReadPrec [FileSystemAssociationStatusDetail]
-> Read FileSystemAssociationStatusDetail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileSystemAssociationStatusDetail]
$creadListPrec :: ReadPrec [FileSystemAssociationStatusDetail]
readPrec :: ReadPrec FileSystemAssociationStatusDetail
$creadPrec :: ReadPrec FileSystemAssociationStatusDetail
readList :: ReadS [FileSystemAssociationStatusDetail]
$creadList :: ReadS [FileSystemAssociationStatusDetail]
readsPrec :: Int -> ReadS FileSystemAssociationStatusDetail
$creadsPrec :: Int -> ReadS FileSystemAssociationStatusDetail
Prelude.Read, Int -> FileSystemAssociationStatusDetail -> ShowS
[FileSystemAssociationStatusDetail] -> ShowS
FileSystemAssociationStatusDetail -> String
(Int -> FileSystemAssociationStatusDetail -> ShowS)
-> (FileSystemAssociationStatusDetail -> String)
-> ([FileSystemAssociationStatusDetail] -> ShowS)
-> Show FileSystemAssociationStatusDetail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileSystemAssociationStatusDetail] -> ShowS
$cshowList :: [FileSystemAssociationStatusDetail] -> ShowS
show :: FileSystemAssociationStatusDetail -> String
$cshow :: FileSystemAssociationStatusDetail -> String
showsPrec :: Int -> FileSystemAssociationStatusDetail -> ShowS
$cshowsPrec :: Int -> FileSystemAssociationStatusDetail -> ShowS
Prelude.Show, (forall x.
FileSystemAssociationStatusDetail
-> Rep FileSystemAssociationStatusDetail x)
-> (forall x.
Rep FileSystemAssociationStatusDetail x
-> FileSystemAssociationStatusDetail)
-> Generic FileSystemAssociationStatusDetail
forall x.
Rep FileSystemAssociationStatusDetail x
-> FileSystemAssociationStatusDetail
forall x.
FileSystemAssociationStatusDetail
-> Rep FileSystemAssociationStatusDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FileSystemAssociationStatusDetail x
-> FileSystemAssociationStatusDetail
$cfrom :: forall x.
FileSystemAssociationStatusDetail
-> Rep FileSystemAssociationStatusDetail x
Prelude.Generic)
newFileSystemAssociationStatusDetail ::
FileSystemAssociationStatusDetail
newFileSystemAssociationStatusDetail :: FileSystemAssociationStatusDetail
newFileSystemAssociationStatusDetail =
FileSystemAssociationStatusDetail' :: Maybe Text -> FileSystemAssociationStatusDetail
FileSystemAssociationStatusDetail'
{ $sel:errorCode:FileSystemAssociationStatusDetail' :: Maybe Text
errorCode =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
fileSystemAssociationStatusDetail_errorCode :: Lens.Lens' FileSystemAssociationStatusDetail (Prelude.Maybe Prelude.Text)
fileSystemAssociationStatusDetail_errorCode :: (Maybe Text -> f (Maybe Text))
-> FileSystemAssociationStatusDetail
-> f FileSystemAssociationStatusDetail
fileSystemAssociationStatusDetail_errorCode = (FileSystemAssociationStatusDetail -> Maybe Text)
-> (FileSystemAssociationStatusDetail
-> Maybe Text -> FileSystemAssociationStatusDetail)
-> Lens
FileSystemAssociationStatusDetail
FileSystemAssociationStatusDetail
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationStatusDetail' {Maybe Text
errorCode :: Maybe Text
$sel:errorCode:FileSystemAssociationStatusDetail' :: FileSystemAssociationStatusDetail -> Maybe Text
errorCode} -> Maybe Text
errorCode) (\s :: FileSystemAssociationStatusDetail
s@FileSystemAssociationStatusDetail' {} Maybe Text
a -> FileSystemAssociationStatusDetail
s {$sel:errorCode:FileSystemAssociationStatusDetail' :: Maybe Text
errorCode = Maybe Text
a} :: FileSystemAssociationStatusDetail)
instance
Core.FromJSON
FileSystemAssociationStatusDetail
where
parseJSON :: Value -> Parser FileSystemAssociationStatusDetail
parseJSON =
String
-> (Object -> Parser FileSystemAssociationStatusDetail)
-> Value
-> Parser FileSystemAssociationStatusDetail
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"FileSystemAssociationStatusDetail"
( \Object
x ->
Maybe Text -> FileSystemAssociationStatusDetail
FileSystemAssociationStatusDetail'
(Maybe Text -> FileSystemAssociationStatusDetail)
-> Parser (Maybe Text) -> Parser FileSystemAssociationStatusDetail
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ErrorCode")
)
instance
Prelude.Hashable
FileSystemAssociationStatusDetail
instance
Prelude.NFData
FileSystemAssociationStatusDetail