{-# 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.WorkSpaces.Types.WorkspaceImageRequiredTenancy
-- 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.WorkSpaces.Types.WorkspaceImageRequiredTenancy
  ( WorkspaceImageRequiredTenancy
      ( ..,
        WorkspaceImageRequiredTenancy_DEDICATED,
        WorkspaceImageRequiredTenancy_DEFAULT
      ),
  )
where

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

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

pattern WorkspaceImageRequiredTenancy_DEDICATED :: WorkspaceImageRequiredTenancy
pattern $bWorkspaceImageRequiredTenancy_DEDICATED :: WorkspaceImageRequiredTenancy
$mWorkspaceImageRequiredTenancy_DEDICATED :: forall r.
WorkspaceImageRequiredTenancy -> (Void# -> r) -> (Void# -> r) -> r
WorkspaceImageRequiredTenancy_DEDICATED = WorkspaceImageRequiredTenancy' "DEDICATED"

pattern WorkspaceImageRequiredTenancy_DEFAULT :: WorkspaceImageRequiredTenancy
pattern $bWorkspaceImageRequiredTenancy_DEFAULT :: WorkspaceImageRequiredTenancy
$mWorkspaceImageRequiredTenancy_DEFAULT :: forall r.
WorkspaceImageRequiredTenancy -> (Void# -> r) -> (Void# -> r) -> r
WorkspaceImageRequiredTenancy_DEFAULT = WorkspaceImageRequiredTenancy' "DEFAULT"

{-# COMPLETE
  WorkspaceImageRequiredTenancy_DEDICATED,
  WorkspaceImageRequiredTenancy_DEFAULT,
  WorkspaceImageRequiredTenancy'
  #-}