{-# 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.AppConfig.Types.ConfigurationProfileSummary where
import Amazonka.AppConfig.Types.ValidatorType
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 ConfigurationProfileSummary = ConfigurationProfileSummary'
{
ConfigurationProfileSummary -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
ConfigurationProfileSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
ConfigurationProfileSummary -> Maybe Text
locationUri :: Prelude.Maybe Prelude.Text,
ConfigurationProfileSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ConfigurationProfileSummary -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
ConfigurationProfileSummary -> Maybe [ValidatorType]
validatorTypes :: Prelude.Maybe [ValidatorType]
}
deriving (ConfigurationProfileSummary -> ConfigurationProfileSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigurationProfileSummary -> ConfigurationProfileSummary -> Bool
$c/= :: ConfigurationProfileSummary -> ConfigurationProfileSummary -> Bool
== :: ConfigurationProfileSummary -> ConfigurationProfileSummary -> Bool
$c== :: ConfigurationProfileSummary -> ConfigurationProfileSummary -> Bool
Prelude.Eq, ReadPrec [ConfigurationProfileSummary]
ReadPrec ConfigurationProfileSummary
Int -> ReadS ConfigurationProfileSummary
ReadS [ConfigurationProfileSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigurationProfileSummary]
$creadListPrec :: ReadPrec [ConfigurationProfileSummary]
readPrec :: ReadPrec ConfigurationProfileSummary
$creadPrec :: ReadPrec ConfigurationProfileSummary
readList :: ReadS [ConfigurationProfileSummary]
$creadList :: ReadS [ConfigurationProfileSummary]
readsPrec :: Int -> ReadS ConfigurationProfileSummary
$creadsPrec :: Int -> ReadS ConfigurationProfileSummary
Prelude.Read, Int -> ConfigurationProfileSummary -> ShowS
[ConfigurationProfileSummary] -> ShowS
ConfigurationProfileSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigurationProfileSummary] -> ShowS
$cshowList :: [ConfigurationProfileSummary] -> ShowS
show :: ConfigurationProfileSummary -> String
$cshow :: ConfigurationProfileSummary -> String
showsPrec :: Int -> ConfigurationProfileSummary -> ShowS
$cshowsPrec :: Int -> ConfigurationProfileSummary -> ShowS
Prelude.Show, forall x.
Rep ConfigurationProfileSummary x -> ConfigurationProfileSummary
forall x.
ConfigurationProfileSummary -> Rep ConfigurationProfileSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ConfigurationProfileSummary x -> ConfigurationProfileSummary
$cfrom :: forall x.
ConfigurationProfileSummary -> Rep ConfigurationProfileSummary x
Prelude.Generic)
newConfigurationProfileSummary ::
ConfigurationProfileSummary
newConfigurationProfileSummary :: ConfigurationProfileSummary
newConfigurationProfileSummary =
ConfigurationProfileSummary'
{ $sel:applicationId:ConfigurationProfileSummary' :: Maybe Text
applicationId =
forall a. Maybe a
Prelude.Nothing,
$sel:id:ConfigurationProfileSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:locationUri:ConfigurationProfileSummary' :: Maybe Text
locationUri = forall a. Maybe a
Prelude.Nothing,
$sel:name:ConfigurationProfileSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:type':ConfigurationProfileSummary' :: Maybe Text
type' = forall a. Maybe a
Prelude.Nothing,
$sel:validatorTypes:ConfigurationProfileSummary' :: Maybe [ValidatorType]
validatorTypes = forall a. Maybe a
Prelude.Nothing
}
configurationProfileSummary_applicationId :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe Prelude.Text)
configurationProfileSummary_applicationId :: Lens' ConfigurationProfileSummary (Maybe Text)
configurationProfileSummary_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe Text
a -> ConfigurationProfileSummary
s {$sel:applicationId:ConfigurationProfileSummary' :: Maybe Text
applicationId = Maybe Text
a} :: ConfigurationProfileSummary)
configurationProfileSummary_id :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe Prelude.Text)
configurationProfileSummary_id :: Lens' ConfigurationProfileSummary (Maybe Text)
configurationProfileSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe Text
id :: Maybe Text
$sel:id:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe Text
a -> ConfigurationProfileSummary
s {$sel:id:ConfigurationProfileSummary' :: Maybe Text
id = Maybe Text
a} :: ConfigurationProfileSummary)
configurationProfileSummary_locationUri :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe Prelude.Text)
configurationProfileSummary_locationUri :: Lens' ConfigurationProfileSummary (Maybe Text)
configurationProfileSummary_locationUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe Text
locationUri :: Maybe Text
$sel:locationUri:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
locationUri} -> Maybe Text
locationUri) (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe Text
a -> ConfigurationProfileSummary
s {$sel:locationUri:ConfigurationProfileSummary' :: Maybe Text
locationUri = Maybe Text
a} :: ConfigurationProfileSummary)
configurationProfileSummary_name :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe Prelude.Text)
configurationProfileSummary_name :: Lens' ConfigurationProfileSummary (Maybe Text)
configurationProfileSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe Text
name :: Maybe Text
$sel:name:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe Text
a -> ConfigurationProfileSummary
s {$sel:name:ConfigurationProfileSummary' :: Maybe Text
name = Maybe Text
a} :: ConfigurationProfileSummary)
configurationProfileSummary_type :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe Prelude.Text)
configurationProfileSummary_type :: Lens' ConfigurationProfileSummary (Maybe Text)
configurationProfileSummary_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe Text
type' :: Maybe Text
$sel:type':ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
type'} -> Maybe Text
type') (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe Text
a -> ConfigurationProfileSummary
s {$sel:type':ConfigurationProfileSummary' :: Maybe Text
type' = Maybe Text
a} :: ConfigurationProfileSummary)
configurationProfileSummary_validatorTypes :: Lens.Lens' ConfigurationProfileSummary (Prelude.Maybe [ValidatorType])
configurationProfileSummary_validatorTypes :: Lens' ConfigurationProfileSummary (Maybe [ValidatorType])
configurationProfileSummary_validatorTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationProfileSummary' {Maybe [ValidatorType]
validatorTypes :: Maybe [ValidatorType]
$sel:validatorTypes:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe [ValidatorType]
validatorTypes} -> Maybe [ValidatorType]
validatorTypes) (\s :: ConfigurationProfileSummary
s@ConfigurationProfileSummary' {} Maybe [ValidatorType]
a -> ConfigurationProfileSummary
s {$sel:validatorTypes:ConfigurationProfileSummary' :: Maybe [ValidatorType]
validatorTypes = Maybe [ValidatorType]
a} :: ConfigurationProfileSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON ConfigurationProfileSummary where
parseJSON :: Value -> Parser ConfigurationProfileSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ConfigurationProfileSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [ValidatorType]
-> ConfigurationProfileSummary
ConfigurationProfileSummary'
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
"ApplicationId")
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
"Id")
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
"LocationUri")
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
"Name")
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
"Type")
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
"ValidatorTypes"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ConfigurationProfileSummary where
hashWithSalt :: Int -> ConfigurationProfileSummary -> Int
hashWithSalt Int
_salt ConfigurationProfileSummary' {Maybe [ValidatorType]
Maybe Text
validatorTypes :: Maybe [ValidatorType]
type' :: Maybe Text
name :: Maybe Text
locationUri :: Maybe Text
id :: Maybe Text
applicationId :: Maybe Text
$sel:validatorTypes:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe [ValidatorType]
$sel:type':ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:name:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:locationUri:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:id:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:applicationId:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
applicationId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
locationUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ValidatorType]
validatorTypes
instance Prelude.NFData ConfigurationProfileSummary where
rnf :: ConfigurationProfileSummary -> ()
rnf ConfigurationProfileSummary' {Maybe [ValidatorType]
Maybe Text
validatorTypes :: Maybe [ValidatorType]
type' :: Maybe Text
name :: Maybe Text
locationUri :: Maybe Text
id :: Maybe Text
applicationId :: Maybe Text
$sel:validatorTypes:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe [ValidatorType]
$sel:type':ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:name:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:locationUri:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:id:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
$sel:applicationId:ConfigurationProfileSummary' :: ConfigurationProfileSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
locationUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ValidatorType]
validatorTypes