{-# 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.DirectoryService.Types.IpRouteStatusMsg
-- 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.DirectoryService.Types.IpRouteStatusMsg
  ( IpRouteStatusMsg
      ( ..,
        IpRouteStatusMsg_AddFailed,
        IpRouteStatusMsg_Added,
        IpRouteStatusMsg_Adding,
        IpRouteStatusMsg_RemoveFailed,
        IpRouteStatusMsg_Removed,
        IpRouteStatusMsg_Removing
      ),
  )
where

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

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

pattern IpRouteStatusMsg_AddFailed :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_AddFailed :: IpRouteStatusMsg
$mIpRouteStatusMsg_AddFailed :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_AddFailed = IpRouteStatusMsg' "AddFailed"

pattern IpRouteStatusMsg_Added :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_Added :: IpRouteStatusMsg
$mIpRouteStatusMsg_Added :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_Added = IpRouteStatusMsg' "Added"

pattern IpRouteStatusMsg_Adding :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_Adding :: IpRouteStatusMsg
$mIpRouteStatusMsg_Adding :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_Adding = IpRouteStatusMsg' "Adding"

pattern IpRouteStatusMsg_RemoveFailed :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_RemoveFailed :: IpRouteStatusMsg
$mIpRouteStatusMsg_RemoveFailed :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_RemoveFailed = IpRouteStatusMsg' "RemoveFailed"

pattern IpRouteStatusMsg_Removed :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_Removed :: IpRouteStatusMsg
$mIpRouteStatusMsg_Removed :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_Removed = IpRouteStatusMsg' "Removed"

pattern IpRouteStatusMsg_Removing :: IpRouteStatusMsg
pattern $bIpRouteStatusMsg_Removing :: IpRouteStatusMsg
$mIpRouteStatusMsg_Removing :: forall r. IpRouteStatusMsg -> (Void# -> r) -> (Void# -> r) -> r
IpRouteStatusMsg_Removing = IpRouteStatusMsg' "Removing"

{-# COMPLETE
  IpRouteStatusMsg_AddFailed,
  IpRouteStatusMsg_Added,
  IpRouteStatusMsg_Adding,
  IpRouteStatusMsg_RemoveFailed,
  IpRouteStatusMsg_Removed,
  IpRouteStatusMsg_Removing,
  IpRouteStatusMsg'
  #-}