{-# 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.MGN.Types.InitiatedBy
-- 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.MGN.Types.InitiatedBy
  ( InitiatedBy
      ( ..,
        InitiatedBy_DIAGNOSTIC,
        InitiatedBy_START_CUTOVER,
        InitiatedBy_START_TEST,
        InitiatedBy_TERMINATE
      ),
  )
where

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

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

pattern InitiatedBy_DIAGNOSTIC :: InitiatedBy
pattern $bInitiatedBy_DIAGNOSTIC :: InitiatedBy
$mInitiatedBy_DIAGNOSTIC :: forall r. InitiatedBy -> (Void# -> r) -> (Void# -> r) -> r
InitiatedBy_DIAGNOSTIC = InitiatedBy' "DIAGNOSTIC"

pattern InitiatedBy_START_CUTOVER :: InitiatedBy
pattern $bInitiatedBy_START_CUTOVER :: InitiatedBy
$mInitiatedBy_START_CUTOVER :: forall r. InitiatedBy -> (Void# -> r) -> (Void# -> r) -> r
InitiatedBy_START_CUTOVER = InitiatedBy' "START_CUTOVER"

pattern InitiatedBy_START_TEST :: InitiatedBy
pattern $bInitiatedBy_START_TEST :: InitiatedBy
$mInitiatedBy_START_TEST :: forall r. InitiatedBy -> (Void# -> r) -> (Void# -> r) -> r
InitiatedBy_START_TEST = InitiatedBy' "START_TEST"

pattern InitiatedBy_TERMINATE :: InitiatedBy
pattern $bInitiatedBy_TERMINATE :: InitiatedBy
$mInitiatedBy_TERMINATE :: forall r. InitiatedBy -> (Void# -> r) -> (Void# -> r) -> r
InitiatedBy_TERMINATE = InitiatedBy' "TERMINATE"

{-# COMPLETE
  InitiatedBy_DIAGNOSTIC,
  InitiatedBy_START_CUTOVER,
  InitiatedBy_START_TEST,
  InitiatedBy_TERMINATE,
  InitiatedBy'
  #-}