{-# 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.AppStream.Types.StorageConnectorType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AppStream.Types.StorageConnectorType
  ( StorageConnectorType
      ( ..,
        StorageConnectorType_GOOGLE_DRIVE,
        StorageConnectorType_HOMEFOLDERS,
        StorageConnectorType_ONE_DRIVE
      ),
  )
where

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

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

pattern StorageConnectorType_GOOGLE_DRIVE :: StorageConnectorType
pattern $bStorageConnectorType_GOOGLE_DRIVE :: StorageConnectorType
$mStorageConnectorType_GOOGLE_DRIVE :: forall {r}.
StorageConnectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StorageConnectorType_GOOGLE_DRIVE = StorageConnectorType' "GOOGLE_DRIVE"

pattern StorageConnectorType_HOMEFOLDERS :: StorageConnectorType
pattern $bStorageConnectorType_HOMEFOLDERS :: StorageConnectorType
$mStorageConnectorType_HOMEFOLDERS :: forall {r}.
StorageConnectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StorageConnectorType_HOMEFOLDERS = StorageConnectorType' "HOMEFOLDERS"

pattern StorageConnectorType_ONE_DRIVE :: StorageConnectorType
pattern $bStorageConnectorType_ONE_DRIVE :: StorageConnectorType
$mStorageConnectorType_ONE_DRIVE :: forall {r}.
StorageConnectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StorageConnectorType_ONE_DRIVE = StorageConnectorType' "ONE_DRIVE"

{-# COMPLETE
  StorageConnectorType_GOOGLE_DRIVE,
  StorageConnectorType_HOMEFOLDERS,
  StorageConnectorType_ONE_DRIVE,
  StorageConnectorType'
  #-}