{-# 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.Transfer.Types.AgreementStatusType
-- 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.Transfer.Types.AgreementStatusType
  ( AgreementStatusType
      ( ..,
        AgreementStatusType_ACTIVE,
        AgreementStatusType_INACTIVE
      ),
  )
where

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

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

pattern AgreementStatusType_ACTIVE :: AgreementStatusType
pattern $bAgreementStatusType_ACTIVE :: AgreementStatusType
$mAgreementStatusType_ACTIVE :: forall {r}.
AgreementStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AgreementStatusType_ACTIVE = AgreementStatusType' "ACTIVE"

pattern AgreementStatusType_INACTIVE :: AgreementStatusType
pattern $bAgreementStatusType_INACTIVE :: AgreementStatusType
$mAgreementStatusType_INACTIVE :: forall {r}.
AgreementStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AgreementStatusType_INACTIVE = AgreementStatusType' "INACTIVE"

{-# COMPLETE
  AgreementStatusType_ACTIVE,
  AgreementStatusType_INACTIVE,
  AgreementStatusType'
  #-}