{-# 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.GroundStation.Types.MissionProfileIdResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data MissionProfileIdResponse = MissionProfileIdResponse'
{
MissionProfileIdResponse -> Maybe Text
missionProfileId :: Prelude.Maybe Prelude.Text
}
deriving (MissionProfileIdResponse -> MissionProfileIdResponse -> Bool
(MissionProfileIdResponse -> MissionProfileIdResponse -> Bool)
-> (MissionProfileIdResponse -> MissionProfileIdResponse -> Bool)
-> Eq MissionProfileIdResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MissionProfileIdResponse -> MissionProfileIdResponse -> Bool
$c/= :: MissionProfileIdResponse -> MissionProfileIdResponse -> Bool
== :: MissionProfileIdResponse -> MissionProfileIdResponse -> Bool
$c== :: MissionProfileIdResponse -> MissionProfileIdResponse -> Bool
Prelude.Eq, ReadPrec [MissionProfileIdResponse]
ReadPrec MissionProfileIdResponse
Int -> ReadS MissionProfileIdResponse
ReadS [MissionProfileIdResponse]
(Int -> ReadS MissionProfileIdResponse)
-> ReadS [MissionProfileIdResponse]
-> ReadPrec MissionProfileIdResponse
-> ReadPrec [MissionProfileIdResponse]
-> Read MissionProfileIdResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MissionProfileIdResponse]
$creadListPrec :: ReadPrec [MissionProfileIdResponse]
readPrec :: ReadPrec MissionProfileIdResponse
$creadPrec :: ReadPrec MissionProfileIdResponse
readList :: ReadS [MissionProfileIdResponse]
$creadList :: ReadS [MissionProfileIdResponse]
readsPrec :: Int -> ReadS MissionProfileIdResponse
$creadsPrec :: Int -> ReadS MissionProfileIdResponse
Prelude.Read, Int -> MissionProfileIdResponse -> ShowS
[MissionProfileIdResponse] -> ShowS
MissionProfileIdResponse -> String
(Int -> MissionProfileIdResponse -> ShowS)
-> (MissionProfileIdResponse -> String)
-> ([MissionProfileIdResponse] -> ShowS)
-> Show MissionProfileIdResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MissionProfileIdResponse] -> ShowS
$cshowList :: [MissionProfileIdResponse] -> ShowS
show :: MissionProfileIdResponse -> String
$cshow :: MissionProfileIdResponse -> String
showsPrec :: Int -> MissionProfileIdResponse -> ShowS
$cshowsPrec :: Int -> MissionProfileIdResponse -> ShowS
Prelude.Show, (forall x.
MissionProfileIdResponse -> Rep MissionProfileIdResponse x)
-> (forall x.
Rep MissionProfileIdResponse x -> MissionProfileIdResponse)
-> Generic MissionProfileIdResponse
forall x.
Rep MissionProfileIdResponse x -> MissionProfileIdResponse
forall x.
MissionProfileIdResponse -> Rep MissionProfileIdResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MissionProfileIdResponse x -> MissionProfileIdResponse
$cfrom :: forall x.
MissionProfileIdResponse -> Rep MissionProfileIdResponse x
Prelude.Generic)
newMissionProfileIdResponse ::
MissionProfileIdResponse
newMissionProfileIdResponse :: MissionProfileIdResponse
newMissionProfileIdResponse =
MissionProfileIdResponse' :: Maybe Text -> MissionProfileIdResponse
MissionProfileIdResponse'
{ $sel:missionProfileId:MissionProfileIdResponse' :: Maybe Text
missionProfileId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
missionProfileIdResponse_missionProfileId :: Lens.Lens' MissionProfileIdResponse (Prelude.Maybe Prelude.Text)
missionProfileIdResponse_missionProfileId :: (Maybe Text -> f (Maybe Text))
-> MissionProfileIdResponse -> f MissionProfileIdResponse
missionProfileIdResponse_missionProfileId = (MissionProfileIdResponse -> Maybe Text)
-> (MissionProfileIdResponse
-> Maybe Text -> MissionProfileIdResponse)
-> Lens
MissionProfileIdResponse
MissionProfileIdResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MissionProfileIdResponse' {Maybe Text
missionProfileId :: Maybe Text
$sel:missionProfileId:MissionProfileIdResponse' :: MissionProfileIdResponse -> Maybe Text
missionProfileId} -> Maybe Text
missionProfileId) (\s :: MissionProfileIdResponse
s@MissionProfileIdResponse' {} Maybe Text
a -> MissionProfileIdResponse
s {$sel:missionProfileId:MissionProfileIdResponse' :: Maybe Text
missionProfileId = Maybe Text
a} :: MissionProfileIdResponse)
instance Core.FromJSON MissionProfileIdResponse where
parseJSON :: Value -> Parser MissionProfileIdResponse
parseJSON =
String
-> (Object -> Parser MissionProfileIdResponse)
-> Value
-> Parser MissionProfileIdResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MissionProfileIdResponse"
( \Object
x ->
Maybe Text -> MissionProfileIdResponse
MissionProfileIdResponse'
(Maybe Text -> MissionProfileIdResponse)
-> Parser (Maybe Text) -> Parser MissionProfileIdResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"missionProfileId")
)
instance Prelude.Hashable MissionProfileIdResponse
instance Prelude.NFData MissionProfileIdResponse