{-# 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.CopyProductStatus
-- 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.CopyProductStatus
  ( CopyProductStatus
      ( ..,
        CopyProductStatus_FAILED,
        CopyProductStatus_IN_PROGRESS,
        CopyProductStatus_SUCCEEDED
      ),
  )
where

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

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

pattern CopyProductStatus_FAILED :: CopyProductStatus
pattern $bCopyProductStatus_FAILED :: CopyProductStatus
$mCopyProductStatus_FAILED :: forall r. CopyProductStatus -> (Void# -> r) -> (Void# -> r) -> r
CopyProductStatus_FAILED = CopyProductStatus' "FAILED"

pattern CopyProductStatus_IN_PROGRESS :: CopyProductStatus
pattern $bCopyProductStatus_IN_PROGRESS :: CopyProductStatus
$mCopyProductStatus_IN_PROGRESS :: forall r. CopyProductStatus -> (Void# -> r) -> (Void# -> r) -> r
CopyProductStatus_IN_PROGRESS = CopyProductStatus' "IN_PROGRESS"

pattern CopyProductStatus_SUCCEEDED :: CopyProductStatus
pattern $bCopyProductStatus_SUCCEEDED :: CopyProductStatus
$mCopyProductStatus_SUCCEEDED :: forall r. CopyProductStatus -> (Void# -> r) -> (Void# -> r) -> r
CopyProductStatus_SUCCEEDED = CopyProductStatus' "SUCCEEDED"

{-# COMPLETE
  CopyProductStatus_FAILED,
  CopyProductStatus_IN_PROGRESS,
  CopyProductStatus_SUCCEEDED,
  CopyProductStatus'
  #-}