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

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

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

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

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

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