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