{-# 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.Translate.Types.ParallelDataDataLocation where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ParallelDataDataLocation = ParallelDataDataLocation'
{
ParallelDataDataLocation -> Text
repositoryType :: Prelude.Text,
ParallelDataDataLocation -> Text
location :: Prelude.Text
}
deriving (ParallelDataDataLocation -> ParallelDataDataLocation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ParallelDataDataLocation -> ParallelDataDataLocation -> Bool
$c/= :: ParallelDataDataLocation -> ParallelDataDataLocation -> Bool
== :: ParallelDataDataLocation -> ParallelDataDataLocation -> Bool
$c== :: ParallelDataDataLocation -> ParallelDataDataLocation -> Bool
Prelude.Eq, ReadPrec [ParallelDataDataLocation]
ReadPrec ParallelDataDataLocation
Int -> ReadS ParallelDataDataLocation
ReadS [ParallelDataDataLocation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ParallelDataDataLocation]
$creadListPrec :: ReadPrec [ParallelDataDataLocation]
readPrec :: ReadPrec ParallelDataDataLocation
$creadPrec :: ReadPrec ParallelDataDataLocation
readList :: ReadS [ParallelDataDataLocation]
$creadList :: ReadS [ParallelDataDataLocation]
readsPrec :: Int -> ReadS ParallelDataDataLocation
$creadsPrec :: Int -> ReadS ParallelDataDataLocation
Prelude.Read, Int -> ParallelDataDataLocation -> ShowS
[ParallelDataDataLocation] -> ShowS
ParallelDataDataLocation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ParallelDataDataLocation] -> ShowS
$cshowList :: [ParallelDataDataLocation] -> ShowS
show :: ParallelDataDataLocation -> String
$cshow :: ParallelDataDataLocation -> String
showsPrec :: Int -> ParallelDataDataLocation -> ShowS
$cshowsPrec :: Int -> ParallelDataDataLocation -> ShowS
Prelude.Show, forall x.
Rep ParallelDataDataLocation x -> ParallelDataDataLocation
forall x.
ParallelDataDataLocation -> Rep ParallelDataDataLocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ParallelDataDataLocation x -> ParallelDataDataLocation
$cfrom :: forall x.
ParallelDataDataLocation -> Rep ParallelDataDataLocation x
Prelude.Generic)
newParallelDataDataLocation ::
Prelude.Text ->
Prelude.Text ->
ParallelDataDataLocation
newParallelDataDataLocation :: Text -> Text -> ParallelDataDataLocation
newParallelDataDataLocation
Text
pRepositoryType_
Text
pLocation_ =
ParallelDataDataLocation'
{ $sel:repositoryType:ParallelDataDataLocation' :: Text
repositoryType =
Text
pRepositoryType_,
$sel:location:ParallelDataDataLocation' :: Text
location = Text
pLocation_
}
parallelDataDataLocation_repositoryType :: Lens.Lens' ParallelDataDataLocation Prelude.Text
parallelDataDataLocation_repositoryType :: Lens' ParallelDataDataLocation Text
parallelDataDataLocation_repositoryType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataDataLocation' {Text
repositoryType :: Text
$sel:repositoryType:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
repositoryType} -> Text
repositoryType) (\s :: ParallelDataDataLocation
s@ParallelDataDataLocation' {} Text
a -> ParallelDataDataLocation
s {$sel:repositoryType:ParallelDataDataLocation' :: Text
repositoryType = Text
a} :: ParallelDataDataLocation)
parallelDataDataLocation_location :: Lens.Lens' ParallelDataDataLocation Prelude.Text
parallelDataDataLocation_location :: Lens' ParallelDataDataLocation Text
parallelDataDataLocation_location = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataDataLocation' {Text
location :: Text
$sel:location:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
location} -> Text
location) (\s :: ParallelDataDataLocation
s@ParallelDataDataLocation' {} Text
a -> ParallelDataDataLocation
s {$sel:location:ParallelDataDataLocation' :: Text
location = Text
a} :: ParallelDataDataLocation)
instance Data.FromJSON ParallelDataDataLocation where
parseJSON :: Value -> Parser ParallelDataDataLocation
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ParallelDataDataLocation"
( \Object
x ->
Text -> Text -> ParallelDataDataLocation
ParallelDataDataLocation'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RepositoryType")
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
"Location")
)
instance Prelude.Hashable ParallelDataDataLocation where
hashWithSalt :: Int -> ParallelDataDataLocation -> Int
hashWithSalt Int
_salt ParallelDataDataLocation' {Text
location :: Text
repositoryType :: Text
$sel:location:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
$sel:repositoryType:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
repositoryType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
location
instance Prelude.NFData ParallelDataDataLocation where
rnf :: ParallelDataDataLocation -> ()
rnf ParallelDataDataLocation' {Text
location :: Text
repositoryType :: Text
$sel:location:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
$sel:repositoryType:ParallelDataDataLocation' :: ParallelDataDataLocation -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
repositoryType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
location