{-# 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-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.AppStream.Types.StorageConnectorType
  ( StorageConnectorType
      ( ..,
        StorageConnectorType_GOOGLE_DRIVE,
        StorageConnectorType_HOMEFOLDERS,
        StorageConnectorType_ONE_DRIVE
      ),
  )
where

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

-- | The type of storage connector.
newtype StorageConnectorType = StorageConnectorType'
  { StorageConnectorType -> Text
fromStorageConnectorType ::
      Core.Text
  }
  deriving stock
    ( Int -> StorageConnectorType -> ShowS
[StorageConnectorType] -> ShowS
StorageConnectorType -> String
(Int -> StorageConnectorType -> ShowS)
-> (StorageConnectorType -> String)
-> ([StorageConnectorType] -> ShowS)
-> Show StorageConnectorType
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]
(Int -> ReadS StorageConnectorType)
-> ReadS [StorageConnectorType]
-> ReadPrec StorageConnectorType
-> ReadPrec [StorageConnectorType]
-> Read 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
(StorageConnectorType -> StorageConnectorType -> Bool)
-> (StorageConnectorType -> StorageConnectorType -> Bool)
-> Eq StorageConnectorType
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
Eq StorageConnectorType
-> (StorageConnectorType -> StorageConnectorType -> Ordering)
-> (StorageConnectorType -> StorageConnectorType -> Bool)
-> (StorageConnectorType -> StorageConnectorType -> Bool)
-> (StorageConnectorType -> StorageConnectorType -> Bool)
-> (StorageConnectorType -> StorageConnectorType -> Bool)
-> (StorageConnectorType
    -> StorageConnectorType -> StorageConnectorType)
-> (StorageConnectorType
    -> StorageConnectorType -> StorageConnectorType)
-> Ord 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
$cp1Ord :: Eq StorageConnectorType
Prelude.Ord,
      (forall x. StorageConnectorType -> Rep StorageConnectorType x)
-> (forall x. Rep StorageConnectorType x -> StorageConnectorType)
-> Generic StorageConnectorType
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
    ( Int -> StorageConnectorType -> Int
StorageConnectorType -> Int
(Int -> StorageConnectorType -> Int)
-> (StorageConnectorType -> Int) -> Hashable StorageConnectorType
forall 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 -> ()
(StorageConnectorType -> ()) -> NFData StorageConnectorType
forall a. (a -> ()) -> NFData a
rnf :: StorageConnectorType -> ()
$crnf :: StorageConnectorType -> ()
Prelude.NFData,
      Text -> Either String StorageConnectorType
(Text -> Either String StorageConnectorType)
-> FromText StorageConnectorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StorageConnectorType
$cfromText :: Text -> Either String StorageConnectorType
Core.FromText,
      StorageConnectorType -> Text
(StorageConnectorType -> Text) -> ToText StorageConnectorType
forall a. (a -> Text) -> ToText a
toText :: StorageConnectorType -> Text
$ctoText :: StorageConnectorType -> Text
Core.ToText,
      StorageConnectorType -> ByteString
(StorageConnectorType -> ByteString)
-> ToByteString StorageConnectorType
forall a. (a -> ByteString) -> ToByteString a
toBS :: StorageConnectorType -> ByteString
$ctoBS :: StorageConnectorType -> ByteString
Core.ToByteString,
      StorageConnectorType -> ByteStringBuilder
(StorageConnectorType -> ByteStringBuilder)
-> ToLog StorageConnectorType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StorageConnectorType -> ByteStringBuilder
$cbuild :: StorageConnectorType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> StorageConnectorType -> [Header]
(HeaderName -> StorageConnectorType -> [Header])
-> ToHeader StorageConnectorType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StorageConnectorType -> [Header]
$ctoHeader :: HeaderName -> StorageConnectorType -> [Header]
Core.ToHeader,
      StorageConnectorType -> QueryString
(StorageConnectorType -> QueryString)
-> ToQuery StorageConnectorType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StorageConnectorType -> QueryString
$ctoQuery :: StorageConnectorType -> QueryString
Core.ToQuery,
      Value -> Parser [StorageConnectorType]
Value -> Parser StorageConnectorType
(Value -> Parser StorageConnectorType)
-> (Value -> Parser [StorageConnectorType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [StorageConnectorType]
FromJSONKeyFunction StorageConnectorType
FromJSONKeyFunction StorageConnectorType
-> FromJSONKeyFunction [StorageConnectorType]
-> FromJSONKey StorageConnectorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StorageConnectorType]
$cfromJSONKeyList :: FromJSONKeyFunction [StorageConnectorType]
fromJSONKey :: FromJSONKeyFunction StorageConnectorType
$cfromJSONKey :: FromJSONKeyFunction StorageConnectorType
Core.FromJSONKey,
      [StorageConnectorType] -> Encoding
[StorageConnectorType] -> Value
StorageConnectorType -> Encoding
StorageConnectorType -> Value
(StorageConnectorType -> Value)
-> (StorageConnectorType -> Encoding)
-> ([StorageConnectorType] -> Value)
-> ([StorageConnectorType] -> Encoding)
-> ToJSON StorageConnectorType
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
Core.ToJSON,
      ToJSONKeyFunction [StorageConnectorType]
ToJSONKeyFunction StorageConnectorType
ToJSONKeyFunction StorageConnectorType
-> ToJSONKeyFunction [StorageConnectorType]
-> ToJSONKey StorageConnectorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StorageConnectorType]
$ctoJSONKeyList :: ToJSONKeyFunction [StorageConnectorType]
toJSONKey :: ToJSONKeyFunction StorageConnectorType
$ctoJSONKey :: ToJSONKeyFunction StorageConnectorType
Core.ToJSONKey,
      [Node] -> Either String StorageConnectorType
([Node] -> Either String StorageConnectorType)
-> FromXML StorageConnectorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StorageConnectorType
$cparseXML :: [Node] -> Either String StorageConnectorType
Core.FromXML,
      StorageConnectorType -> XML
(StorageConnectorType -> XML) -> ToXML StorageConnectorType
forall a. (a -> XML) -> ToXML a
toXML :: StorageConnectorType -> XML
$ctoXML :: StorageConnectorType -> XML
Core.ToXML
    )

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

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

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

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