{-# 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.FSx.Types.SecurityStyle
-- 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.FSx.Types.SecurityStyle
  ( SecurityStyle
      ( ..,
        SecurityStyle_MIXED,
        SecurityStyle_NTFS,
        SecurityStyle_UNIX
      ),
  )
where

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

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

pattern SecurityStyle_MIXED :: SecurityStyle
pattern $bSecurityStyle_MIXED :: SecurityStyle
$mSecurityStyle_MIXED :: forall {r}. SecurityStyle -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityStyle_MIXED = SecurityStyle' "MIXED"

pattern SecurityStyle_NTFS :: SecurityStyle
pattern $bSecurityStyle_NTFS :: SecurityStyle
$mSecurityStyle_NTFS :: forall {r}. SecurityStyle -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityStyle_NTFS = SecurityStyle' "NTFS"

pattern SecurityStyle_UNIX :: SecurityStyle
pattern $bSecurityStyle_UNIX :: SecurityStyle
$mSecurityStyle_UNIX :: forall {r}. SecurityStyle -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityStyle_UNIX = SecurityStyle' "UNIX"

{-# COMPLETE
  SecurityStyle_MIXED,
  SecurityStyle_NTFS,
  SecurityStyle_UNIX,
  SecurityStyle'
  #-}