{-# 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.CopyOption
-- 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.CopyOption
  ( CopyOption
      ( ..,
        CopyOption_CopyTags
      ),
  )
where

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

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

pattern CopyOption_CopyTags :: CopyOption
pattern $bCopyOption_CopyTags :: CopyOption
$mCopyOption_CopyTags :: forall r. CopyOption -> (Void# -> r) -> (Void# -> r) -> r
CopyOption_CopyTags = CopyOption' "CopyTags"

{-# COMPLETE
  CopyOption_CopyTags,
  CopyOption'
  #-}