{-# 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.SageMaker.Types.EndpointSortKey
-- 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.SageMaker.Types.EndpointSortKey
  ( EndpointSortKey
      ( ..,
        EndpointSortKey_CreationTime,
        EndpointSortKey_Name,
        EndpointSortKey_Status
      ),
  )
where

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

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

pattern EndpointSortKey_CreationTime :: EndpointSortKey
pattern $bEndpointSortKey_CreationTime :: EndpointSortKey
$mEndpointSortKey_CreationTime :: forall r. EndpointSortKey -> (Void# -> r) -> (Void# -> r) -> r
EndpointSortKey_CreationTime = EndpointSortKey' "CreationTime"

pattern EndpointSortKey_Name :: EndpointSortKey
pattern $bEndpointSortKey_Name :: EndpointSortKey
$mEndpointSortKey_Name :: forall r. EndpointSortKey -> (Void# -> r) -> (Void# -> r) -> r
EndpointSortKey_Name = EndpointSortKey' "Name"

pattern EndpointSortKey_Status :: EndpointSortKey
pattern $bEndpointSortKey_Status :: EndpointSortKey
$mEndpointSortKey_Status :: forall r. EndpointSortKey -> (Void# -> r) -> (Void# -> r) -> r
EndpointSortKey_Status = EndpointSortKey' "Status"

{-# COMPLETE
  EndpointSortKey_CreationTime,
  EndpointSortKey_Name,
  EndpointSortKey_Status,
  EndpointSortKey'
  #-}