{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.DescribeContact
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes an existing contact.
module Amazonka.GroundStation.DescribeContact
  ( -- * Creating a Request
    DescribeContact (..),
    newDescribeContact,

    -- * Request Lenses
    describeContact_contactId,

    -- * Destructuring the Response
    DescribeContactResponse (..),
    newDescribeContactResponse,

    -- * Response Lenses
    describeContactResponse_contactId,
    describeContactResponse_contactStatus,
    describeContactResponse_dataflowList,
    describeContactResponse_endTime,
    describeContactResponse_errorMessage,
    describeContactResponse_groundStation,
    describeContactResponse_maximumElevation,
    describeContactResponse_missionProfileArn,
    describeContactResponse_postPassEndTime,
    describeContactResponse_prePassStartTime,
    describeContactResponse_region,
    describeContactResponse_satelliteArn,
    describeContactResponse_startTime,
    describeContactResponse_tags,
    describeContactResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GroundStation.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

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

-- |
-- Create a value of 'DescribeContact' 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:
--
-- 'contactId', 'describeContact_contactId' - UUID of a contact.
newDescribeContact ::
  -- | 'contactId'
  Prelude.Text ->
  DescribeContact
newDescribeContact :: Text -> DescribeContact
newDescribeContact Text
pContactId_ =
  DescribeContact' {$sel:contactId:DescribeContact' :: Text
contactId = Text
pContactId_}

-- | UUID of a contact.
describeContact_contactId :: Lens.Lens' DescribeContact Prelude.Text
describeContact_contactId :: Lens' DescribeContact Text
describeContact_contactId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContact' {Text
contactId :: Text
$sel:contactId:DescribeContact' :: DescribeContact -> Text
contactId} -> Text
contactId) (\s :: DescribeContact
s@DescribeContact' {} Text
a -> DescribeContact
s {$sel:contactId:DescribeContact' :: Text
contactId = Text
a} :: DescribeContact)

instance Core.AWSRequest DescribeContact where
  type
    AWSResponse DescribeContact =
      DescribeContactResponse
  request :: (Service -> Service) -> DescribeContact -> Request DescribeContact
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeContact
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeContact)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe ContactStatus
-> Maybe [DataflowDetail]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Elevation
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeContactResponse
DescribeContactResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"contactId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"contactStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"dataflowList" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"endTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"errorMessage")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"groundStation")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"maximumElevation")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"missionProfileArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"postPassEndTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"prePassStartTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"region")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"satelliteArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"startTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeContact where
  hashWithSalt :: Int -> DescribeContact -> Int
hashWithSalt Int
_salt DescribeContact' {Text
contactId :: Text
$sel:contactId:DescribeContact' :: DescribeContact -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
contactId

instance Prelude.NFData DescribeContact where
  rnf :: DescribeContact -> ()
rnf DescribeContact' {Text
contactId :: Text
$sel:contactId:DescribeContact' :: DescribeContact -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
contactId

instance Data.ToHeaders DescribeContact where
  toHeaders :: DescribeContact -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath DescribeContact where
  toPath :: DescribeContact -> ByteString
toPath DescribeContact' {Text
contactId :: Text
$sel:contactId:DescribeContact' :: DescribeContact -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/contact/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
contactId]

instance Data.ToQuery DescribeContact where
  toQuery :: DescribeContact -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- |
