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

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

newtype VisibilityType = VisibilityType'
  { VisibilityType -> Text
fromVisibilityType ::
      Data.Text
  }
  deriving stock
    ( Int -> VisibilityType -> ShowS
[VisibilityType] -> ShowS
VisibilityType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq VisibilityType
Int -> VisibilityType -> Int
VisibilityType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: VisibilityType -> ()
$crnf :: VisibilityType -> ()
Prelude.NFData,
      Text -> Either String VisibilityType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VisibilityType
$cfromText :: Text -> Either String VisibilityType
Data.FromText,
      VisibilityType -> Text
forall a. (a -> Text) -> ToText a
toText :: VisibilityType -> Text
$ctoText :: VisibilityType -> Text
Data.ToText,
      VisibilityType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VisibilityType -> ByteString
$ctoBS :: VisibilityType -> ByteString
Data.ToByteString,
      VisibilityType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VisibilityType -> ByteStringBuilder
$cbuild :: VisibilityType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VisibilityType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VisibilityType -> [Header]
$ctoHeader :: HeaderName -> VisibilityType -> [Header]
Data.ToHeader,
      VisibilityType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VisibilityType -> QueryString
$ctoQuery :: VisibilityType -> QueryString
Data.ToQuery,
      Value -> Parser [VisibilityType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [VisibilityType]
FromJSONKeyFunction VisibilityType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VisibilityType]
$cfromJSONKeyList :: FromJSONKeyFunction [VisibilityType]
fromJSONKey :: FromJSONKeyFunction VisibilityType
$cfromJSONKey :: FromJSONKeyFunction VisibilityType
Data.FromJSONKey,
      [VisibilityType] -> Encoding
[VisibilityType] -> Value
VisibilityType -> Encoding
VisibilityType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [VisibilityType]
ToJSONKeyFunction VisibilityType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VisibilityType]
$ctoJSONKeyList :: ToJSONKeyFunction [VisibilityType]
toJSONKey :: ToJSONKeyFunction VisibilityType
$ctoJSONKey :: ToJSONKeyFunction VisibilityType
Data.ToJSONKey,
      [Node] -> Either String VisibilityType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VisibilityType
$cparseXML :: [Node] -> Either String VisibilityType
Data.FromXML,
      VisibilityType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VisibilityType -> XML
$ctoXML :: VisibilityType -> XML
Data.ToXML
    )

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

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

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

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