{-# 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.Lightsail.Types.LoadBalancerTlsCertificateDomainStatus
-- 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.Lightsail.Types.LoadBalancerTlsCertificateDomainStatus
  ( LoadBalancerTlsCertificateDomainStatus
      ( ..,
        LoadBalancerTlsCertificateDomainStatus_FAILED,
        LoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION,
        LoadBalancerTlsCertificateDomainStatus_SUCCESS
      ),
  )
where

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

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

pattern LoadBalancerTlsCertificateDomainStatus_FAILED :: LoadBalancerTlsCertificateDomainStatus
pattern $bLoadBalancerTlsCertificateDomainStatus_FAILED :: LoadBalancerTlsCertificateDomainStatus
$mLoadBalancerTlsCertificateDomainStatus_FAILED :: forall {r}.
LoadBalancerTlsCertificateDomainStatus
-> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerTlsCertificateDomainStatus_FAILED = LoadBalancerTlsCertificateDomainStatus' "FAILED"

pattern LoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateDomainStatus
pattern $bLoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateDomainStatus
$mLoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION :: forall {r}.
LoadBalancerTlsCertificateDomainStatus
-> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION = LoadBalancerTlsCertificateDomainStatus' "PENDING_VALIDATION"

pattern LoadBalancerTlsCertificateDomainStatus_SUCCESS :: LoadBalancerTlsCertificateDomainStatus
pattern $bLoadBalancerTlsCertificateDomainStatus_SUCCESS :: LoadBalancerTlsCertificateDomainStatus
$mLoadBalancerTlsCertificateDomainStatus_SUCCESS :: forall {r}.
LoadBalancerTlsCertificateDomainStatus
-> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerTlsCertificateDomainStatus_SUCCESS = LoadBalancerTlsCertificateDomainStatus' "SUCCESS"

{-# COMPLETE
  LoadBalancerTlsCertificateDomainStatus_FAILED,
  LoadBalancerTlsCertificateDomainStatus_PENDING_VALIDATION,
  LoadBalancerTlsCertificateDomainStatus_SUCCESS,
  LoadBalancerTlsCertificateDomainStatus'
  #-}