--
-- /See:/ 'newDescribeContactResponse' smart constructor.
data DescribeContactResponse = DescribeContactResponse'
  { -- | UUID of a contact.
    DescribeContactResponse -> Maybe Text
contactId :: Prelude.Maybe Prelude.Text,
    -- | Status of a contact.
    DescribeContactResponse -> Maybe ContactStatus
contactStatus :: Prelude.Maybe ContactStatus,
    -- | List describing source and destination details for each dataflow edge.
    DescribeContactResponse -> Maybe [DataflowDetail]
dataflowList :: Prelude.Maybe [DataflowDetail],
    -- | End time of a contact in UTC.
    DescribeContactResponse -> Maybe POSIX
endTime :: Prelude.Maybe Data.POSIX,
    -- | Error message for a contact.
    DescribeContactResponse -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | Ground station for a contact.
    DescribeContactResponse -> Maybe Text
groundStation :: Prelude.Maybe Prelude.Text,
    -- | Maximum elevation angle of a contact.
    DescribeContactResponse -> Maybe Elevation
maximumElevation :: Prelude.Maybe Elevation,
    -- | ARN of a mission profile.
    DescribeContactResponse -> Maybe Text
missionProfileArn :: Prelude.Maybe Prelude.Text,
    -- | Amount of time after a contact ends that you’d like to receive a
    -- CloudWatch event indicating the pass has finished.
    DescribeContactResponse -> Maybe POSIX
postPassEndTime :: Prelude.Maybe Data.POSIX,
    -- | Amount of time prior to contact start you’d like to receive a CloudWatch
    -- event indicating an upcoming pass.
    DescribeContactResponse -> Maybe POSIX
prePassStartTime :: Prelude.Maybe Data.POSIX,
    -- | Region of a contact.
    DescribeContactResponse -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
    -- | ARN of a satellite.
    DescribeContactResponse -> Maybe Text
satelliteArn :: Prelude.Maybe Prelude.Text,
    -- | Start time of a contact in UTC.
    DescribeContactResponse -> Maybe POSIX
startTime :: Prelude.Maybe Data.POSIX,
    -- | Tags assigned to a contact.
    DescribeContactResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeContactResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeContactResponse -> DescribeContactResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeContactResponse -> DescribeContactResponse -> Bool
$c/= :: DescribeContactResponse -> DescribeContactResponse -> Bool
== :: DescribeContactResponse -> DescribeContactResponse -> Bool
$c== :: DescribeContactResponse -> DescribeContactResponse -> Bool
Prelude.Eq, ReadPrec [DescribeContactResponse]
ReadPrec DescribeContactResponse
Int -> ReadS DescribeContactResponse
ReadS [DescribeContactResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeContactResponse]
$creadListPrec :: ReadPrec [DescribeContactResponse]
readPrec :: ReadPrec DescribeContactResponse
$creadPrec :: ReadPrec DescribeContactResponse
readList :: ReadS [DescribeContactResponse]
$creadList :: ReadS [DescribeContactResponse]
readsPrec :: Int -> ReadS DescribeContactResponse
$creadsPrec :: Int -> ReadS DescribeContactResponse
Prelude.Read, Int -> DescribeContactResponse -> ShowS
[DescribeContactResponse] -> ShowS
DescribeContactResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeContactResponse] -> ShowS
$cshowList :: [DescribeContactResponse] -> ShowS
show :: DescribeContactResponse -> String
$cshow :: DescribeContactResponse -> String
showsPrec :: Int -> DescribeContactResponse -> ShowS
$cshowsPrec :: Int -> DescribeContactResponse -> ShowS
Prelude.Show, forall x. Rep DescribeContactResponse x -> DescribeContactResponse
forall x. DescribeContactResponse -> Rep DescribeContactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeContactResponse x -> DescribeContactResponse
$cfrom :: forall x. DescribeContactResponse -> Rep DescribeContactResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeContactResponse' 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:
--
-- 'contactId', 'describeContactResponse_contactId' - UUID of a contact.
--
-- 'contactStatus', 'describeContactResponse_contactStatus' - Status of a contact.
--
-- 'dataflowList', 'describeContactResponse_dataflowList' - List describing source and destination details for each dataflow edge.
--
-- 'endTime', 'describeContactResponse_endTime' - End time of a contact in UTC.
--
-- 'errorMessage', 'describeContactResponse_errorMessage' - Error message for a contact.
--
-- 'groundStation', 'describeContactResponse_groundStation' - Ground station for a contact.
--
-- 'maximumElevation', 'describeContactResponse_maximumElevation' - Maximum elevation angle of a contact.
--
-- 'missionProfileArn', 'describeContactResponse_missionProfileArn' - ARN of a mission profile.
--
-- 'postPassEndTime', 'describeContactResponse_postPassEndTime' - Amount of time after a contact ends that you’d like to receive a
-- CloudWatch event indicating the pass has finished.
--
-- 'prePassStartTime', 'describeContactResponse_prePassStartTime' - Amount of time prior to contact start you’d like to receive a CloudWatch
-- event indicating an upcoming pass.
--
-- 'region', 'describeContactResponse_region' - Region of a contact.
--
-- 'satelliteArn', 'describeContactResponse_satelliteArn' - ARN of a satellite.
--
-- 'startTime', 'describeContactResponse_startTime' - Start time of a contact in UTC.
--
-- 'tags', 'describeContactResponse_tags' - Tags assigned to a contact.
--
-- 'httpStatus', 'describeContactResponse_httpStatus' - The response's http status code.
newDescribeContactResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeContactResponse
newDescribeContactResponse :: Int -> DescribeContactResponse
newDescribeContactResponse Int
pHttpStatus_ =
  DescribeContactResponse'
    { $sel:contactId:DescribeContactResponse' :: Maybe Text
contactId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:contactStatus:DescribeContactResponse' :: Maybe ContactStatus
contactStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:dataflowList:DescribeContactResponse' :: Maybe [DataflowDetail]
dataflowList = forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:DescribeContactResponse' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:DescribeContactResponse' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:groundStation:DescribeContactResponse' :: Maybe Text
groundStation = forall a. Maybe a
Prelude.Nothing,
      $sel:maximumElevation:DescribeContactResponse' :: Maybe Elevation
maximumElevation = forall a. Maybe a
Prelude.Nothing,
      $sel:missionProfileArn:DescribeContactResponse' :: Maybe Text
missionProfileArn = forall a. Maybe a
Prelude.Nothing,
      $sel:postPassEndTime:DescribeContactResponse' :: Maybe POSIX
postPassEndTime = forall a. Maybe a
Prelude.Nothing,
      $sel:prePassStartTime:DescribeContactResponse' :: Maybe POSIX
prePassStartTime = forall a. Maybe a
Prelude.Nothing,
      $sel:region:DescribeContactResponse' :: Maybe Text
region = forall a. Maybe a
Prelude.Nothing,
      $sel:satelliteArn:DescribeContactResponse' :: Maybe Text
satelliteArn = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:DescribeContactResponse' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeContactResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeContactResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | UUID of a contact.
describeContactResponse_contactId :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_contactId :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_contactId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
contactId :: Maybe Text
$sel:contactId:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
contactId} -> Maybe Text
contactId) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:contactId:DescribeContactResponse' :: Maybe Text
contactId = Maybe Text
a} :: DescribeContactResponse)

