{-# 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.Inspector2.Types.Architecture
-- 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.Inspector2.Types.Architecture
  ( Architecture
      ( ..,
        Architecture_ARM64,
        Architecture_X86_64
      ),
  )
where

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

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

pattern Architecture_ARM64 :: Architecture
pattern $bArchitecture_ARM64 :: Architecture
$mArchitecture_ARM64 :: forall {r}. Architecture -> ((# #) -> r) -> ((# #) -> r) -> r
Architecture_ARM64 = Architecture' "ARM64"

pattern Architecture_X86_64 :: Architecture
pattern $bArchitecture_X86_64 :: Architecture
$mArchitecture_X86_64 :: forall {r}. Architecture -> ((# #) -> r) -> ((# #) -> r) -> r
Architecture_X86_64 = Architecture' "X86_64"

{-# COMPLETE
  Architecture_ARM64,
  Architecture_X86_64,
  Architecture'
  #-}