{-# 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.Proton.Types.ListServiceInstancesSortBy
-- 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.Proton.Types.ListServiceInstancesSortBy
  ( ListServiceInstancesSortBy
      ( ..,
        ListServiceInstancesSortBy_CreatedAt,
        ListServiceInstancesSortBy_DeploymentStatus,
        ListServiceInstancesSortBy_EnvironmentName,
        ListServiceInstancesSortBy_LastDeploymentAttemptedAt,
        ListServiceInstancesSortBy_Name,
        ListServiceInstancesSortBy_ServiceName,
        ListServiceInstancesSortBy_TemplateName
      ),
  )
where

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

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

pattern ListServiceInstancesSortBy_CreatedAt :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_CreatedAt :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_CreatedAt :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_CreatedAt = ListServiceInstancesSortBy' "createdAt"

pattern ListServiceInstancesSortBy_DeploymentStatus :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_DeploymentStatus :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_DeploymentStatus :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_DeploymentStatus = ListServiceInstancesSortBy' "deploymentStatus"

pattern ListServiceInstancesSortBy_EnvironmentName :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_EnvironmentName :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_EnvironmentName :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_EnvironmentName = ListServiceInstancesSortBy' "environmentName"

pattern ListServiceInstancesSortBy_LastDeploymentAttemptedAt :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_LastDeploymentAttemptedAt :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_LastDeploymentAttemptedAt :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_LastDeploymentAttemptedAt = ListServiceInstancesSortBy' "lastDeploymentAttemptedAt"

pattern ListServiceInstancesSortBy_Name :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_Name :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_Name :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_Name = ListServiceInstancesSortBy' "name"

pattern ListServiceInstancesSortBy_ServiceName :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_ServiceName :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_ServiceName :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_ServiceName = ListServiceInstancesSortBy' "serviceName"

pattern ListServiceInstancesSortBy_TemplateName :: ListServiceInstancesSortBy
pattern $bListServiceInstancesSortBy_TemplateName :: ListServiceInstancesSortBy
$mListServiceInstancesSortBy_TemplateName :: forall {r}.
ListServiceInstancesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListServiceInstancesSortBy_TemplateName = ListServiceInstancesSortBy' "templateName"

{-# COMPLETE
  ListServiceInstancesSortBy_CreatedAt,
  ListServiceInstancesSortBy_DeploymentStatus,
  ListServiceInstancesSortBy_EnvironmentName,
  ListServiceInstancesSortBy_LastDeploymentAttemptedAt,
  ListServiceInstancesSortBy_Name,
  ListServiceInstancesSortBy_ServiceName,
  ListServiceInstancesSortBy_TemplateName,
  ListServiceInstancesSortBy'
  #-}