{-# 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.ResourceLocationValues
-- 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.ResourceLocationValues
  ( ResourceLocationValues
      ( ..,
        ResourceLocationValues_CLOUD,
        ResourceLocationValues_OUTPOST
      ),
  )
where

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

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

pattern ResourceLocationValues_CLOUD :: ResourceLocationValues
pattern $bResourceLocationValues_CLOUD :: ResourceLocationValues
$mResourceLocationValues_CLOUD :: forall r.
ResourceLocationValues -> (Void# -> r) -> (Void# -> r) -> r
ResourceLocationValues_CLOUD = ResourceLocationValues' "CLOUD"

pattern ResourceLocationValues_OUTPOST :: ResourceLocationValues
pattern $bResourceLocationValues_OUTPOST :: ResourceLocationValues
$mResourceLocationValues_OUTPOST :: forall r.
ResourceLocationValues -> (Void# -> r) -> (Void# -> r) -> r
ResourceLocationValues_OUTPOST = ResourceLocationValues' "OUTPOST"

{-# COMPLETE
  ResourceLocationValues_CLOUD,
  ResourceLocationValues_OUTPOST,
  ResourceLocationValues'
  #-}