{-# 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.CertificateStatusType
-- 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.CertificateStatusType
  ( CertificateStatusType
      ( ..,
        CertificateStatusType_ACTIVE,
        CertificateStatusType_INACTIVE,
        CertificateStatusType_PENDING_ROTATION
      ),
  )
where

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

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

pattern CertificateStatusType_ACTIVE :: CertificateStatusType
pattern $bCertificateStatusType_ACTIVE :: CertificateStatusType
$mCertificateStatusType_ACTIVE :: forall {r}.
CertificateStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateStatusType_ACTIVE = CertificateStatusType' "ACTIVE"

pattern CertificateStatusType_INACTIVE :: CertificateStatusType
pattern $bCertificateStatusType_INACTIVE :: CertificateStatusType
$mCertificateStatusType_INACTIVE :: forall {r}.
CertificateStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateStatusType_INACTIVE = CertificateStatusType' "INACTIVE"

pattern CertificateStatusType_PENDING_ROTATION :: CertificateStatusType
pattern $bCertificateStatusType_PENDING_ROTATION :: CertificateStatusType
$mCertificateStatusType_PENDING_ROTATION :: forall {r}.
CertificateStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateStatusType_PENDING_ROTATION = CertificateStatusType' "PENDING_ROTATION"

{-# COMPLETE
  CertificateStatusType_ACTIVE,
  CertificateStatusType_INACTIVE,
  CertificateStatusType_PENDING_ROTATION,
  CertificateStatusType'
  #-}