-- | Status of a contact.
describeContactResponse_contactStatus :: Lens.Lens' DescribeContactResponse (Prelude.Maybe ContactStatus)
describeContactResponse_contactStatus :: Lens' DescribeContactResponse (Maybe ContactStatus)
describeContactResponse_contactStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe ContactStatus
contactStatus :: Maybe ContactStatus
$sel:contactStatus:DescribeContactResponse' :: DescribeContactResponse -> Maybe ContactStatus
contactStatus} -> Maybe ContactStatus
contactStatus) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe ContactStatus
a -> DescribeContactResponse
s {$sel:contactStatus:DescribeContactResponse' :: Maybe ContactStatus
contactStatus = Maybe ContactStatus
a} :: DescribeContactResponse)

-- | List describing source and destination details for each dataflow edge.
describeContactResponse_dataflowList :: Lens.Lens' DescribeContactResponse (Prelude.Maybe [DataflowDetail])
describeContactResponse_dataflowList :: Lens' DescribeContactResponse (Maybe [DataflowDetail])
describeContactResponse_dataflowList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe [DataflowDetail]
dataflowList :: Maybe [DataflowDetail]
$sel:dataflowList:DescribeContactResponse' :: DescribeContactResponse -> Maybe [DataflowDetail]
dataflowList} -> Maybe [DataflowDetail]
dataflowList) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe [DataflowDetail]
a -> DescribeContactResponse
s {$sel:dataflowList:DescribeContactResponse' :: Maybe [DataflowDetail]
dataflowList = Maybe [DataflowDetail]
a} :: DescribeContactResponse) 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

