{-# 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.Firehose.Types.AmazonopensearchserviceIndexRotationPeriod
-- 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.Firehose.Types.AmazonopensearchserviceIndexRotationPeriod
  ( AmazonopensearchserviceIndexRotationPeriod
      ( ..,
        AmazonopensearchserviceIndexRotationPeriod_NoRotation,
        AmazonopensearchserviceIndexRotationPeriod_OneDay,
        AmazonopensearchserviceIndexRotationPeriod_OneHour,
        AmazonopensearchserviceIndexRotationPeriod_OneMonth,
        AmazonopensearchserviceIndexRotationPeriod_OneWeek
      ),
  )
where

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

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

pattern AmazonopensearchserviceIndexRotationPeriod_NoRotation :: AmazonopensearchserviceIndexRotationPeriod
pattern $bAmazonopensearchserviceIndexRotationPeriod_NoRotation :: AmazonopensearchserviceIndexRotationPeriod
$mAmazonopensearchserviceIndexRotationPeriod_NoRotation :: forall r.
AmazonopensearchserviceIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
AmazonopensearchserviceIndexRotationPeriod_NoRotation = AmazonopensearchserviceIndexRotationPeriod' "NoRotation"

pattern AmazonopensearchserviceIndexRotationPeriod_OneDay :: AmazonopensearchserviceIndexRotationPeriod
pattern $bAmazonopensearchserviceIndexRotationPeriod_OneDay :: AmazonopensearchserviceIndexRotationPeriod
$mAmazonopensearchserviceIndexRotationPeriod_OneDay :: forall r.
AmazonopensearchserviceIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
AmazonopensearchserviceIndexRotationPeriod_OneDay = AmazonopensearchserviceIndexRotationPeriod' "OneDay"

pattern AmazonopensearchserviceIndexRotationPeriod_OneHour :: AmazonopensearchserviceIndexRotationPeriod
pattern $bAmazonopensearchserviceIndexRotationPeriod_OneHour :: AmazonopensearchserviceIndexRotationPeriod
$mAmazonopensearchserviceIndexRotationPeriod_OneHour :: forall r.
AmazonopensearchserviceIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
AmazonopensearchserviceIndexRotationPeriod_OneHour = AmazonopensearchserviceIndexRotationPeriod' "OneHour"

pattern AmazonopensearchserviceIndexRotationPeriod_OneMonth :: AmazonopensearchserviceIndexRotationPeriod
pattern $bAmazonopensearchserviceIndexRotationPeriod_OneMonth :: AmazonopensearchserviceIndexRotationPeriod
$mAmazonopensearchserviceIndexRotationPeriod_OneMonth :: forall r.
AmazonopensearchserviceIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
AmazonopensearchserviceIndexRotationPeriod_OneMonth = AmazonopensearchserviceIndexRotationPeriod' "OneMonth"

pattern AmazonopensearchserviceIndexRotationPeriod_OneWeek :: AmazonopensearchserviceIndexRotationPeriod
pattern $bAmazonopensearchserviceIndexRotationPeriod_OneWeek :: AmazonopensearchserviceIndexRotationPeriod
$mAmazonopensearchserviceIndexRotationPeriod_OneWeek :: forall r.
AmazonopensearchserviceIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
AmazonopensearchserviceIndexRotationPeriod_OneWeek = AmazonopensearchserviceIndexRotationPeriod' "OneWeek"

{-# COMPLETE
  AmazonopensearchserviceIndexRotationPeriod_NoRotation,
  AmazonopensearchserviceIndexRotationPeriod_OneDay,
  AmazonopensearchserviceIndexRotationPeriod_OneHour,
  AmazonopensearchserviceIndexRotationPeriod_OneMonth,
  AmazonopensearchserviceIndexRotationPeriod_OneWeek,
  AmazonopensearchserviceIndexRotationPeriod'
  #-}