{-# 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.SSM.Types.OpsItemDataType
-- 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.SSM.Types.OpsItemDataType
  ( OpsItemDataType
      ( ..,
        OpsItemDataType_SearchableString,
        OpsItemDataType_String
      ),
  )
where

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

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

pattern OpsItemDataType_SearchableString :: OpsItemDataType
pattern $bOpsItemDataType_SearchableString :: OpsItemDataType
$mOpsItemDataType_SearchableString :: forall r. OpsItemDataType -> (Void# -> r) -> (Void# -> r) -> r
OpsItemDataType_SearchableString = OpsItemDataType' "SearchableString"

pattern OpsItemDataType_String :: OpsItemDataType
pattern $bOpsItemDataType_String :: OpsItemDataType
$mOpsItemDataType_String :: forall r. OpsItemDataType -> (Void# -> r) -> (Void# -> r) -> r
OpsItemDataType_String = OpsItemDataType' "String"

{-# COMPLETE
  OpsItemDataType_SearchableString,
  OpsItemDataType_String,
  OpsItemDataType'
  #-}