{-# 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.SSM.Types.CalendarState
-- 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.SSM.Types.CalendarState
  ( CalendarState
      ( ..,
        CalendarState_CLOSED,
        CalendarState_OPEN
      ),
  )
where

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

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

pattern CalendarState_CLOSED :: CalendarState
pattern $bCalendarState_CLOSED :: CalendarState
$mCalendarState_CLOSED :: forall {r}. CalendarState -> ((# #) -> r) -> ((# #) -> r) -> r
CalendarState_CLOSED = CalendarState' "CLOSED"

pattern CalendarState_OPEN :: CalendarState
pattern $bCalendarState_OPEN :: CalendarState
$mCalendarState_OPEN :: forall {r}. CalendarState -> ((# #) -> r) -> ((# #) -> r) -> r
CalendarState_OPEN = CalendarState' "OPEN"

{-# COMPLETE
  CalendarState_CLOSED,
  CalendarState_OPEN,
  CalendarState'
  #-}