{-# 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.CodeBuild.Types.ProjectVisibilityType
-- 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.CodeBuild.Types.ProjectVisibilityType
  ( ProjectVisibilityType
      ( ..,
        ProjectVisibilityType_PRIVATE,
        ProjectVisibilityType_PUBLIC_READ
      ),
  )
where

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

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

pattern ProjectVisibilityType_PRIVATE :: ProjectVisibilityType
pattern $bProjectVisibilityType_PRIVATE :: ProjectVisibilityType
$mProjectVisibilityType_PRIVATE :: forall r.
ProjectVisibilityType -> (Void# -> r) -> (Void# -> r) -> r
ProjectVisibilityType_PRIVATE = ProjectVisibilityType' "PRIVATE"

pattern ProjectVisibilityType_PUBLIC_READ :: ProjectVisibilityType
pattern $bProjectVisibilityType_PUBLIC_READ :: ProjectVisibilityType
$mProjectVisibilityType_PUBLIC_READ :: forall r.
ProjectVisibilityType -> (Void# -> r) -> (Void# -> r) -> r
ProjectVisibilityType_PUBLIC_READ = ProjectVisibilityType' "PUBLIC_READ"

{-# COMPLETE
  ProjectVisibilityType_PRIVATE,
  ProjectVisibilityType_PUBLIC_READ,
  ProjectVisibilityType'
  #-}