{-# 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.ResilienceHub.Types.PhysicalIdentifierType
-- 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.ResilienceHub.Types.PhysicalIdentifierType
  ( PhysicalIdentifierType
      ( ..,
        PhysicalIdentifierType_Arn,
        PhysicalIdentifierType_Native
      ),
  )
where

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

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

pattern PhysicalIdentifierType_Arn :: PhysicalIdentifierType
pattern $bPhysicalIdentifierType_Arn :: PhysicalIdentifierType
$mPhysicalIdentifierType_Arn :: forall {r}.
PhysicalIdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
PhysicalIdentifierType_Arn = PhysicalIdentifierType' "Arn"

pattern PhysicalIdentifierType_Native :: PhysicalIdentifierType
pattern $bPhysicalIdentifierType_Native :: PhysicalIdentifierType
$mPhysicalIdentifierType_Native :: forall {r}.
PhysicalIdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
PhysicalIdentifierType_Native = PhysicalIdentifierType' "Native"

{-# COMPLETE
  PhysicalIdentifierType_Arn,
  PhysicalIdentifierType_Native,
  PhysicalIdentifierType'
  #-}