{-# 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.Panorama.Types.OutPutS3Location 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 OutPutS3Location = OutPutS3Location'
{
OutPutS3Location -> Text
bucketName :: Prelude.Text,
OutPutS3Location -> Text
objectKey :: Prelude.Text
}
deriving (OutPutS3Location -> OutPutS3Location -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OutPutS3Location -> OutPutS3Location -> Bool
$c/= :: OutPutS3Location -> OutPutS3Location -> Bool
== :: OutPutS3Location -> OutPutS3Location -> Bool
$c== :: OutPutS3Location -> OutPutS3Location -> Bool
Prelude.Eq, ReadPrec [OutPutS3Location]
ReadPrec OutPutS3Location
Int -> ReadS OutPutS3Location
ReadS [OutPutS3Location]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OutPutS3Location]
$creadListPrec :: ReadPrec [OutPutS3Location]
readPrec :: ReadPrec OutPutS3Location
$creadPrec :: ReadPrec OutPutS3Location
readList :: ReadS [OutPutS3Location]
$creadList :: ReadS [OutPutS3Location]
readsPrec :: Int -> ReadS OutPutS3Location
$creadsPrec :: Int -> ReadS OutPutS3Location
Prelude.Read, Int -> OutPutS3Location -> ShowS
[OutPutS3Location] -> ShowS
OutPutS3Location -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OutPutS3Location] -> ShowS
$cshowList :: [OutPutS3Location] -> ShowS
show :: OutPutS3Location -> String
$cshow :: OutPutS3Location -> String
showsPrec :: Int -> OutPutS3Location -> ShowS
$cshowsPrec :: Int -> OutPutS3Location -> ShowS
Prelude.Show, forall x. Rep OutPutS3Location x -> OutPutS3Location
forall x. OutPutS3Location -> Rep OutPutS3Location x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OutPutS3Location x -> OutPutS3Location
$cfrom :: forall x. OutPutS3Location -> Rep OutPutS3Location x
Prelude.Generic)
newOutPutS3Location ::
Prelude.Text ->
Prelude.Text ->
OutPutS3Location
newOutPutS3Location :: Text -> Text -> OutPutS3Location
newOutPutS3Location Text
pBucketName_ Text
pObjectKey_ =
OutPutS3Location'
{ $sel:bucketName:OutPutS3Location' :: Text
bucketName = Text
pBucketName_,
$sel:objectKey:OutPutS3Location' :: Text
objectKey = Text
pObjectKey_
}
outPutS3Location_bucketName :: Lens.Lens' OutPutS3Location Prelude.Text
outPutS3Location_bucketName :: Lens' OutPutS3Location Text
outPutS3Location_bucketName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OutPutS3Location' {Text
bucketName :: Text
$sel:bucketName:OutPutS3Location' :: OutPutS3Location -> Text
bucketName} -> Text
bucketName) (\s :: OutPutS3Location
s@OutPutS3Location' {} Text
a -> OutPutS3Location
s {$sel:bucketName:OutPutS3Location' :: Text
bucketName = Text
a} :: OutPutS3Location)
outPutS3Location_objectKey :: Lens.Lens' OutPutS3Location Prelude.Text
outPutS3Location_objectKey :: Lens' OutPutS3Location Text
outPutS3Location_objectKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OutPutS3Location' {Text
objectKey :: Text
$sel:objectKey:OutPutS3Location' :: OutPutS3Location -> Text
objectKey} -> Text
objectKey) (\s :: OutPutS3Location
s@OutPutS3Location' {} Text
a -> OutPutS3Location
s {$sel:objectKey:OutPutS3Location' :: Text
objectKey = Text
a} :: OutPutS3Location)
instance Data.FromJSON OutPutS3Location where
parseJSON :: Value -> Parser OutPutS3Location
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"OutPutS3Location"
( \Object
x ->
Text -> Text -> OutPutS3Location
OutPutS3Location'
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
"BucketName")
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
"ObjectKey")
)
instance Prelude.Hashable OutPutS3Location where
hashWithSalt :: Int -> OutPutS3Location -> Int
hashWithSalt Int
_salt OutPutS3Location' {Text
objectKey :: Text
bucketName :: Text
$sel:objectKey:OutPutS3Location' :: OutPutS3Location -> Text
$sel:bucketName:OutPutS3Location' :: OutPutS3Location -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
bucketName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
objectKey
instance Prelude.NFData OutPutS3Location where
rnf :: OutPutS3Location -> ()
rnf OutPutS3Location' {Text
objectKey :: Text
bucketName :: Text
$sel:objectKey:OutPutS3Location' :: OutPutS3Location -> Text
$sel:bucketName:OutPutS3Location' :: OutPutS3Location -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
bucketName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
objectKey