{-# 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 qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EFS.Types.LifeCycleState
import qualified Amazonka.Prelude as Prelude
data MountTargetDescription = MountTargetDescription'
{
MountTargetDescription -> Maybe Text
availabilityZoneId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
availabilityZoneName :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
ipAddress :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
MountTargetDescription -> Maybe Text
vpcId :: 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
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]
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
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. 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'
{ $sel:availabilityZoneId:MountTargetDescription' :: Maybe Text
availabilityZoneId =
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZoneName:MountTargetDescription' :: Maybe Text
availabilityZoneName = forall a. Maybe a
Prelude.Nothing,
$sel:ipAddress:MountTargetDescription' :: Maybe Text
ipAddress = forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceId:MountTargetDescription' :: Maybe Text
networkInterfaceId = forall a. Maybe a
Prelude.Nothing,
$sel:ownerId:MountTargetDescription' :: Maybe Text
ownerId = forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:MountTargetDescription' :: Maybe Text
vpcId = 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_availabilityZoneId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneId :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_availabilityZoneId = 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_availabilityZoneName :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneName :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_availabilityZoneName = 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_ipAddress :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_ipAddress :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_ipAddress = 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_networkInterfaceId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_networkInterfaceId :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_networkInterfaceId = 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 :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_ownerId = 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_vpcId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_vpcId :: Lens' MountTargetDescription (Maybe Text)
mountTargetDescription_vpcId = 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_mountTargetId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_mountTargetId :: Lens' MountTargetDescription Text
mountTargetDescription_mountTargetId = 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 :: Lens' MountTargetDescription Text
mountTargetDescription_fileSystemId = 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 :: Lens' MountTargetDescription Text
mountTargetDescription_subnetId = 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 :: Lens' MountTargetDescription LifeCycleState
mountTargetDescription_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 Data.FromJSON MountTargetDescription where
parseJSON :: Value -> Parser MountTargetDescription
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MountTargetDescription"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription
MountTargetDescription'
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
"AvailabilityZoneId")
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
"AvailabilityZoneName")
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
"IpAddress")
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
"NetworkInterfaceId")
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
"OwnerId")
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
"VpcId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"MountTargetId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"FileSystemId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"SubnetId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LifeCycleState")
)
instance Prelude.Hashable MountTargetDescription where
hashWithSalt :: Int -> MountTargetDescription -> Int
hashWithSalt Int
_salt MountTargetDescription' {Maybe Text
Text
LifeCycleState
lifeCycleState :: LifeCycleState
subnetId :: Text
fileSystemId :: Text
mountTargetId :: Text
vpcId :: Maybe Text
ownerId :: Maybe Text
networkInterfaceId :: Maybe Text
ipAddress :: Maybe Text
availabilityZoneName :: Maybe Text
availabilityZoneId :: Maybe Text
$sel:lifeCycleState:MountTargetDescription' :: MountTargetDescription -> LifeCycleState
$sel:subnetId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:fileSystemId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:mountTargetId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:vpcId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:ownerId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:networkInterfaceId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:ipAddress:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:availabilityZoneName:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:availabilityZoneId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
availabilityZoneId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
availabilityZoneName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ipAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkInterfaceId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
mountTargetId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
fileSystemId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
subnetId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` LifeCycleState
lifeCycleState
instance Prelude.NFData MountTargetDescription where
rnf :: MountTargetDescription -> ()
rnf MountTargetDescription' {Maybe Text
Text
LifeCycleState
lifeCycleState :: LifeCycleState
subnetId :: Text
fileSystemId :: Text
mountTargetId :: Text
vpcId :: Maybe Text
ownerId :: Maybe Text
networkInterfaceId :: Maybe Text
ipAddress :: Maybe Text
availabilityZoneName :: Maybe Text
availabilityZoneId :: Maybe Text
$sel:lifeCycleState:MountTargetDescription' :: MountTargetDescription -> LifeCycleState
$sel:subnetId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:fileSystemId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:mountTargetId:MountTargetDescription' :: MountTargetDescription -> Text
$sel:vpcId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:ownerId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:networkInterfaceId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:ipAddress:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:availabilityZoneName:MountTargetDescription' :: MountTargetDescription -> Maybe Text
$sel:availabilityZoneId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
availabilityZoneId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
availabilityZoneName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ipAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkInterfaceId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
mountTargetId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
fileSystemId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
subnetId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf LifeCycleState
lifeCycleState