{-# 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.AlexaBusiness.Types.GatewaySummary 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 GatewaySummary = GatewaySummary'
{
GatewaySummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GatewaySummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GatewaySummary -> Maybe Text
gatewayGroupArn :: Prelude.Maybe Prelude.Text,
GatewaySummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GatewaySummary -> Maybe Text
softwareVersion :: Prelude.Maybe Prelude.Text
}
deriving (GatewaySummary -> GatewaySummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GatewaySummary -> GatewaySummary -> Bool
$c/= :: GatewaySummary -> GatewaySummary -> Bool
== :: GatewaySummary -> GatewaySummary -> Bool
$c== :: GatewaySummary -> GatewaySummary -> Bool
Prelude.Eq, ReadPrec [GatewaySummary]
ReadPrec GatewaySummary
Int -> ReadS GatewaySummary
ReadS [GatewaySummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GatewaySummary]
$creadListPrec :: ReadPrec [GatewaySummary]
readPrec :: ReadPrec GatewaySummary
$creadPrec :: ReadPrec GatewaySummary
readList :: ReadS [GatewaySummary]
$creadList :: ReadS [GatewaySummary]
readsPrec :: Int -> ReadS GatewaySummary
$creadsPrec :: Int -> ReadS GatewaySummary
Prelude.Read, Int -> GatewaySummary -> ShowS
[GatewaySummary] -> ShowS
GatewaySummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GatewaySummary] -> ShowS
$cshowList :: [GatewaySummary] -> ShowS
show :: GatewaySummary -> String
$cshow :: GatewaySummary -> String
showsPrec :: Int -> GatewaySummary -> ShowS
$cshowsPrec :: Int -> GatewaySummary -> ShowS
Prelude.Show, forall x. Rep GatewaySummary x -> GatewaySummary
forall x. GatewaySummary -> Rep GatewaySummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GatewaySummary x -> GatewaySummary
$cfrom :: forall x. GatewaySummary -> Rep GatewaySummary x
Prelude.Generic)
newGatewaySummary ::
GatewaySummary
newGatewaySummary :: GatewaySummary
newGatewaySummary =
GatewaySummary'
{ $sel:arn:GatewaySummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:description:GatewaySummary' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:gatewayGroupArn:GatewaySummary' :: Maybe Text
gatewayGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:name:GatewaySummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:softwareVersion:GatewaySummary' :: Maybe Text
softwareVersion = forall a. Maybe a
Prelude.Nothing
}
gatewaySummary_arn :: Lens.Lens' GatewaySummary (Prelude.Maybe Prelude.Text)
gatewaySummary_arn :: Lens' GatewaySummary (Maybe Text)
gatewaySummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewaySummary' {Maybe Text
arn :: Maybe Text
$sel:arn:GatewaySummary' :: GatewaySummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GatewaySummary
s@GatewaySummary' {} Maybe Text
a -> GatewaySummary
s {$sel:arn:GatewaySummary' :: Maybe Text
arn = Maybe Text
a} :: GatewaySummary)
gatewaySummary_description :: Lens.Lens' GatewaySummary (Prelude.Maybe Prelude.Text)
gatewaySummary_description :: Lens' GatewaySummary (Maybe Text)
gatewaySummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewaySummary' {Maybe Text
description :: Maybe Text
$sel:description:GatewaySummary' :: GatewaySummary -> Maybe Text
description} -> Maybe Text
description) (\s :: GatewaySummary
s@GatewaySummary' {} Maybe Text
a -> GatewaySummary
s {$sel:description:GatewaySummary' :: Maybe Text
description = Maybe Text
a} :: GatewaySummary)
gatewaySummary_gatewayGroupArn :: Lens.Lens' GatewaySummary (Prelude.Maybe Prelude.Text)
gatewaySummary_gatewayGroupArn :: Lens' GatewaySummary (Maybe Text)
gatewaySummary_gatewayGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewaySummary' {Maybe Text
gatewayGroupArn :: Maybe Text
$sel:gatewayGroupArn:GatewaySummary' :: GatewaySummary -> Maybe Text
gatewayGroupArn} -> Maybe Text
gatewayGroupArn) (\s :: GatewaySummary
s@GatewaySummary' {} Maybe Text
a -> GatewaySummary
s {$sel:gatewayGroupArn:GatewaySummary' :: Maybe Text
gatewayGroupArn = Maybe Text
a} :: GatewaySummary)
gatewaySummary_name :: Lens.Lens' GatewaySummary (Prelude.Maybe Prelude.Text)
gatewaySummary_name :: Lens' GatewaySummary (Maybe Text)
gatewaySummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewaySummary' {Maybe Text
name :: Maybe Text
$sel:name:GatewaySummary' :: GatewaySummary -> Maybe Text
name} -> Maybe Text
name) (\s :: GatewaySummary
s@GatewaySummary' {} Maybe Text
a -> GatewaySummary
s {$sel:name:GatewaySummary' :: Maybe Text
name = Maybe Text
a} :: GatewaySummary)
gatewaySummary_softwareVersion :: Lens.Lens' GatewaySummary (Prelude.Maybe Prelude.Text)
gatewaySummary_softwareVersion :: Lens' GatewaySummary (Maybe Text)
gatewaySummary_softwareVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GatewaySummary' {Maybe Text
softwareVersion :: Maybe Text
$sel:softwareVersion:GatewaySummary' :: GatewaySummary -> Maybe Text
softwareVersion} -> Maybe Text
softwareVersion) (\s :: GatewaySummary
s@GatewaySummary' {} Maybe Text
a -> GatewaySummary
s {$sel:softwareVersion:GatewaySummary' :: Maybe Text
softwareVersion = Maybe Text
a} :: GatewaySummary)
instance Data.FromJSON GatewaySummary where
parseJSON :: Value -> Parser GatewaySummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"GatewaySummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> GatewaySummary
GatewaySummary'
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
"Arn")
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
"Description")
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
"GatewayGroupArn")
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
"SoftwareVersion")
)
instance Prelude.Hashable GatewaySummary where
hashWithSalt :: Int -> GatewaySummary -> Int
hashWithSalt Int
_salt GatewaySummary' {Maybe Text
softwareVersion :: Maybe Text
name :: Maybe Text
gatewayGroupArn :: Maybe Text
description :: Maybe Text
arn :: Maybe Text
$sel:softwareVersion:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:name:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:gatewayGroupArn:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:description:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:arn:GatewaySummary' :: GatewaySummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayGroupArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
softwareVersion
instance Prelude.NFData GatewaySummary where
rnf :: GatewaySummary -> ()
rnf GatewaySummary' {Maybe Text
softwareVersion :: Maybe Text
name :: Maybe Text
gatewayGroupArn :: Maybe Text
description :: Maybe Text
arn :: Maybe Text
$sel:softwareVersion:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:name:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:gatewayGroupArn:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:description:GatewaySummary' :: GatewaySummary -> Maybe Text
$sel:arn:GatewaySummary' :: GatewaySummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayGroupArn
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
softwareVersion