{-# 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.StorageGateway.Types.HostEnvironment
-- 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.StorageGateway.Types.HostEnvironment
  ( HostEnvironment
      ( ..,
        HostEnvironment_EC2,
        HostEnvironment_HYPER_V,
        HostEnvironment_KVM,
        HostEnvironment_OTHER,
        HostEnvironment_VMWARE
      ),
  )
where

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

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

pattern HostEnvironment_EC2 :: HostEnvironment
pattern $bHostEnvironment_EC2 :: HostEnvironment
$mHostEnvironment_EC2 :: forall r. HostEnvironment -> (Void# -> r) -> (Void# -> r) -> r
HostEnvironment_EC2 = HostEnvironment' "EC2"

pattern HostEnvironment_HYPER_V :: HostEnvironment
pattern $bHostEnvironment_HYPER_V :: HostEnvironment
$mHostEnvironment_HYPER_V :: forall r. HostEnvironment -> (Void# -> r) -> (Void# -> r) -> r
HostEnvironment_HYPER_V = HostEnvironment' "HYPER-V"

pattern HostEnvironment_KVM :: HostEnvironment
pattern $bHostEnvironment_KVM :: HostEnvironment
$mHostEnvironment_KVM :: forall r. HostEnvironment -> (Void# -> r) -> (Void# -> r) -> r
HostEnvironment_KVM = HostEnvironment' "KVM"

pattern HostEnvironment_OTHER :: HostEnvironment
pattern $bHostEnvironment_OTHER :: HostEnvironment
$mHostEnvironment_OTHER :: forall r. HostEnvironment -> (Void# -> r) -> (Void# -> r) -> r
HostEnvironment_OTHER = HostEnvironment' "OTHER"

pattern HostEnvironment_VMWARE :: HostEnvironment
pattern $bHostEnvironment_VMWARE :: HostEnvironment
$mHostEnvironment_VMWARE :: forall r. HostEnvironment -> (Void# -> r) -> (Void# -> r) -> r
HostEnvironment_VMWARE = HostEnvironment' "VMWARE"

{-# COMPLETE
  HostEnvironment_EC2,
  HostEnvironment_HYPER_V,
  HostEnvironment_KVM,
  HostEnvironment_OTHER,
  HostEnvironment_VMWARE,
  HostEnvironment'
  #-}