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

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

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

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

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

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

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