{-# 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.ContactStatus
-- 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.ContactStatus
  ( ContactStatus
      ( ..,
        ContactStatus_AVAILABLE,
        ContactStatus_AWS_CANCELLED,
        ContactStatus_AWS_FAILED,
        ContactStatus_CANCELLED,
        ContactStatus_CANCELLING,
        ContactStatus_COMPLETED,
        ContactStatus_FAILED,
        ContactStatus_FAILED_TO_SCHEDULE,
        ContactStatus_PASS,
        ContactStatus_POSTPASS,
        ContactStatus_PREPASS,
        ContactStatus_SCHEDULED,
        ContactStatus_SCHEDULING
      ),
  )
where

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

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

pattern ContactStatus_AVAILABLE :: ContactStatus
pattern $bContactStatus_AVAILABLE :: ContactStatus
$mContactStatus_AVAILABLE :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_AVAILABLE = ContactStatus' "AVAILABLE"

pattern ContactStatus_AWS_CANCELLED :: ContactStatus
pattern $bContactStatus_AWS_CANCELLED :: ContactStatus
$mContactStatus_AWS_CANCELLED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_AWS_CANCELLED = ContactStatus' "AWS_CANCELLED"

pattern ContactStatus_AWS_FAILED :: ContactStatus
pattern $bContactStatus_AWS_FAILED :: ContactStatus
$mContactStatus_AWS_FAILED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_AWS_FAILED = ContactStatus' "AWS_FAILED"

pattern ContactStatus_CANCELLED :: ContactStatus
pattern $bContactStatus_CANCELLED :: ContactStatus
$mContactStatus_CANCELLED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_CANCELLED = ContactStatus' "CANCELLED"

pattern ContactStatus_CANCELLING :: ContactStatus
pattern $bContactStatus_CANCELLING :: ContactStatus
$mContactStatus_CANCELLING :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_CANCELLING = ContactStatus' "CANCELLING"

pattern ContactStatus_COMPLETED :: ContactStatus
pattern $bContactStatus_COMPLETED :: ContactStatus
$mContactStatus_COMPLETED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_COMPLETED = ContactStatus' "COMPLETED"

pattern ContactStatus_FAILED :: ContactStatus
pattern $bContactStatus_FAILED :: ContactStatus
$mContactStatus_FAILED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_FAILED = ContactStatus' "FAILED"

pattern ContactStatus_FAILED_TO_SCHEDULE :: ContactStatus
pattern $bContactStatus_FAILED_TO_SCHEDULE :: ContactStatus
$mContactStatus_FAILED_TO_SCHEDULE :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_FAILED_TO_SCHEDULE = ContactStatus' "FAILED_TO_SCHEDULE"

pattern ContactStatus_PASS :: ContactStatus
pattern $bContactStatus_PASS :: ContactStatus
$mContactStatus_PASS :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_PASS = ContactStatus' "PASS"

pattern ContactStatus_POSTPASS :: ContactStatus
pattern $bContactStatus_POSTPASS :: ContactStatus
$mContactStatus_POSTPASS :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_POSTPASS = ContactStatus' "POSTPASS"

pattern ContactStatus_PREPASS :: ContactStatus
pattern $bContactStatus_PREPASS :: ContactStatus
$mContactStatus_PREPASS :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_PREPASS = ContactStatus' "PREPASS"

pattern ContactStatus_SCHEDULED :: ContactStatus
pattern $bContactStatus_SCHEDULED :: ContactStatus
$mContactStatus_SCHEDULED :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_SCHEDULED = ContactStatus' "SCHEDULED"

pattern ContactStatus_SCHEDULING :: ContactStatus
pattern $bContactStatus_SCHEDULING :: ContactStatus
$mContactStatus_SCHEDULING :: forall r. ContactStatus -> (Void# -> r) -> (Void# -> r) -> r
ContactStatus_SCHEDULING = ContactStatus' "SCHEDULING"

{-# COMPLETE
  ContactStatus_AVAILABLE,
  ContactStatus_AWS_CANCELLED,
  ContactStatus_AWS_FAILED,
  ContactStatus_CANCELLED,
  ContactStatus_CANCELLING,
  ContactStatus_COMPLETED,
  ContactStatus_FAILED,
  ContactStatus_FAILED_TO_SCHEDULE,
  ContactStatus_PASS,
  ContactStatus_POSTPASS,
  ContactStatus_PREPASS,
  ContactStatus_SCHEDULED,
  ContactStatus_SCHEDULING,
  ContactStatus'
  #-}