-- | End time of a contact in UTC.
describeContactResponse_endTime :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.UTCTime)
describeContactResponse_endTime :: Lens' DescribeContactResponse (Maybe UTCTime)
describeContactResponse_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe POSIX
a -> DescribeContactResponse
s {$sel:endTime:DescribeContactResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DescribeContactResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Error message for a contact.
describeContactResponse_errorMessage :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_errorMessage :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:errorMessage:DescribeContactResponse' :: Maybe Text
errorMessage = Maybe Text
a} :: DescribeContactResponse)

-- | Ground station for a contact.
describeContactResponse_groundStation :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_groundStation :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_groundStation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
groundStation :: Maybe Text
$sel:groundStation:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
groundStation} -> Maybe Text
groundStation) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:groundStation:DescribeContactResponse' :: Maybe Text
groundStation = Maybe Text
a} :: DescribeContactResponse)

-- | Maximum elevation angle of a contact.
describeContactResponse_maximumElevation :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Elevation)
describeContactResponse_maximumElevation :: Lens' DescribeContactResponse (Maybe Elevation)
describeContactResponse_maximumElevation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Elevation
maximumElevation :: Maybe Elevation
$sel:maximumElevation:DescribeContactResponse' :: DescribeContactResponse -> Maybe Elevation
maximumElevation} -> Maybe Elevation
maximumElevation) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Elevation
a -> DescribeContactResponse
s {$sel:maximumElevation:DescribeContactResponse' :: Maybe Elevation
maximumElevation = Maybe Elevation
a} :: DescribeContactResponse)

-- | ARN of a mission profile.
describeContactResponse_missionProfileArn :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_missionProfileArn :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_missionProfileArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
missionProfileArn :: Maybe Text
$sel:missionProfileArn:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
missionProfileArn} -> Maybe Text
missionProfileArn) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:missionProfileArn:DescribeContactResponse' :: Maybe Text
missionProfileArn = Maybe Text
a} :: DescribeContactResponse)

-- | Amount of time after a contact ends that you’d like to receive a
-- CloudWatch event indicating the pass has finished.
describeContactResponse_postPassEndTime :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.UTCTime)
describeContactResponse_postPassEndTime :: Lens' DescribeContactResponse (Maybe UTCTime)
describeContactResponse_postPassEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe POSIX
postPassEndTime :: Maybe POSIX
$sel:postPassEndTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
postPassEndTime} -> Maybe POSIX
postPassEndTime) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe POSIX
a -> DescribeContactResponse
s {$sel:postPassEndTime:DescribeContactResponse' :: Maybe POSIX
postPassEndTime = Maybe POSIX
a} :: DescribeContactResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Amount of time prior to contact start you’d like to receive a CloudWatch
-- event indicating an upcoming pass.
describeContactResponse_prePassStartTime :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.UTCTime)
describeContactResponse_prePassStartTime :: Lens' DescribeContactResponse (Maybe UTCTime)
describeContactResponse_prePassStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe POSIX
prePassStartTime :: Maybe POSIX
$sel:prePassStartTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
prePassStartTime} -> Maybe POSIX
prePassStartTime) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe POSIX
a -> DescribeContactResponse
s {$sel:prePassStartTime:DescribeContactResponse' :: Maybe POSIX
prePassStartTime = Maybe POSIX
a} :: DescribeContactResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Region of a contact.
describeContactResponse_region :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_region :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_region = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
region :: Maybe Text
$sel:region:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
region} -> Maybe Text
region) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:region:DescribeContactResponse' :: Maybe Text
region = Maybe Text
a} :: DescribeContactResponse)

