{-# 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.ProductSource
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ServiceCatalog.Types.ProductSource
  ( ProductSource
      ( ..,
        ProductSource_ACCOUNT
      ),
  )
where

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

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

pattern ProductSource_ACCOUNT :: ProductSource
pattern $bProductSource_ACCOUNT :: ProductSource
$mProductSource_ACCOUNT :: forall r. ProductSource -> (Void# -> r) -> (Void# -> r) -> r
ProductSource_ACCOUNT = ProductSource' "ACCOUNT"

{-# COMPLETE
  ProductSource_ACCOUNT,
  ProductSource'
  #-}