{-# 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.Inspector.Types.AssetType
-- 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.Inspector.Types.AssetType
  ( AssetType
      ( ..,
        AssetType_Ec2_instance
      ),
  )
where

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

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

pattern AssetType_Ec2_instance :: AssetType
pattern $bAssetType_Ec2_instance :: AssetType
$mAssetType_Ec2_instance :: forall r. AssetType -> (Void# -> r) -> (Void# -> r) -> r
AssetType_Ec2_instance = AssetType' "ec2-instance"

{-# COMPLETE
  AssetType_Ec2_instance,
  AssetType'
  #-}