{-# 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.EFS.Types.TransitionToPrimaryStorageClassRules
-- 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.EFS.Types.TransitionToPrimaryStorageClassRules
  ( TransitionToPrimaryStorageClassRules
      ( ..,
        TransitionToPrimaryStorageClassRules_AFTER_1_ACCESS
      ),
  )
where

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

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

pattern TransitionToPrimaryStorageClassRules_AFTER_1_ACCESS :: TransitionToPrimaryStorageClassRules
pattern $bTransitionToPrimaryStorageClassRules_AFTER_1_ACCESS :: TransitionToPrimaryStorageClassRules
$mTransitionToPrimaryStorageClassRules_AFTER_1_ACCESS :: forall {r}.
TransitionToPrimaryStorageClassRules
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitionToPrimaryStorageClassRules_AFTER_1_ACCESS = TransitionToPrimaryStorageClassRules' "AFTER_1_ACCESS"

{-# COMPLETE
  TransitionToPrimaryStorageClassRules_AFTER_1_ACCESS,
  TransitionToPrimaryStorageClassRules'
  #-}