{-# 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.Polarization
-- 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.Polarization
  ( Polarization
      ( ..,
        Polarization_LEFT_HAND,
        Polarization_NONE,
        Polarization_RIGHT_HAND
      ),
  )
where

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

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

pattern Polarization_LEFT_HAND :: Polarization
pattern $bPolarization_LEFT_HAND :: Polarization
$mPolarization_LEFT_HAND :: forall r. Polarization -> (Void# -> r) -> (Void# -> r) -> r
Polarization_LEFT_HAND = Polarization' "LEFT_HAND"

pattern Polarization_NONE :: Polarization
pattern $bPolarization_NONE :: Polarization
$mPolarization_NONE :: forall r. Polarization -> (Void# -> r) -> (Void# -> r) -> r
Polarization_NONE = Polarization' "NONE"

pattern Polarization_RIGHT_HAND :: Polarization
pattern $bPolarization_RIGHT_HAND :: Polarization
$mPolarization_RIGHT_HAND :: forall r. Polarization -> (Void# -> r) -> (Void# -> r) -> r
Polarization_RIGHT_HAND = Polarization' "RIGHT_HAND"

{-# COMPLETE
  Polarization_LEFT_HAND,
  Polarization_NONE,
  Polarization_RIGHT_HAND,
  Polarization'
  #-}