{-# 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.S3Outposts.Types.EndpointAccessType
-- 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.S3Outposts.Types.EndpointAccessType
  ( EndpointAccessType
      ( ..,
        EndpointAccessType_CustomerOwnedIp,
        EndpointAccessType_Private
      ),
  )
where

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

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

pattern EndpointAccessType_CustomerOwnedIp :: EndpointAccessType
pattern $bEndpointAccessType_CustomerOwnedIp :: EndpointAccessType
$mEndpointAccessType_CustomerOwnedIp :: forall {r}. EndpointAccessType -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointAccessType_CustomerOwnedIp = EndpointAccessType' "CustomerOwnedIp"

pattern EndpointAccessType_Private :: EndpointAccessType
pattern $bEndpointAccessType_Private :: EndpointAccessType
$mEndpointAccessType_Private :: forall {r}. EndpointAccessType -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointAccessType_Private = EndpointAccessType' "Private"

{-# COMPLETE
  EndpointAccessType_CustomerOwnedIp,
  EndpointAccessType_Private,
  EndpointAccessType'
  #-}