{-# 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.Mobile.Types.ProjectState
-- 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.Mobile.Types.ProjectState
  ( ProjectState
      ( ..,
        ProjectState_IMPORTING,
        ProjectState_NORMAL,
        ProjectState_SYNCING
      ),
  )
where

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

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

pattern ProjectState_IMPORTING :: ProjectState
pattern $bProjectState_IMPORTING :: ProjectState
$mProjectState_IMPORTING :: forall r. ProjectState -> (Void# -> r) -> (Void# -> r) -> r
ProjectState_IMPORTING = ProjectState' "IMPORTING"

pattern ProjectState_NORMAL :: ProjectState
pattern $bProjectState_NORMAL :: ProjectState
$mProjectState_NORMAL :: forall r. ProjectState -> (Void# -> r) -> (Void# -> r) -> r
ProjectState_NORMAL = ProjectState' "NORMAL"

pattern ProjectState_SYNCING :: ProjectState
pattern $bProjectState_SYNCING :: ProjectState
$mProjectState_SYNCING :: forall r. ProjectState -> (Void# -> r) -> (Void# -> r) -> r
ProjectState_SYNCING = ProjectState' "SYNCING"

{-# COMPLETE
  ProjectState_IMPORTING,
  ProjectState_NORMAL,
  ProjectState_SYNCING,
  ProjectState'
  #-}