{-# 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.NetworkManager.Types.AttachmentState
-- 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.NetworkManager.Types.AttachmentState
  ( AttachmentState
      ( ..,
        AttachmentState_AVAILABLE,
        AttachmentState_CREATING,
        AttachmentState_DELETING,
        AttachmentState_FAILED,
        AttachmentState_PENDING_ATTACHMENT_ACCEPTANCE,
        AttachmentState_PENDING_NETWORK_UPDATE,
        AttachmentState_PENDING_TAG_ACCEPTANCE,
        AttachmentState_REJECTED,
        AttachmentState_UPDATING
      ),
  )
where

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

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

pattern AttachmentState_AVAILABLE :: AttachmentState
pattern $bAttachmentState_AVAILABLE :: AttachmentState
$mAttachmentState_AVAILABLE :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_AVAILABLE = AttachmentState' "AVAILABLE"

pattern AttachmentState_CREATING :: AttachmentState
pattern $bAttachmentState_CREATING :: AttachmentState
$mAttachmentState_CREATING :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_CREATING = AttachmentState' "CREATING"

pattern AttachmentState_DELETING :: AttachmentState
pattern $bAttachmentState_DELETING :: AttachmentState
$mAttachmentState_DELETING :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_DELETING = AttachmentState' "DELETING"

pattern AttachmentState_FAILED :: AttachmentState
pattern $bAttachmentState_FAILED :: AttachmentState
$mAttachmentState_FAILED :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_FAILED = AttachmentState' "FAILED"

pattern AttachmentState_PENDING_ATTACHMENT_ACCEPTANCE :: AttachmentState
pattern $bAttachmentState_PENDING_ATTACHMENT_ACCEPTANCE :: AttachmentState
$mAttachmentState_PENDING_ATTACHMENT_ACCEPTANCE :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_PENDING_ATTACHMENT_ACCEPTANCE = AttachmentState' "PENDING_ATTACHMENT_ACCEPTANCE"

pattern AttachmentState_PENDING_NETWORK_UPDATE :: AttachmentState
pattern $bAttachmentState_PENDING_NETWORK_UPDATE :: AttachmentState
$mAttachmentState_PENDING_NETWORK_UPDATE :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_PENDING_NETWORK_UPDATE = AttachmentState' "PENDING_NETWORK_UPDATE"

pattern AttachmentState_PENDING_TAG_ACCEPTANCE :: AttachmentState
pattern $bAttachmentState_PENDING_TAG_ACCEPTANCE :: AttachmentState
$mAttachmentState_PENDING_TAG_ACCEPTANCE :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_PENDING_TAG_ACCEPTANCE = AttachmentState' "PENDING_TAG_ACCEPTANCE"

pattern AttachmentState_REJECTED :: AttachmentState
pattern $bAttachmentState_REJECTED :: AttachmentState
$mAttachmentState_REJECTED :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_REJECTED = AttachmentState' "REJECTED"

pattern AttachmentState_UPDATING :: AttachmentState
pattern $bAttachmentState_UPDATING :: AttachmentState
$mAttachmentState_UPDATING :: forall {r}. AttachmentState -> ((# #) -> r) -> ((# #) -> r) -> r
AttachmentState_UPDATING = AttachmentState' "UPDATING"

{-# COMPLETE
  AttachmentState_AVAILABLE,
  AttachmentState_CREATING,
  AttachmentState_DELETING,
  AttachmentState_FAILED,
  AttachmentState_PENDING_ATTACHMENT_ACCEPTANCE,
  AttachmentState_PENDING_NETWORK_UPDATE,
  AttachmentState_PENDING_TAG_ACCEPTANCE,
  AttachmentState_REJECTED,
  AttachmentState_UPDATING,
  AttachmentState'
  #-}