{-# 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.VisibilityType
-- 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.VisibilityType
  ( VisibilityType
      ( ..,
        VisibilityType_PRIVATE,
        VisibilityType_PUBLIC,
        VisibilityType_SHARED
      ),
  )
where

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

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

pattern VisibilityType_PRIVATE :: VisibilityType
pattern $bVisibilityType_PRIVATE :: VisibilityType
$mVisibilityType_PRIVATE :: forall r. VisibilityType -> (Void# -> r) -> (Void# -> r) -> r
VisibilityType_PRIVATE = VisibilityType' "PRIVATE"

pattern VisibilityType_PUBLIC :: VisibilityType
pattern $bVisibilityType_PUBLIC :: VisibilityType
$mVisibilityType_PUBLIC :: forall r. VisibilityType -> (Void# -> r) -> (Void# -> r) -> r
VisibilityType_PUBLIC = VisibilityType' "PUBLIC"

pattern VisibilityType_SHARED :: VisibilityType
pattern $bVisibilityType_SHARED :: VisibilityType
$mVisibilityType_SHARED :: forall r. VisibilityType -> (Void# -> r) -> (Void# -> r) -> r
VisibilityType_SHARED = VisibilityType' "SHARED"

{-# COMPLETE
  VisibilityType_PRIVATE,
  VisibilityType_PUBLIC,
  VisibilityType_SHARED,
  VisibilityType'
  #-}