-- | ARN of a satellite.
describeContactResponse_satelliteArn :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.Text)
describeContactResponse_satelliteArn :: Lens' DescribeContactResponse (Maybe Text)
describeContactResponse_satelliteArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe Text
satelliteArn :: Maybe Text
$sel:satelliteArn:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
satelliteArn} -> Maybe Text
satelliteArn) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe Text
a -> DescribeContactResponse
s {$sel:satelliteArn:DescribeContactResponse' :: Maybe Text
satelliteArn = Maybe Text
a} :: DescribeContactResponse)

-- | Start time of a contact in UTC.
describeContactResponse_startTime :: Lens.Lens' DescribeContactResponse (Prelude.Maybe Prelude.UTCTime)
describeContactResponse_startTime :: Lens' DescribeContactResponse (Maybe UTCTime)
describeContactResponse_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe POSIX
a -> DescribeContactResponse
s {$sel:startTime:DescribeContactResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: DescribeContactResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Tags assigned to a contact.
describeContactResponse_tags :: Lens.Lens' DescribeContactResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeContactResponse_tags :: Lens' DescribeContactResponse (Maybe (HashMap Text Text))
describeContactResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeContactResponse' :: DescribeContactResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Maybe (HashMap Text Text)
a -> DescribeContactResponse
s {$sel:tags:DescribeContactResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeContactResponse) 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

-- | The response's http status code.
describeContactResponse_httpStatus :: Lens.Lens' DescribeContactResponse Prelude.Int
describeContactResponse_httpStatus :: Lens' DescribeContactResponse Int
describeContactResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContactResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeContactResponse' :: DescribeContactResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeContactResponse
s@DescribeContactResponse' {} Int
a -> DescribeContactResponse
s {$sel:httpStatus:DescribeContactResponse' :: Int
httpStatus = Int
a} :: DescribeContactResponse)

instance Prelude.NFData DescribeContactResponse where
  rnf :: DescribeContactResponse -> ()
rnf DescribeContactResponse' {Int
Maybe [DataflowDetail]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ContactStatus
Maybe Elevation
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
startTime :: Maybe POSIX
satelliteArn :: Maybe Text
region :: Maybe Text
prePassStartTime :: Maybe POSIX
postPassEndTime :: Maybe POSIX
missionProfileArn :: Maybe Text
maximumElevation :: Maybe Elevation
groundStation :: Maybe Text
errorMessage :: Maybe Text
endTime :: Maybe POSIX
dataflowList :: Maybe [DataflowDetail]
contactStatus :: Maybe ContactStatus
contactId :: Maybe Text
$sel:httpStatus:DescribeContactResponse' :: DescribeContactResponse -> Int
$sel:tags:DescribeContactResponse' :: DescribeContactResponse -> Maybe (HashMap Text Text)
$sel:startTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
$sel:satelliteArn:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
$sel:region:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
$sel:prePassStartTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
$sel:postPassEndTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
$sel:missionProfileArn:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
$sel:maximumElevation:DescribeContactResponse' :: DescribeContactResponse -> Maybe Elevation
$sel:groundStation:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
$sel:errorMessage:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
$sel:endTime:DescribeContactResponse' :: DescribeContactResponse -> Maybe POSIX
$sel:dataflowList:DescribeContactResponse' :: DescribeContactResponse -> Maybe [DataflowDetail]
$sel:contactStatus:DescribeContactResponse' :: DescribeContactResponse -> Maybe ContactStatus
$sel:contactId:DescribeContactResponse' :: DescribeContactResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
contactId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ContactStatus
contactStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [DataflowDetail]
dataflowList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
endTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
groundStation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Elevation
maximumElevation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
missionProfileArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
postPassEndTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
prePassStartTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
region
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
satelliteArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus