{-# 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.Route53AutoNaming.Types.ServiceTypeOption
-- 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.Route53AutoNaming.Types.ServiceTypeOption
  ( ServiceTypeOption
      ( ..,
        ServiceTypeOption_HTTP
      ),
  )
where

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

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

pattern ServiceTypeOption_HTTP :: ServiceTypeOption
pattern $bServiceTypeOption_HTTP :: ServiceTypeOption
$mServiceTypeOption_HTTP :: forall {r}. ServiceTypeOption -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceTypeOption_HTTP = ServiceTypeOption' "HTTP"

{-# COMPLETE
  ServiceTypeOption_HTTP,
  ServiceTypeOption'
  #-}