{-# 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.WorkDocs.Types.ResourceCollectionType
-- 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.WorkDocs.Types.ResourceCollectionType
  ( ResourceCollectionType
      ( ..,
        ResourceCollectionType_SHARED_WITH_ME
      ),
  )
where

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

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

pattern ResourceCollectionType_SHARED_WITH_ME :: ResourceCollectionType
pattern $bResourceCollectionType_SHARED_WITH_ME :: ResourceCollectionType
$mResourceCollectionType_SHARED_WITH_ME :: forall r.
ResourceCollectionType -> (Void# -> r) -> (Void# -> r) -> r
ResourceCollectionType_SHARED_WITH_ME = ResourceCollectionType' "SHARED_WITH_ME"

{-# COMPLETE
  ResourceCollectionType_SHARED_WITH_ME,
  ResourceCollectionType'
  #-}