{-# 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.SageMakerGeoSpatial.Types.PredefinedResolution
-- 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.SageMakerGeoSpatial.Types.PredefinedResolution
  ( PredefinedResolution
      ( ..,
        PredefinedResolution_AVERAGE,
        PredefinedResolution_HIGHEST,
        PredefinedResolution_LOWEST
      ),
  )
where

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

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

pattern PredefinedResolution_AVERAGE :: PredefinedResolution
pattern $bPredefinedResolution_AVERAGE :: PredefinedResolution
$mPredefinedResolution_AVERAGE :: forall {r}.
PredefinedResolution -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedResolution_AVERAGE = PredefinedResolution' "AVERAGE"

pattern PredefinedResolution_HIGHEST :: PredefinedResolution
pattern $bPredefinedResolution_HIGHEST :: PredefinedResolution
$mPredefinedResolution_HIGHEST :: forall {r}.
PredefinedResolution -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedResolution_HIGHEST = PredefinedResolution' "HIGHEST"

pattern PredefinedResolution_LOWEST :: PredefinedResolution
pattern $bPredefinedResolution_LOWEST :: PredefinedResolution
$mPredefinedResolution_LOWEST :: forall {r}.
PredefinedResolution -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedResolution_LOWEST = PredefinedResolution' "LOWEST"

{-# COMPLETE
  PredefinedResolution_AVERAGE,
  PredefinedResolution_HIGHEST,
  PredefinedResolution_LOWEST,
  PredefinedResolution'
  #-}