{-# 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.ServiceCatalog.Types.OrganizationNodeType
-- 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.ServiceCatalog.Types.OrganizationNodeType
  ( OrganizationNodeType
      ( ..,
        OrganizationNodeType_ACCOUNT,
        OrganizationNodeType_ORGANIZATION,
        OrganizationNodeType_ORGANIZATIONAL_UNIT
      ),
  )
where

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

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

pattern OrganizationNodeType_ACCOUNT :: OrganizationNodeType
pattern $bOrganizationNodeType_ACCOUNT :: OrganizationNodeType
$mOrganizationNodeType_ACCOUNT :: forall {r}.
OrganizationNodeType -> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationNodeType_ACCOUNT = OrganizationNodeType' "ACCOUNT"

pattern OrganizationNodeType_ORGANIZATION :: OrganizationNodeType
pattern $bOrganizationNodeType_ORGANIZATION :: OrganizationNodeType
$mOrganizationNodeType_ORGANIZATION :: forall {r}.
OrganizationNodeType -> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationNodeType_ORGANIZATION = OrganizationNodeType' "ORGANIZATION"

pattern OrganizationNodeType_ORGANIZATIONAL_UNIT :: OrganizationNodeType
pattern $bOrganizationNodeType_ORGANIZATIONAL_UNIT :: OrganizationNodeType
$mOrganizationNodeType_ORGANIZATIONAL_UNIT :: forall {r}.
OrganizationNodeType -> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationNodeType_ORGANIZATIONAL_UNIT = OrganizationNodeType' "ORGANIZATIONAL_UNIT"

{-# COMPLETE
  OrganizationNodeType_ACCOUNT,
  OrganizationNodeType_ORGANIZATION,
  OrganizationNodeType_ORGANIZATIONAL_UNIT,
  OrganizationNodeType'
  #-}