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

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

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

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

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

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

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