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

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

newtype TransitionToPrimaryStorageClassRules = TransitionToPrimaryStorageClassRules'
  { TransitionToPrimaryStorageClassRules -> Text
fromTransitionToPrimaryStorageClassRules ::
      Core.Text
  }
  deriving stock
    ( Int -> TransitionToPrimaryStorageClassRules -> ShowS
[TransitionToPrimaryStorageClassRules] -> ShowS
TransitionToPrimaryStorageClassRules -> String
(Int -> TransitionToPrimaryStorageClassRules -> ShowS)
-> (TransitionToPrimaryStorageClassRules -> String)
-> ([TransitionToPrimaryStorageClassRules] -> ShowS)
-> Show TransitionToPrimaryStorageClassRules
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]
(Int -> ReadS TransitionToPrimaryStorageClassRules)
-> ReadS [TransitionToPrimaryStorageClassRules]
-> ReadPrec TransitionToPrimaryStorageClassRules
-> ReadPrec [TransitionToPrimaryStorageClassRules]
-> Read 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
(TransitionToPrimaryStorageClassRules
 -> TransitionToPrimaryStorageClassRules -> Bool)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Bool)
-> Eq TransitionToPrimaryStorageClassRules
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
Eq TransitionToPrimaryStorageClassRules
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Ordering)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Bool)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Bool)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Bool)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules -> Bool)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules)
-> (TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules
    -> TransitionToPrimaryStorageClassRules)
-> Ord 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
$cp1Ord :: Eq TransitionToPrimaryStorageClassRules
Prelude.Ord,
      (forall x.
 TransitionToPrimaryStorageClassRules
 -> Rep TransitionToPrimaryStorageClassRules x)
-> (forall x.
    Rep TransitionToPrimaryStorageClassRules x
    -> TransitionToPrimaryStorageClassRules)
-> Generic TransitionToPrimaryStorageClassRules
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
    ( Int -> TransitionToPrimaryStorageClassRules -> Int
TransitionToPrimaryStorageClassRules -> Int
(Int -> TransitionToPrimaryStorageClassRules -> Int)
-> (TransitionToPrimaryStorageClassRules -> Int)
-> Hashable TransitionToPrimaryStorageClassRules
forall 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 -> ()
(TransitionToPrimaryStorageClassRules -> ())
-> NFData TransitionToPrimaryStorageClassRules
forall a. (a -> ()) -> NFData a
rnf :: TransitionToPrimaryStorageClassRules -> ()
$crnf :: TransitionToPrimaryStorageClassRules -> ()
Prelude.NFData,
      Text -> Either String TransitionToPrimaryStorageClassRules
(Text -> Either String TransitionToPrimaryStorageClassRules)
-> FromText TransitionToPrimaryStorageClassRules
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TransitionToPrimaryStorageClassRules
$cfromText :: Text -> Either String TransitionToPrimaryStorageClassRules
Core.FromText,
      TransitionToPrimaryStorageClassRules -> Text
(TransitionToPrimaryStorageClassRules -> Text)
-> ToText TransitionToPrimaryStorageClassRules
forall a. (a -> Text) -> ToText a
toText :: TransitionToPrimaryStorageClassRules -> Text
$ctoText :: TransitionToPrimaryStorageClassRules -> Text
Core.ToText,
      TransitionToPrimaryStorageClassRules -> ByteString
(TransitionToPrimaryStorageClassRules -> ByteString)
-> ToByteString TransitionToPrimaryStorageClassRules
forall a. (a -> ByteString) -> ToByteString a
toBS :: TransitionToPrimaryStorageClassRules -> ByteString
$ctoBS :: TransitionToPrimaryStorageClassRules -> ByteString
Core.ToByteString,
      TransitionToPrimaryStorageClassRules -> ByteStringBuilder
(TransitionToPrimaryStorageClassRules -> ByteStringBuilder)
-> ToLog TransitionToPrimaryStorageClassRules
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TransitionToPrimaryStorageClassRules -> ByteStringBuilder
$cbuild :: TransitionToPrimaryStorageClassRules -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TransitionToPrimaryStorageClassRules -> [Header]
(HeaderName -> TransitionToPrimaryStorageClassRules -> [Header])
-> ToHeader TransitionToPrimaryStorageClassRules
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TransitionToPrimaryStorageClassRules -> [Header]
$ctoHeader :: HeaderName -> TransitionToPrimaryStorageClassRules -> [Header]
Core.ToHeader,
      TransitionToPrimaryStorageClassRules -> QueryString
(TransitionToPrimaryStorageClassRules -> QueryString)
-> ToQuery TransitionToPrimaryStorageClassRules
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TransitionToPrimaryStorageClassRules -> QueryString
$ctoQuery :: TransitionToPrimaryStorageClassRules -> QueryString
Core.ToQuery,
      Value -> Parser [TransitionToPrimaryStorageClassRules]
Value -> Parser TransitionToPrimaryStorageClassRules
(Value -> Parser TransitionToPrimaryStorageClassRules)
-> (Value -> Parser [TransitionToPrimaryStorageClassRules])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [TransitionToPrimaryStorageClassRules]
FromJSONKeyFunction TransitionToPrimaryStorageClassRules
FromJSONKeyFunction TransitionToPrimaryStorageClassRules
-> FromJSONKeyFunction [TransitionToPrimaryStorageClassRules]
-> FromJSONKey TransitionToPrimaryStorageClassRules
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TransitionToPrimaryStorageClassRules]
$cfromJSONKeyList :: FromJSONKeyFunction [TransitionToPrimaryStorageClassRules]
fromJSONKey :: FromJSONKeyFunction TransitionToPrimaryStorageClassRules
$cfromJSONKey :: FromJSONKeyFunction TransitionToPrimaryStorageClassRules
Core.FromJSONKey,
      [TransitionToPrimaryStorageClassRules] -> Encoding
