{-# 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.ContactData
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GroundStation.Types.ContactData 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.ContactStatus
import Amazonka.GroundStation.Types.Elevation
import qualified Amazonka.Prelude as Prelude

-- | Data describing a contact.
--
-- /See:/ 'newContactData' smart constructor.
data ContactData = ContactData'
  { -- | UUID of a contact.
    ContactData -> Maybe Text
contactId :: Prelude.Maybe Prelude.Text,
    -- | Status of a contact.
    ContactData -> Maybe ContactStatus
contactStatus :: Prelude.Maybe ContactStatus,
    -- | End time of a contact in UTC.
    ContactData -> Maybe POSIX
endTime :: Prelude.Maybe Data.POSIX,
    -- | Error message of a contact.
    ContactData -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | Name of a ground station.
    ContactData -> Maybe Text
groundStation :: Prelude.Maybe Prelude.Text,
    -- | Maximum elevation angle of a contact.
    ContactData -> Maybe Elevation
maximumElevation :: Prelude.Maybe Elevation,
    -- | ARN of a mission profile.
    ContactData -> 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.
    ContactData -> 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.
    ContactData -> Maybe POSIX
prePassStartTime :: Prelude.Maybe Data.POSIX,
    -- | Region of a contact.
    ContactData -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
    -- | ARN of a satellite.
    ContactData -> Maybe Text
satelliteArn :: Prelude.Maybe Prelude.Text,
    -- | Start time of a contact in UTC.
    ContactData -> Maybe POSIX
startTime :: Prelude.Maybe Data.POSIX,
    -- | Tags assigned to a contact.
    ContactData -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ContactData -> ContactData -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContactData -> ContactData -> Bool
$c/= :: ContactData -> ContactData -> Bool
== :: ContactData -> ContactData -> Bool
$c== :: ContactData -> ContactData -> Bool
Prelude.Eq, ReadPrec [ContactData]
ReadPrec ContactData
Int -> ReadS ContactData
ReadS [ContactData]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ContactData]
$creadListPrec :: ReadPrec [ContactData]
readPrec :: ReadPrec ContactData
$creadPrec :: ReadPrec ContactData
readList :: ReadS [ContactData]
$creadList :: ReadS [ContactData]
readsPrec :: Int -> ReadS ContactData
$creadsPrec :: Int -> ReadS ContactData
Prelude.Read, Int -> ContactData -> ShowS
[ContactData] -> ShowS
ContactData -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ContactData] -> ShowS
$cshowList :: [ContactData] -> ShowS
show :: ContactData -> String
$cshow :: ContactData -> String
showsPrec :: Int -> ContactData -> ShowS
$cshowsPrec :: Int -> ContactData -> ShowS
Prelude.Show, forall x. Rep ContactData x -> ContactData
forall x. ContactData -> Rep ContactData x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ContactData x -> ContactData
$cfrom :: forall x. ContactData -> Rep ContactData x
Prelude.Generic)

-- |
-- Create a value of 'ContactData' 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', 'contactData_contactId' - UUID of a contact.
--
-- 'contactStatus', 'contactData_contactStatus' - Status of a contact.
--
-- 'endTime', 'contactData_endTime' - End time of a contact in UTC.
--
-- 'errorMessage', 'contactData_errorMessage' - Error message of a contact.
--
-- 'groundStation', 'contactData_groundStation' - Name of a ground station.
--
-- 'maximumElevation', 'contactData_maximumElevation' - Maximum elevation angle of a contact.
--
-- 'missionProfileArn', 'contactData_missionProfileArn' - ARN of a mission profile.
--
-- 'postPassEndTime', 'contactData_postPassEndTime' - Amount of time after a contact ends that you’d like to receive a
-- CloudWatch event indicating the pass has finished.
--
-- 'prePassStartTime', 'contactData_prePassStartTime' - Amount of time prior to contact start you’d like to receive a CloudWatch
-- event indicating an upcoming pass.
--
-- 'region', 'contactData_region' - Region of a contact.
--
-- 'satelliteArn', 'contactData_satelliteArn' - ARN of a satellite.
--
-- 'startTime', 'contactData_startTime' - Start time of a contact in UTC.
--
-- 'tags', 'contactData_tags' - Tags assigned to a contact.
newContactData ::
  ContactData
