{-# 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.CloudFormation.Types.VersionBump
-- 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.CloudFormation.Types.VersionBump
  ( VersionBump
      ( ..,
        VersionBump_MAJOR,
        VersionBump_MINOR
      ),
  )
where

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

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

pattern VersionBump_MAJOR :: VersionBump
pattern $bVersionBump_MAJOR :: VersionBump
$mVersionBump_MAJOR :: forall r. VersionBump -> (Void# -> r) -> (Void# -> r) -> r
VersionBump_MAJOR = VersionBump' "MAJOR"

pattern VersionBump_MINOR :: VersionBump
pattern $bVersionBump_MINOR :: VersionBump
$mVersionBump_MINOR :: forall r. VersionBump -> (Void# -> r) -> (Void# -> r) -> r
VersionBump_MINOR = VersionBump' "MINOR"

{-# COMPLETE
  VersionBump_MAJOR,
  VersionBump_MINOR,
  VersionBump'
  #-}