[TransitionToPrimaryStorageClassRules] -> Value
TransitionToPrimaryStorageClassRules -> Encoding
TransitionToPrimaryStorageClassRules -> Value
(TransitionToPrimaryStorageClassRules -> Value)
-> (TransitionToPrimaryStorageClassRules -> Encoding)
-> ([TransitionToPrimaryStorageClassRules] -> Value)
-> ([TransitionToPrimaryStorageClassRules] -> Encoding)
-> ToJSON TransitionToPrimaryStorageClassRules
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
Core.ToJSON,
      ToJSONKeyFunction [TransitionToPrimaryStorageClassRules]
ToJSONKeyFunction TransitionToPrimaryStorageClassRules
ToJSONKeyFunction TransitionToPrimaryStorageClassRules
-> ToJSONKeyFunction [TransitionToPrimaryStorageClassRules]
-> ToJSONKey TransitionToPrimaryStorageClassRules
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TransitionToPrimaryStorageClassRules]
$ctoJSONKeyList :: ToJSONKeyFunction [TransitionToPrimaryStorageClassRules]
toJSONKey :: ToJSONKeyFunction TransitionToPrimaryStorageClassRules
$ctoJSONKey :: ToJSONKeyFunction TransitionToPrimaryStorageClassRules
Core.ToJSONKey,
      [Node] -> Either String TransitionToPrimaryStorageClassRules
([Node] -> Either String TransitionToPrimaryStorageClassRules)
-> FromXML TransitionToPrimaryStorageClassRules
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TransitionToPrimaryStorageClassRules
$cparseXML :: [Node] -> Either String TransitionToPrimaryStorageClassRules
Core.FromXML,
      TransitionToPrimaryStorageClassRules -> XML
(TransitionToPrimaryStorageClassRules -> XML)
-> ToXML TransitionToPrimaryStorageClassRules
forall a. (a -> XML) -> ToXML a
toXML :: TransitionToPrimaryStorageClassRules -> XML
$ctoXML :: TransitionToPrimaryStorageClassRules -> XML
Core.ToXML
    )

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

{-# COMPLETE
  TransitionToPrimaryStorageClassRules_AFTER_1_ACCESS,
  TransitionToPrimaryStorageClassRules'
  #-}