{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.GroundStation.Types.EphemerisSource
-- 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.EphemerisSource
  ( EphemerisSource
      ( ..,
        EphemerisSource_CUSTOMER_PROVIDED,
        EphemerisSource_SPACE_TRACK
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype EphemerisSource = EphemerisSource'
  { EphemerisSource -> Text
fromEphemerisSource ::
      Data.Text
  }
  deriving stock
    ( Int -> EphemerisSource -> ShowS
[EphemerisSource] -> ShowS
EphemerisSource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EphemerisSource] -> ShowS
$cshowList :: [EphemerisSource] -> ShowS
show :: EphemerisSource -> String
$cshow :: EphemerisSource -> String
showsPrec :: Int -> EphemerisSource -> ShowS
$cshowsPrec :: Int -> EphemerisSource -> ShowS
Prelude.Show,
      ReadPrec [EphemerisSource]
ReadPrec EphemerisSource
Int -> ReadS EphemerisSource
ReadS [EphemerisSource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EphemerisSource]
$creadListPrec :: ReadPrec [EphemerisSource]
readPrec :: ReadPrec EphemerisSource
$creadPrec :: ReadPrec EphemerisSource
readList :: ReadS [EphemerisSource]
$creadList :: ReadS [EphemerisSource]
readsPrec :: Int -> ReadS EphemerisSource
$creadsPrec :: Int -> ReadS EphemerisSource
Prelude.Read,
      EphemerisSource -> EphemerisSource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EphemerisSource -> EphemerisSource -> Bool
$c/= :: EphemerisSource -> EphemerisSource -> Bool
== :: EphemerisSource -> EphemerisSource -> Bool
$c== :: EphemerisSource -> EphemerisSource -> Bool
Prelude.Eq,
      Eq EphemerisSource
EphemerisSource -> EphemerisSource -> Bool
EphemerisSource -> EphemerisSource -> Ordering
EphemerisSource -> EphemerisSource -> EphemerisSource
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: EphemerisSource -> EphemerisSource -> EphemerisSource
$cmin :: EphemerisSource -> EphemerisSource -> EphemerisSource
max :: EphemerisSource -> EphemerisSource -> EphemerisSource
$cmax :: EphemerisSource -> EphemerisSource -> EphemerisSource
>= :: EphemerisSource -> EphemerisSource -> Bool
$c>= :: EphemerisSource -> EphemerisSource -> Bool
> :: EphemerisSource -> EphemerisSource -> Bool
$c> :: EphemerisSource -> EphemerisSource -> Bool
<= :: EphemerisSource -> EphemerisSource -> Bool
$c<= :: EphemerisSource -> EphemerisSource -> Bool
< :: EphemerisSource -> EphemerisSource -> Bool
$c< :: EphemerisSource -> EphemerisSource -> Bool
compare :: EphemerisSource -> EphemerisSource -> Ordering
$ccompare :: EphemerisSource -> EphemerisSource -> Ordering
Prelude.Ord,
      forall x. Rep EphemerisSource x -> EphemerisSource
forall x. EphemerisSource -> Rep EphemerisSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EphemerisSource x -> EphemerisSource
$cfrom :: forall x. EphemerisSource -> Rep EphemerisSource x
Prelude.Generic
    )
  deriving newtype
    ( Eq EphemerisSource
Int -> EphemerisSource -> Int
EphemerisSource -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EphemerisSource -> Int
$chash :: EphemerisSource -> Int
hashWithSalt :: Int -> EphemerisSource -> Int
$chashWithSalt :: Int -> EphemerisSource -> Int
Prelude.Hashable,
      EphemerisSource -> ()
forall a. (a -> ()) -> NFData a
rnf :: EphemerisSource -> ()
$crnf :: EphemerisSource -> ()
Prelude.NFData,
      Text -> Either String EphemerisSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EphemerisSource
$cfromText :: Text -> Either String EphemerisSource
Data.FromText,
      EphemerisSource -> Text
forall a. (a -> Text) -> ToText a
toText :: EphemerisSource -> Text
$ctoText :: EphemerisSource -> Text
Data.ToText,
      EphemerisSource -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: EphemerisSource -> ByteString
$ctoBS :: EphemerisSource -> ByteString
Data.ToByteString,
      EphemerisSource -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EphemerisSource -> ByteStringBuilder
$cbuild :: EphemerisSource -> ByteStringBuilder
Data.ToLog,
      HeaderName -> EphemerisSource -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EphemerisSource -> [Header]
$ctoHeader :: HeaderName -> EphemerisSource -> [Header]
Data.ToHeader,
      EphemerisSource -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EphemerisSource -> QueryString
$ctoQuery :: EphemerisSource -> QueryString
Data.ToQuery,
      Value -> Parser [EphemerisSource]
Value -> Parser EphemerisSource
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EphemerisSource]
$cparseJSONList :: Value -> Parser [EphemerisSource]
parseJSON :: Value -> Parser EphemerisSource
$cparseJSON :: Value -> Parser EphemerisSource
Data.FromJSON,
      FromJSONKeyFunction [EphemerisSource]
FromJSONKeyFunction EphemerisSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EphemerisSource]
$cfromJSONKeyList :: FromJSONKeyFunction [EphemerisSource]
fromJSONKey :: FromJSONKeyFunction EphemerisSource
$cfromJSONKey :: FromJSONKeyFunction EphemerisSource
Data.FromJSONKey,
      [EphemerisSource] -> Encoding
[EphemerisSource] -> Value
EphemerisSource -> Encoding
EphemerisSource -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EphemerisSource] -> Encoding
$ctoEncodingList :: [EphemerisSource] -> Encoding
toJSONList :: [EphemerisSource] -> Value
$ctoJSONList :: [EphemerisSource] -> Value
toEncoding :: EphemerisSource -> Encoding
$ctoEncoding :: EphemerisSource -> Encoding
toJSON :: EphemerisSource -> Value
$ctoJSON :: EphemerisSource -> Value
Data.ToJSON,
      ToJSONKeyFunction [EphemerisSource]
