{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GroundStation.Types.DataflowEndpointGroupIdResponse
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GroundStation.Types.DataflowEndpointGroupIdResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- |
--
-- /See:/ 'newDataflowEndpointGroupIdResponse' smart constructor.
data DataflowEndpointGroupIdResponse = DataflowEndpointGroupIdResponse'
  { -- | UUID of a dataflow endpoint group.
    DataflowEndpointGroupIdResponse -> Maybe Text
dataflowEndpointGroupId :: Prelude.Maybe Prelude.Text
  }
  deriving (DataflowEndpointGroupIdResponse
-> DataflowEndpointGroupIdResponse -> Bool
(DataflowEndpointGroupIdResponse
 -> DataflowEndpointGroupIdResponse -> Bool)
-> (DataflowEndpointGroupIdResponse
    -> DataflowEndpointGroupIdResponse -> Bool)
-> Eq DataflowEndpointGroupIdResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataflowEndpointGroupIdResponse
-> DataflowEndpointGroupIdResponse -> Bool
$c/= :: DataflowEndpointGroupIdResponse
-> DataflowEndpointGroupIdResponse -> Bool
== :: DataflowEndpointGroupIdResponse
-> DataflowEndpointGroupIdResponse -> Bool
$c== :: DataflowEndpointGroupIdResponse
-> DataflowEndpointGroupIdResponse -> Bool
Prelude.Eq, ReadPrec [DataflowEndpointGroupIdResponse]
ReadPrec DataflowEndpointGroupIdResponse
Int -> ReadS DataflowEndpointGroupIdResponse
ReadS [DataflowEndpointGroupIdResponse]
(Int -> ReadS DataflowEndpointGroupIdResponse)
-> ReadS [DataflowEndpointGroupIdResponse]
-> ReadPrec DataflowEndpointGroupIdResponse
-> ReadPrec [DataflowEndpointGroupIdResponse]
-> Read DataflowEndpointGroupIdResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataflowEndpointGroupIdResponse]
$creadListPrec :: ReadPrec [DataflowEndpointGroupIdResponse]
readPrec :: ReadPrec DataflowEndpointGroupIdResponse
$creadPrec :: ReadPrec DataflowEndpointGroupIdResponse
readList :: ReadS [DataflowEndpointGroupIdResponse]
$creadList :: ReadS [DataflowEndpointGroupIdResponse]
readsPrec :: Int -> ReadS DataflowEndpointGroupIdResponse
$creadsPrec :: Int -> ReadS DataflowEndpointGroupIdResponse
Prelude.Read, Int -> DataflowEndpointGroupIdResponse -> ShowS
[DataflowEndpointGroupIdResponse] -> ShowS
DataflowEndpointGroupIdResponse -> String
(Int -> DataflowEndpointGroupIdResponse -> ShowS)
-> (DataflowEndpointGroupIdResponse -> String)
-> ([DataflowEndpointGroupIdResponse] -> ShowS)
-> Show DataflowEndpointGroupIdResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataflowEndpointGroupIdResponse] -> ShowS
$cshowList :: [DataflowEndpointGroupIdResponse] -> ShowS
show :: DataflowEndpointGroupIdResponse -> String
$cshow :: DataflowEndpointGroupIdResponse -> String
showsPrec :: Int -> DataflowEndpointGroupIdResponse -> ShowS
$cshowsPrec :: Int -> DataflowEndpointGroupIdResponse -> ShowS
Prelude.Show, (forall x.
 DataflowEndpointGroupIdResponse
 -> Rep DataflowEndpointGroupIdResponse x)
-> (forall x.
    Rep DataflowEndpointGroupIdResponse x
    -> DataflowEndpointGroupIdResponse)
-> Generic DataflowEndpointGroupIdResponse
forall x.
Rep DataflowEndpointGroupIdResponse x
-> DataflowEndpointGroupIdResponse
forall x.
DataflowEndpointGroupIdResponse
-> Rep DataflowEndpointGroupIdResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DataflowEndpointGroupIdResponse x
-> DataflowEndpointGroupIdResponse
$cfrom :: forall x.
DataflowEndpointGroupIdResponse
-> Rep DataflowEndpointGroupIdResponse x
Prelude.Generic)

-- |
-- Create a value of 'DataflowEndpointGroupIdResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'dataflowEndpointGroupId', 'dataflowEndpointGroupIdResponse_dataflowEndpointGroupId' - UUID of a dataflow endpoint group.
newDataflowEndpointGroupIdResponse ::
  DataflowEndpointGroupIdResponse
newDataflowEndpointGroupIdResponse :: DataflowEndpointGroupIdResponse
newDataflowEndpointGroupIdResponse =
  DataflowEndpointGroupIdResponse' :: Maybe Text -> DataflowEndpointGroupIdResponse
DataflowEndpointGroupIdResponse'
    { $sel:dataflowEndpointGroupId:DataflowEndpointGroupIdResponse' :: Maybe Text
dataflowEndpointGroupId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | UUID of a dataflow endpoint group.
dataflowEndpointGroupIdResponse_dataflowEndpointGroupId :: Lens.Lens' DataflowEndpointGroupIdResponse (Prelude.Maybe Prelude.Text)
dataflowEndpointGroupIdResponse_dataflowEndpointGroupId :: (Maybe Text -> f (Maybe Text))
-> DataflowEndpointGroupIdResponse
-> f DataflowEndpointGroupIdResponse
dataflowEndpointGroupIdResponse_dataflowEndpointGroupId = (DataflowEndpointGroupIdResponse -> Maybe Text)
-> (DataflowEndpointGroupIdResponse
    -> Maybe Text -> DataflowEndpointGroupIdResponse)
-> Lens
     DataflowEndpointGroupIdResponse
     DataflowEndpointGroupIdResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataflowEndpointGroupIdResponse' {Maybe Text
dataflowEndpointGroupId :: Maybe Text
$sel:dataflowEndpointGroupId:DataflowEndpointGroupIdResponse' :: DataflowEndpointGroupIdResponse -> Maybe Text
dataflowEndpointGroupId} -> Maybe Text
dataflowEndpointGroupId) (\s :: DataflowEndpointGroupIdResponse
s@DataflowEndpointGroupIdResponse' {} Maybe Text
a -> DataflowEndpointGroupIdResponse
s {$sel:dataflowEndpointGroupId:DataflowEndpointGroupIdResponse' :: Maybe Text
dataflowEndpointGroupId = Maybe Text
a} :: DataflowEndpointGroupIdResponse)

instance
  Core.FromJSON
    DataflowEndpointGroupIdResponse
  where
  parseJSON :: Value -> Parser DataflowEndpointGroupIdResponse
parseJSON =
    String
-> (Object -> Parser DataflowEndpointGroupIdResponse)
-> Value
-> Parser DataflowEndpointGroupIdResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DataflowEndpointGroupIdResponse"
      ( \Object
x ->
          Maybe Text -> DataflowEndpointGroupIdResponse
DataflowEndpointGroupIdResponse'
            (Maybe Text -> DataflowEndpointGroupIdResponse)
-> Parser (Maybe Text) -> Parser DataflowEndpointGroupIdResponse
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
"dataflowEndpointGroupId")
      )

instance
  Prelude.Hashable
    DataflowEndpointGroupIdResponse

instance
  Prelude.NFData
    DataflowEndpointGroupIdResponse