{-# 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.StorageGateway.Types.SMBSecurityStrategy
-- 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.StorageGateway.Types.SMBSecurityStrategy
  ( SMBSecurityStrategy
      ( ..,
        SMBSecurityStrategy_ClientSpecified,
        SMBSecurityStrategy_MandatoryEncryption,
        SMBSecurityStrategy_MandatorySigning
      ),
  )
where

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

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

pattern SMBSecurityStrategy_ClientSpecified :: SMBSecurityStrategy
pattern $bSMBSecurityStrategy_ClientSpecified :: SMBSecurityStrategy
$mSMBSecurityStrategy_ClientSpecified :: forall {r}.
SMBSecurityStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
SMBSecurityStrategy_ClientSpecified = SMBSecurityStrategy' "ClientSpecified"

pattern SMBSecurityStrategy_MandatoryEncryption :: SMBSecurityStrategy
pattern $bSMBSecurityStrategy_MandatoryEncryption :: SMBSecurityStrategy
$mSMBSecurityStrategy_MandatoryEncryption :: forall {r}.
SMBSecurityStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
SMBSecurityStrategy_MandatoryEncryption = SMBSecurityStrategy' "MandatoryEncryption"

pattern SMBSecurityStrategy_MandatorySigning :: SMBSecurityStrategy
pattern $bSMBSecurityStrategy_MandatorySigning :: SMBSecurityStrategy
$mSMBSecurityStrategy_MandatorySigning :: forall {r}.
SMBSecurityStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
SMBSecurityStrategy_MandatorySigning = SMBSecurityStrategy' "MandatorySigning"

{-# COMPLETE
  SMBSecurityStrategy_ClientSpecified,
  SMBSecurityStrategy_MandatoryEncryption,
  SMBSecurityStrategy_MandatorySigning,
  SMBSecurityStrategy'
  #-}