{-# 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.EC2.Types.StatusName
-- 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.EC2.Types.StatusName
  ( StatusName
      ( ..,
        StatusName_Reachability
      ),
  )
where

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

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

pattern StatusName_Reachability :: StatusName
pattern $bStatusName_Reachability :: StatusName
$mStatusName_Reachability :: forall {r}. StatusName -> ((# #) -> r) -> ((# #) -> r) -> r
StatusName_Reachability = StatusName' "reachability"

{-# COMPLETE
  StatusName_Reachability,
  StatusName'
  #-}