newContactData :: ContactData
newContactData =
  ContactData'
    { $sel:contactId:ContactData' :: Maybe Text
contactId = forall a. Maybe a
Prelude.Nothing,
      $sel:contactStatus:ContactData' :: Maybe ContactStatus
contactStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:ContactData' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:ContactData' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:groundStation:ContactData' :: Maybe Text
groundStation = forall a. Maybe a
Prelude.Nothing,
      $sel:maximumElevation:ContactData' :: Maybe Elevation
maximumElevation = forall a. Maybe a
Prelude.Nothing,
      $sel:missionProfileArn:ContactData' :: Maybe Text
missionProfileArn = forall a. Maybe a
Prelude.Nothing,
      $sel:postPassEndTime:ContactData' :: Maybe POSIX
postPassEndTime = forall a. Maybe a
Prelude.Nothing,
      $sel:prePassStartTime:ContactData' :: Maybe POSIX
prePassStartTime = forall a. Maybe a
Prelude.Nothing,
      $sel:region:ContactData' :: Maybe Text
region = forall a. Maybe a
Prelude.Nothing,
      $sel:satelliteArn:ContactData' :: Maybe Text
satelliteArn = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:ContactData' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ContactData' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing
    }

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

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

-- | End time of a contact in UTC.
contactData_endTime :: Lens.Lens' ContactData (Prelude.Maybe Prelude.UTCTime)
contactData_endTime :: Lens' ContactData (Maybe UTCTime)
contactData_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:ContactData' :: ContactData -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: ContactData
s@ContactData' {} Maybe POSIX
a -> ContactData
s {$sel:endTime:ContactData' :: Maybe POSIX
endTime = Maybe POSIX
a} :: ContactData) 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 of a contact.
contactData_errorMessage :: Lens.Lens' ContactData (Prelude.Maybe Prelude.Text)
contactData_errorMessage :: Lens' ContactData (Maybe Text)
contactData_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:ContactData' :: ContactData -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: ContactData
s@ContactData' {} Maybe Text
a -> ContactData
s {$sel:errorMessage:ContactData' :: Maybe Text
errorMessage = Maybe Text
a} :: ContactData)

-- | Name of a ground station.
contactData_groundStation :: Lens.Lens' ContactData (Prelude.Maybe Prelude.Text)
contactData_groundStation :: Lens' ContactData (Maybe Text)
contactData_groundStation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe Text
groundStation :: Maybe Text
$sel:groundStation:ContactData' :: ContactData -> Maybe Text
groundStation} -> Maybe Text
groundStation) (\s :: ContactData
s@ContactData' {} Maybe Text
a -> ContactData
s {$sel:groundStation:ContactData' :: Maybe Text
groundStation = Maybe Text
a} :: ContactData)

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

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

-- | Amount of time after a contact ends that you’d like to receive a
-- CloudWatch event indicating the pass has finished.
contactData_postPassEndTime :: Lens.Lens' ContactData (Prelude.Maybe Prelude.UTCTime)
contactData_postPassEndTime :: Lens' ContactData (Maybe UTCTime)
contactData_postPassEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe POSIX
postPassEndTime :: Maybe POSIX
$sel:postPassEndTime:ContactData' :: ContactData -> Maybe POSIX
postPassEndTime} -> Maybe POSIX
postPassEndTime) (\s :: ContactData
s@ContactData' {} Maybe POSIX
a -> ContactData
s {$sel:postPassEndTime:ContactData' :: Maybe POSIX
postPassEndTime = Maybe POSIX
a} :: ContactData) 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.
contactData_prePassStartTime :: Lens.Lens' ContactData (Prelude.Maybe Prelude.UTCTime)
contactData_prePassStartTime :: Lens' ContactData (Maybe UTCTime)
contactData_prePassStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe POSIX
prePassStartTime :: Maybe POSIX
$sel:prePassStartTime:ContactData' :: ContactData -> Maybe POSIX
prePassStartTime} -> Maybe POSIX
prePassStartTime) (\s :: ContactData
s@ContactData' {} Maybe POSIX
a -> ContactData
s {$sel:prePassStartTime:ContactData' :: Maybe POSIX
prePassStartTime = Maybe POSIX
a} :: ContactData) 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.
contactData_region :: Lens.Lens' ContactData (Prelude.Maybe Prelude.Text)
contactData_region :: Lens' ContactData (Maybe Text)
contactData_region = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe Text
region :: Maybe Text
$sel:region:ContactData' :: ContactData -> Maybe Text
region} -> Maybe Text
region) (\s :: ContactData
s@ContactData' {} Maybe Text
a -> ContactData
s {$sel:region:ContactData' :: Maybe Text
region = Maybe Text
a} :: ContactData)

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