ToJSONKeyFunction EphemerisSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EphemerisSource]
$ctoJSONKeyList :: ToJSONKeyFunction [EphemerisSource]
toJSONKey :: ToJSONKeyFunction EphemerisSource
$ctoJSONKey :: ToJSONKeyFunction EphemerisSource
Data.ToJSONKey,
      [Node] -> Either String EphemerisSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EphemerisSource
$cparseXML :: [Node] -> Either String EphemerisSource
Data.FromXML,
      EphemerisSource -> XML
forall a. (a -> XML) -> ToXML a
toXML :: EphemerisSource -> XML
$ctoXML :: EphemerisSource -> XML
Data.ToXML
    )

pattern EphemerisSource_CUSTOMER_PROVIDED :: EphemerisSource
pattern $bEphemerisSource_CUSTOMER_PROVIDED :: EphemerisSource
$mEphemerisSource_CUSTOMER_PROVIDED :: forall {r}. EphemerisSource -> ((# #) -> r) -> ((# #) -> r) -> r
EphemerisSource_CUSTOMER_PROVIDED = EphemerisSource' "CUSTOMER_PROVIDED"

pattern EphemerisSource_SPACE_TRACK :: EphemerisSource
pattern $bEphemerisSource_SPACE_TRACK :: EphemerisSource
$mEphemerisSource_SPACE_TRACK :: forall {r}. EphemerisSource -> ((# #) -> r) -> ((# #) -> r) -> r
EphemerisSource_SPACE_TRACK = EphemerisSource' "SPACE_TRACK"

{-# COMPLETE
  EphemerisSource_CUSTOMER_PROVIDED,
  EphemerisSource_SPACE_TRACK,
  EphemerisSource'
  #-}