{-# 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.DLM.Types.LocationValues
-- 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.DLM.Types.LocationValues
  ( LocationValues
      ( ..,
        LocationValues_CLOUD,
        LocationValues_OUTPOST_LOCAL
      ),
  )
where

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

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

pattern LocationValues_CLOUD :: LocationValues
pattern $bLocationValues_CLOUD :: LocationValues
$mLocationValues_CLOUD :: forall r. LocationValues -> (Void# -> r) -> (Void# -> r) -> r
LocationValues_CLOUD = LocationValues' "CLOUD"

pattern LocationValues_OUTPOST_LOCAL :: LocationValues
pattern $bLocationValues_OUTPOST_LOCAL :: LocationValues
$mLocationValues_OUTPOST_LOCAL :: forall r. LocationValues -> (Void# -> r) -> (Void# -> r) -> r
LocationValues_OUTPOST_LOCAL = LocationValues' "OUTPOST_LOCAL"

{-# COMPLETE
  LocationValues_CLOUD,
  LocationValues_OUTPOST_LOCAL,
  LocationValues'
  #-}