{-# 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.Chime.Types.CallingNameStatus
-- 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.Chime.Types.CallingNameStatus
  ( CallingNameStatus
      ( ..,
        CallingNameStatus_Unassigned,
        CallingNameStatus_UpdateFailed,
        CallingNameStatus_UpdateInProgress,
        CallingNameStatus_UpdateSucceeded
      ),
  )
where

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

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

pattern CallingNameStatus_Unassigned :: CallingNameStatus
pattern $bCallingNameStatus_Unassigned :: CallingNameStatus
$mCallingNameStatus_Unassigned :: forall r. CallingNameStatus -> (Void# -> r) -> (Void# -> r) -> r
CallingNameStatus_Unassigned = CallingNameStatus' "Unassigned"

pattern CallingNameStatus_UpdateFailed :: CallingNameStatus
pattern $bCallingNameStatus_UpdateFailed :: CallingNameStatus
$mCallingNameStatus_UpdateFailed :: forall r. CallingNameStatus -> (Void# -> r) -> (Void# -> r) -> r
CallingNameStatus_UpdateFailed = CallingNameStatus' "UpdateFailed"

pattern CallingNameStatus_UpdateInProgress :: CallingNameStatus
pattern $bCallingNameStatus_UpdateInProgress :: CallingNameStatus
$mCallingNameStatus_UpdateInProgress :: forall r. CallingNameStatus -> (Void# -> r) -> (Void# -> r) -> r
CallingNameStatus_UpdateInProgress = CallingNameStatus' "UpdateInProgress"

pattern CallingNameStatus_UpdateSucceeded :: CallingNameStatus
pattern $bCallingNameStatus_UpdateSucceeded :: CallingNameStatus
$mCallingNameStatus_UpdateSucceeded :: forall r. CallingNameStatus -> (Void# -> r) -> (Void# -> r) -> r
CallingNameStatus_UpdateSucceeded = CallingNameStatus' "UpdateSucceeded"

{-# COMPLETE
  CallingNameStatus_Unassigned,
  CallingNameStatus_UpdateFailed,
  CallingNameStatus_UpdateInProgress,
  CallingNameStatus_UpdateSucceeded,
  CallingNameStatus'
  #-}