{-# 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.ArtifactNamespace
-- 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.ArtifactNamespace
  ( ArtifactNamespace
      ( ..,
        ArtifactNamespace_BUILD_ID,
        ArtifactNamespace_NONE
      ),
  )
where

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

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

pattern ArtifactNamespace_BUILD_ID :: ArtifactNamespace
pattern $bArtifactNamespace_BUILD_ID :: ArtifactNamespace
$mArtifactNamespace_BUILD_ID :: forall r. ArtifactNamespace -> (Void# -> r) -> (Void# -> r) -> r
ArtifactNamespace_BUILD_ID = ArtifactNamespace' "BUILD_ID"

pattern ArtifactNamespace_NONE :: ArtifactNamespace
pattern $bArtifactNamespace_NONE :: ArtifactNamespace
$mArtifactNamespace_NONE :: forall r. ArtifactNamespace -> (Void# -> r) -> (Void# -> r) -> r
ArtifactNamespace_NONE = ArtifactNamespace' "NONE"

{-# COMPLETE
  ArtifactNamespace_BUILD_ID,
  ArtifactNamespace_NONE,
  ArtifactNamespace'
  #-}