{-# 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.PortfolioShareType
-- 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.PortfolioShareType
  ( PortfolioShareType
      ( ..,
        PortfolioShareType_AWS_ORGANIZATIONS,
        PortfolioShareType_AWS_SERVICECATALOG,
        PortfolioShareType_IMPORTED
      ),
  )
where

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

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

pattern PortfolioShareType_AWS_ORGANIZATIONS :: PortfolioShareType
pattern $bPortfolioShareType_AWS_ORGANIZATIONS :: PortfolioShareType
$mPortfolioShareType_AWS_ORGANIZATIONS :: forall {r}. PortfolioShareType -> ((# #) -> r) -> ((# #) -> r) -> r
PortfolioShareType_AWS_ORGANIZATIONS = PortfolioShareType' "AWS_ORGANIZATIONS"

pattern PortfolioShareType_AWS_SERVICECATALOG :: PortfolioShareType
pattern $bPortfolioShareType_AWS_SERVICECATALOG :: PortfolioShareType
$mPortfolioShareType_AWS_SERVICECATALOG :: forall {r}. PortfolioShareType -> ((# #) -> r) -> ((# #) -> r) -> r
PortfolioShareType_AWS_SERVICECATALOG = PortfolioShareType' "AWS_SERVICECATALOG"

pattern PortfolioShareType_IMPORTED :: PortfolioShareType
pattern $bPortfolioShareType_IMPORTED :: PortfolioShareType
$mPortfolioShareType_IMPORTED :: forall {r}. PortfolioShareType -> ((# #) -> r) -> ((# #) -> r) -> r
PortfolioShareType_IMPORTED = PortfolioShareType' "IMPORTED"

{-# COMPLETE
  PortfolioShareType_AWS_ORGANIZATIONS,
  PortfolioShareType_AWS_SERVICECATALOG,
  PortfolioShareType_IMPORTED,
  PortfolioShareType'
  #-}