{-# 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.StreamView
-- 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.StreamView
  ( StreamView
      ( ..,
        StreamView_APP,
        StreamView_DESKTOP
      ),
  )
where

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

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

pattern StreamView_APP :: StreamView
pattern $bStreamView_APP :: StreamView
$mStreamView_APP :: forall r. StreamView -> (Void# -> r) -> (Void# -> r) -> r
StreamView_APP = StreamView' "APP"

pattern StreamView_DESKTOP :: StreamView
pattern $bStreamView_DESKTOP :: StreamView
$mStreamView_DESKTOP :: forall r. StreamView -> (Void# -> r) -> (Void# -> r) -> r
StreamView_DESKTOP = StreamView' "DESKTOP"

{-# COMPLETE
  StreamView_APP,
  StreamView_DESKTOP,
  StreamView'
  #-}