{-# 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.IoTAnalytics.Types.CustomerManagedDatastoreS3StorageSummary 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 CustomerManagedDatastoreS3StorageSummary = CustomerManagedDatastoreS3StorageSummary'
{
CustomerManagedDatastoreS3StorageSummary -> Maybe Text
bucket :: Prelude.Maybe Prelude.Text,
CustomerManagedDatastoreS3StorageSummary -> Maybe Text
keyPrefix :: Prelude.Maybe Prelude.Text,
CustomerManagedDatastoreS3StorageSummary -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
}
deriving (CustomerManagedDatastoreS3StorageSummary
-> CustomerManagedDatastoreS3StorageSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CustomerManagedDatastoreS3StorageSummary
-> CustomerManagedDatastoreS3StorageSummary -> Bool
$c/= :: CustomerManagedDatastoreS3StorageSummary
-> CustomerManagedDatastoreS3StorageSummary -> Bool
== :: CustomerManagedDatastoreS3StorageSummary
-> CustomerManagedDatastoreS3StorageSummary -> Bool
$c== :: CustomerManagedDatastoreS3StorageSummary
-> CustomerManagedDatastoreS3StorageSummary -> Bool
Prelude.Eq, ReadPrec [CustomerManagedDatastoreS3StorageSummary]
ReadPrec CustomerManagedDatastoreS3StorageSummary
Int -> ReadS CustomerManagedDatastoreS3StorageSummary
ReadS [CustomerManagedDatastoreS3StorageSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CustomerManagedDatastoreS3StorageSummary]
$creadListPrec :: ReadPrec [CustomerManagedDatastoreS3StorageSummary]
readPrec :: ReadPrec CustomerManagedDatastoreS3StorageSummary
$creadPrec :: ReadPrec CustomerManagedDatastoreS3StorageSummary
readList :: ReadS [CustomerManagedDatastoreS3StorageSummary]
$creadList :: ReadS [CustomerManagedDatastoreS3StorageSummary]
readsPrec :: Int -> ReadS CustomerManagedDatastoreS3StorageSummary
$creadsPrec :: Int -> ReadS CustomerManagedDatastoreS3StorageSummary
Prelude.Read, Int -> CustomerManagedDatastoreS3StorageSummary -> ShowS
[CustomerManagedDatastoreS3StorageSummary] -> ShowS
CustomerManagedDatastoreS3StorageSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CustomerManagedDatastoreS3StorageSummary] -> ShowS
$cshowList :: [CustomerManagedDatastoreS3StorageSummary] -> ShowS
show :: CustomerManagedDatastoreS3StorageSummary -> String
$cshow :: CustomerManagedDatastoreS3StorageSummary -> String
showsPrec :: Int -> CustomerManagedDatastoreS3StorageSummary -> ShowS
$cshowsPrec :: Int -> CustomerManagedDatastoreS3StorageSummary -> ShowS
Prelude.Show, forall x.
Rep CustomerManagedDatastoreS3StorageSummary x
-> CustomerManagedDatastoreS3StorageSummary
forall x.
CustomerManagedDatastoreS3StorageSummary
-> Rep CustomerManagedDatastoreS3StorageSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CustomerManagedDatastoreS3StorageSummary x
-> CustomerManagedDatastoreS3StorageSummary
$cfrom :: forall x.
CustomerManagedDatastoreS3StorageSummary
-> Rep CustomerManagedDatastoreS3StorageSummary x
Prelude.Generic)
newCustomerManagedDatastoreS3StorageSummary ::
CustomerManagedDatastoreS3StorageSummary
newCustomerManagedDatastoreS3StorageSummary :: CustomerManagedDatastoreS3StorageSummary
newCustomerManagedDatastoreS3StorageSummary =
CustomerManagedDatastoreS3StorageSummary'
{ $sel:bucket:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
bucket =
forall a. Maybe a
Prelude.Nothing,
$sel:keyPrefix:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
keyPrefix = forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing
}
customerManagedDatastoreS3StorageSummary_bucket :: Lens.Lens' CustomerManagedDatastoreS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedDatastoreS3StorageSummary_bucket :: Lens' CustomerManagedDatastoreS3StorageSummary (Maybe Text)
customerManagedDatastoreS3StorageSummary_bucket = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedDatastoreS3StorageSummary' {Maybe Text
bucket :: Maybe Text
$sel:bucket:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
bucket} -> Maybe Text
bucket) (\s :: CustomerManagedDatastoreS3StorageSummary
s@CustomerManagedDatastoreS3StorageSummary' {} Maybe Text
a -> CustomerManagedDatastoreS3StorageSummary
s {$sel:bucket:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
bucket = Maybe Text
a} :: CustomerManagedDatastoreS3StorageSummary)
customerManagedDatastoreS3StorageSummary_keyPrefix :: Lens.Lens' CustomerManagedDatastoreS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedDatastoreS3StorageSummary_keyPrefix :: Lens' CustomerManagedDatastoreS3StorageSummary (Maybe Text)
customerManagedDatastoreS3StorageSummary_keyPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedDatastoreS3StorageSummary' {Maybe Text
keyPrefix :: Maybe Text
$sel:keyPrefix:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
keyPrefix} -> Maybe Text
keyPrefix) (\s :: CustomerManagedDatastoreS3StorageSummary
s@CustomerManagedDatastoreS3StorageSummary' {} Maybe Text
a -> CustomerManagedDatastoreS3StorageSummary
s {$sel:keyPrefix:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
keyPrefix = Maybe Text
a} :: CustomerManagedDatastoreS3StorageSummary)
customerManagedDatastoreS3StorageSummary_roleArn :: Lens.Lens' CustomerManagedDatastoreS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedDatastoreS3StorageSummary_roleArn :: Lens' CustomerManagedDatastoreS3StorageSummary (Maybe Text)
customerManagedDatastoreS3StorageSummary_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedDatastoreS3StorageSummary' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: CustomerManagedDatastoreS3StorageSummary
s@CustomerManagedDatastoreS3StorageSummary' {} Maybe Text
a -> CustomerManagedDatastoreS3StorageSummary
s {$sel:roleArn:CustomerManagedDatastoreS3StorageSummary' :: Maybe Text
roleArn = Maybe Text
a} :: CustomerManagedDatastoreS3StorageSummary)
instance
Data.FromJSON
CustomerManagedDatastoreS3StorageSummary
where
parseJSON :: Value -> Parser CustomerManagedDatastoreS3StorageSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"CustomerManagedDatastoreS3StorageSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> CustomerManagedDatastoreS3StorageSummary
CustomerManagedDatastoreS3StorageSummary'
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
"bucket")
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
"keyPrefix")
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
"roleArn")
)
instance
Prelude.Hashable
CustomerManagedDatastoreS3StorageSummary
where
hashWithSalt :: Int -> CustomerManagedDatastoreS3StorageSummary -> Int
hashWithSalt
Int
_salt
CustomerManagedDatastoreS3StorageSummary' {Maybe Text
roleArn :: Maybe Text
keyPrefix :: Maybe Text
bucket :: Maybe Text
$sel:roleArn:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
$sel:keyPrefix:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
$sel:bucket:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
bucket
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
keyPrefix
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
instance
Prelude.NFData
CustomerManagedDatastoreS3StorageSummary
where
rnf :: CustomerManagedDatastoreS3StorageSummary -> ()
rnf CustomerManagedDatastoreS3StorageSummary' {Maybe Text
roleArn :: Maybe Text
keyPrefix :: Maybe Text
bucket :: Maybe Text
$sel:roleArn:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
$sel:keyPrefix:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
$sel:bucket:CustomerManagedDatastoreS3StorageSummary' :: CustomerManagedDatastoreS3StorageSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
bucket
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
keyPrefix
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn