{-# 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.EFS.Types.MountTargetDescription where
import qualified Amazonka.Core as Core
import Amazonka.EFS.Types.LifeCycleState
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data MountTargetDescription = MountTargetDescription'
{
MountTargetDescription -> Maybe Text
ipAddress :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
availabilityZoneId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
availabilityZoneName :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Text
mountTargetId :: Prelude.Text,
MountTargetDescription -> Text
fileSystemId :: Prelude.Text,
MountTargetDescription -> Text
subnetId :: Prelude.Text,
MountTargetDescription -> LifeCycleState
lifeCycleState :: LifeCycleState
}
deriving (MountTargetDescription -> MountTargetDescription -> Bool
(MountTargetDescription -> MountTargetDescription -> Bool)
-> (MountTargetDescription -> MountTargetDescription -> Bool)
-> Eq MountTargetDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MountTargetDescription -> MountTargetDescription -> Bool
$c/= :: MountTargetDescription -> MountTargetDescription -> Bool
== :: MountTargetDescription -> MountTargetDescription -> Bool
$c== :: MountTargetDescription -> MountTargetDescription -> Bool
Prelude.Eq, ReadPrec [MountTargetDescription]
ReadPrec MountTargetDescription
Int -> ReadS MountTargetDescription
ReadS [MountTargetDescription]
(Int -> ReadS MountTargetDescription)
-> ReadS [MountTargetDescription]
-> ReadPrec MountTargetDescription
-> ReadPrec [MountTargetDescription]
-> Read MountTargetDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MountTargetDescription]
$creadListPrec :: ReadPrec [MountTargetDescription]
readPrec :: ReadPrec MountTargetDescription
$creadPrec :: ReadPrec MountTargetDescription
readList :: ReadS [MountTargetDescription]
$creadList :: ReadS [MountTargetDescription]
readsPrec :: Int -> ReadS MountTargetDescription
$creadsPrec :: Int -> ReadS MountTargetDescription
Prelude.Read, Int -> MountTargetDescription -> ShowS
[MountTargetDescription] -> ShowS
MountTargetDescription -> String
(Int -> MountTargetDescription -> ShowS)
-> (MountTargetDescription -> String)
-> ([MountTargetDescription] -> ShowS)
-> Show MountTargetDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MountTargetDescription] -> ShowS
$cshowList :: [MountTargetDescription] -> ShowS
show :: MountTargetDescription -> String
$cshow :: MountTargetDescription -> String
showsPrec :: Int -> MountTargetDescription -> ShowS
$cshowsPrec :: Int -> MountTargetDescription -> ShowS
Prelude.Show, (forall x. MountTargetDescription -> Rep MountTargetDescription x)
-> (forall x.
Rep MountTargetDescription x -> MountTargetDescription)
-> Generic MountTargetDescription
forall x. Rep MountTargetDescription x -> MountTargetDescription
forall x. MountTargetDescription -> Rep MountTargetDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MountTargetDescription x -> MountTargetDescription
$cfrom :: forall x. MountTargetDescription -> Rep MountTargetDescription x
Prelude.Generic)
newMountTargetDescription ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
LifeCycleState ->
MountTargetDescription
newMountTargetDescription :: Text -> Text -> Text -> LifeCycleState -> MountTargetDescription
newMountTargetDescription
Text
pMountTargetId_
Text
pFileSystemId_
Text
pSubnetId_
LifeCycleState
pLifeCycleState_ =
MountTargetDescription' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription
MountTargetDescription'
{ $sel:ipAddress:MountTargetDescription' :: Maybe Text
ipAddress =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZoneId:MountTargetDescription' :: Maybe Text
availabilityZoneId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:MountTargetDescription' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZoneName:MountTargetDescription' :: Maybe Text
availabilityZoneName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceId:MountTargetDescription' :: Maybe Text
networkInterfaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ownerId:MountTargetDescription' :: Maybe Text
ownerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mountTargetId:MountTargetDescription' :: Text
mountTargetId = Text
pMountTargetId_,
$sel:fileSystemId:MountTargetDescription' :: Text
fileSystemId = Text
pFileSystemId_,
$sel:subnetId:MountTargetDescription' :: Text
subnetId = Text
pSubnetId_,
$sel:lifeCycleState:MountTargetDescription' :: LifeCycleState
lifeCycleState = LifeCycleState
pLifeCycleState_
}
mountTargetDescription_ipAddress :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_ipAddress :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_ipAddress = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
ipAddress :: Maybe Text
$sel:ipAddress:MountTargetDescription' :: MountTargetDescription -> Maybe Text
ipAddress} -> Maybe Text
ipAddress) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:ipAddress:MountTargetDescription' :: Maybe Text
ipAddress = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_availabilityZoneId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_availabilityZoneId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
availabilityZoneId :: Maybe Text
$sel:availabilityZoneId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
availabilityZoneId} -> Maybe Text
availabilityZoneId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:availabilityZoneId:MountTargetDescription' :: Maybe Text
availabilityZoneId = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_vpcId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_vpcId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_vpcId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:vpcId:MountTargetDescription' :: Maybe Text
vpcId = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_availabilityZoneName :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneName :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_availabilityZoneName = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
availabilityZoneName :: Maybe Text
$sel:availabilityZoneName:MountTargetDescription' :: MountTargetDescription -> Maybe Text
availabilityZoneName} -> Maybe Text
availabilityZoneName) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:availabilityZoneName:MountTargetDescription' :: Maybe Text
availabilityZoneName = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_networkInterfaceId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_networkInterfaceId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_networkInterfaceId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:networkInterfaceId:MountTargetDescription' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_ownerId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_ownerId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_ownerId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:ownerId:MountTargetDescription' :: Maybe Text
ownerId = Maybe Text
a} :: MountTargetDescription)
mountTargetDescription_mountTargetId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_mountTargetId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_mountTargetId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
mountTargetId :: Text
$sel:mountTargetId:MountTargetDescription' :: MountTargetDescription -> Text
mountTargetId} -> Text
mountTargetId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:mountTargetId:MountTargetDescription' :: Text
mountTargetId = Text
a} :: MountTargetDescription)
mountTargetDescription_fileSystemId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_fileSystemId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_fileSystemId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
fileSystemId :: Text
$sel:fileSystemId:MountTargetDescription' :: MountTargetDescription -> Text
fileSystemId} -> Text
fileSystemId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:fileSystemId:MountTargetDescription' :: Text
fileSystemId = Text
a} :: MountTargetDescription)
mountTargetDescription_subnetId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_subnetId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_subnetId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
subnetId :: Text
$sel:subnetId:MountTargetDescription' :: MountTargetDescription -> Text
subnetId} -> Text
subnetId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:subnetId:MountTargetDescription' :: Text
subnetId = Text
a} :: MountTargetDescription)
mountTargetDescription_lifeCycleState :: Lens.Lens' MountTargetDescription LifeCycleState
mountTargetDescription_lifeCycleState :: (LifeCycleState -> f LifeCycleState)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_lifeCycleState = (MountTargetDescription -> LifeCycleState)
-> (MountTargetDescription
-> LifeCycleState -> MountTargetDescription)
-> Lens
MountTargetDescription
MountTargetDescription
LifeCycleState
LifeCycleState
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {LifeCycleState
lifeCycleState :: LifeCycleState
$sel:lifeCycleState:MountTargetDescription' :: MountTargetDescription -> LifeCycleState
lifeCycleState} -> LifeCycleState
lifeCycleState) (\s :: MountTargetDescription
s@MountTargetDescription' {} LifeCycleState
a -> MountTargetDescription
s {$sel:lifeCycleState:MountTargetDescription' :: LifeCycleState
lifeCycleState = LifeCycleState
a} :: MountTargetDescription)
instance Core.FromJSON MountTargetDescription where
parseJSON :: Value -> Parser MountTargetDescription
parseJSON =
String
-> (Object -> Parser MountTargetDescription)
-> Value
-> Parser MountTargetDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MountTargetDescription"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription
MountTargetDescription'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
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
"IpAddress")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => 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
"AvailabilityZoneId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => 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
"VpcId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => 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
"AvailabilityZoneName")
Parser
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => 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
"NetworkInterfaceId")
Parser
(Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
(Text -> Text -> Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => 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
"OwnerId")
Parser
(Text -> Text -> Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text
-> Parser
(Text -> Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"MountTargetId")
Parser (Text -> Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text
-> Parser (Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"FileSystemId")
Parser (Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text -> Parser (LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"SubnetId")
Parser (LifeCycleState -> MountTargetDescription)
-> Parser LifeCycleState -> Parser MountTargetDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser LifeCycleState
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"LifeCycleState")
)
instance Prelude.Hashable MountTargetDescription
instance Prelude.NFData MountTargetDescription