{-# 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.AngleUnits
-- 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.AngleUnits
  ( AngleUnits
      ( ..,
        AngleUnits_DEGREE_ANGLE,
        AngleUnits_RADIAN
      ),
  )
where

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

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

pattern AngleUnits_DEGREE_ANGLE :: AngleUnits
pattern $bAngleUnits_DEGREE_ANGLE :: AngleUnits
$mAngleUnits_DEGREE_ANGLE :: forall {r}. AngleUnits -> ((# #) -> r) -> ((# #) -> r) -> r
AngleUnits_DEGREE_ANGLE = AngleUnits' "DEGREE_ANGLE"

pattern AngleUnits_RADIAN :: AngleUnits
pattern $bAngleUnits_RADIAN :: AngleUnits
$mAngleUnits_RADIAN :: forall {r}. AngleUnits -> ((# #) -> r) -> ((# #) -> r) -> r
AngleUnits_RADIAN = AngleUnits' "RADIAN"

{-# COMPLETE
  AngleUnits_DEGREE_ANGLE,
  AngleUnits_RADIAN,
  AngleUnits'
  #-}