{-# 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.CodeGuruReviewer.Types.VendorName
-- 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.CodeGuruReviewer.Types.VendorName
  ( VendorName
      ( ..,
        VendorName_GitHub,
        VendorName_GitLab,
        VendorName_NativeS3
      ),
  )
where

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

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

pattern VendorName_GitHub :: VendorName
pattern $bVendorName_GitHub :: VendorName
$mVendorName_GitHub :: forall {r}. VendorName -> ((# #) -> r) -> ((# #) -> r) -> r
VendorName_GitHub = VendorName' "GitHub"

pattern VendorName_GitLab :: VendorName
pattern $bVendorName_GitLab :: VendorName
$mVendorName_GitLab :: forall {r}. VendorName -> ((# #) -> r) -> ((# #) -> r) -> r
VendorName_GitLab = VendorName' "GitLab"

pattern VendorName_NativeS3 :: VendorName
pattern $bVendorName_NativeS3 :: VendorName
$mVendorName_NativeS3 :: forall {r}. VendorName -> ((# #) -> r) -> ((# #) -> r) -> r
VendorName_NativeS3 = VendorName' "NativeS3"

{-# COMPLETE
  VendorName_GitHub,
  VendorName_GitLab,
  VendorName_NativeS3,
  VendorName'
  #-}