-- | Start time of a contact in UTC.
contactData_startTime :: Lens.Lens' ContactData (Prelude.Maybe Prelude.UTCTime)
contactData_startTime :: Lens' ContactData (Maybe UTCTime)
contactData_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:ContactData' :: ContactData -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: ContactData
s@ContactData' {} Maybe POSIX
a -> ContactData
s {$sel:startTime:ContactData' :: Maybe POSIX
startTime = Maybe POSIX
a} :: ContactData) 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.
contactData_tags :: Lens.Lens' ContactData (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
contactData_tags :: Lens' ContactData (Maybe (HashMap Text Text))
contactData_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContactData' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ContactData' :: ContactData -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ContactData
s@ContactData' {} Maybe (HashMap Text Text)
a -> ContactData
s {$sel:tags:ContactData' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ContactData) 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

instance Data.FromJSON ContactData where
  parseJSON :: Value -> Parser ContactData
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ContactData"
      ( \Object
x ->
          Maybe Text
-> Maybe ContactStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Elevation
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> ContactData
ContactData'
            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
"contactId")
            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
"contactStatus")
            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
"endTime")
            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
"errorMessage")
            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
"groundStation")
            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
"maximumElevation")
            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
"missionProfileArn")
            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
"postPassEndTime")
            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
"prePassStartTime")
            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
"region")
            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
"satelliteArn")
            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
"startTime")
            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
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ContactData where
  hashWithSalt :: Int -> ContactData -> Int
hashWithSalt Int
_salt ContactData' {Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ContactStatus
Maybe Elevation
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
contactStatus :: Maybe ContactStatus
contactId :: Maybe Text
$sel:tags:ContactData' :: ContactData -> Maybe (HashMap Text Text)
$sel:startTime:ContactData' :: ContactData -> Maybe POSIX
$sel:satelliteArn:ContactData' :: ContactData -> Maybe Text
$sel:region:ContactData' :: ContactData -> Maybe Text
$sel:prePassStartTime:ContactData' :: ContactData -> Maybe POSIX
$sel:postPassEndTime:ContactData' :: ContactData -> Maybe POSIX
$sel:missionProfileArn:ContactData' :: ContactData -> Maybe Text
$sel:maximumElevation:ContactData' :: ContactData -> Maybe Elevation
$sel:groundStation:ContactData' :: ContactData -> Maybe Text
$sel:errorMessage:ContactData' :: ContactData -> Maybe Text
$sel:endTime:ContactData' :: ContactData -> Maybe POSIX
$sel:contactStatus:ContactData' :: ContactData -> Maybe ContactStatus
$sel:contactId:ContactData' :: ContactData -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
contactId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ContactStatus
contactStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
endTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
groundStation
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Elevation
maximumElevation
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
missionProfileArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
postPassEndTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
prePassStartTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
region
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
satelliteArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags

instance Prelude.NFData ContactData where
  rnf :: ContactData -> ()
rnf ContactData' {Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ContactStatus
Maybe Elevation
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
contactStatus :: Maybe ContactStatus
contactId :: Maybe Text
$sel:tags:ContactData' :: ContactData -> Maybe (HashMap Text Text)
$sel:startTime:ContactData' :: ContactData -> Maybe POSIX
$sel:satelliteArn:ContactData' :: ContactData -> Maybe Text
$sel:region:ContactData' :: ContactData -> Maybe Text
$sel:prePassStartTime:ContactData' :: ContactData -> Maybe POSIX
$sel:postPassEndTime:ContactData' :: ContactData -> Maybe POSIX
$sel:missionProfileArn:ContactData' :: ContactData -> Maybe Text
$sel:maximumElevation:ContactData' :: ContactData -> Maybe Elevation
$sel:groundStation:ContactData' :: ContactData -> Maybe Text
$sel:errorMessage:ContactData' :: ContactData -> Maybe Text
$sel:endTime:ContactData' :: ContactData -> Maybe POSIX
$sel:contactStatus:ContactData' :: ContactData -> Maybe ContactStatus
$sel:contactId:ContactData' :: ContactData -> 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 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