{-# 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.Connect.Types.InstanceStorageResourceType
-- 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.Connect.Types.InstanceStorageResourceType
  ( InstanceStorageResourceType
      ( ..,
        InstanceStorageResourceType_AGENT_EVENTS,
        InstanceStorageResourceType_CALL_RECORDINGS,
        InstanceStorageResourceType_CHAT_TRANSCRIPTS,
        InstanceStorageResourceType_CONTACT_TRACE_RECORDS,
        InstanceStorageResourceType_MEDIA_STREAMS,
        InstanceStorageResourceType_SCHEDULED_REPORTS
      ),
  )
where

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

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

pattern InstanceStorageResourceType_AGENT_EVENTS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_AGENT_EVENTS :: InstanceStorageResourceType
$mInstanceStorageResourceType_AGENT_EVENTS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_AGENT_EVENTS = InstanceStorageResourceType' "AGENT_EVENTS"

pattern InstanceStorageResourceType_CALL_RECORDINGS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_CALL_RECORDINGS :: InstanceStorageResourceType
$mInstanceStorageResourceType_CALL_RECORDINGS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_CALL_RECORDINGS = InstanceStorageResourceType' "CALL_RECORDINGS"

pattern InstanceStorageResourceType_CHAT_TRANSCRIPTS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_CHAT_TRANSCRIPTS :: InstanceStorageResourceType
$mInstanceStorageResourceType_CHAT_TRANSCRIPTS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_CHAT_TRANSCRIPTS = InstanceStorageResourceType' "CHAT_TRANSCRIPTS"

pattern InstanceStorageResourceType_CONTACT_TRACE_RECORDS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_CONTACT_TRACE_RECORDS :: InstanceStorageResourceType
$mInstanceStorageResourceType_CONTACT_TRACE_RECORDS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_CONTACT_TRACE_RECORDS = InstanceStorageResourceType' "CONTACT_TRACE_RECORDS"

pattern InstanceStorageResourceType_MEDIA_STREAMS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_MEDIA_STREAMS :: InstanceStorageResourceType
$mInstanceStorageResourceType_MEDIA_STREAMS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_MEDIA_STREAMS = InstanceStorageResourceType' "MEDIA_STREAMS"

pattern InstanceStorageResourceType_SCHEDULED_REPORTS :: InstanceStorageResourceType
pattern $bInstanceStorageResourceType_SCHEDULED_REPORTS :: InstanceStorageResourceType
$mInstanceStorageResourceType_SCHEDULED_REPORTS :: forall r.
InstanceStorageResourceType -> (Void# -> r) -> (Void# -> r) -> r
InstanceStorageResourceType_SCHEDULED_REPORTS = InstanceStorageResourceType' "SCHEDULED_REPORTS"

{-# COMPLETE
  InstanceStorageResourceType_AGENT_EVENTS,
  InstanceStorageResourceType_CALL_RECORDINGS,
  InstanceStorageResourceType_CHAT_TRANSCRIPTS,
  InstanceStorageResourceType_CONTACT_TRACE_RECORDS,
  InstanceStorageResourceType_MEDIA_STREAMS,
  InstanceStorageResourceType_SCHEDULED_REPORTS,
  InstanceStorageResourceType'
  #-}