{-# 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.SageMaker.Types.DirectInternetAccess
-- 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.SageMaker.Types.DirectInternetAccess
  ( DirectInternetAccess
      ( ..,
        DirectInternetAccess_Disabled,
        DirectInternetAccess_Enabled
      ),
  )
where

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

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

pattern DirectInternetAccess_Disabled :: DirectInternetAccess
pattern $bDirectInternetAccess_Disabled :: DirectInternetAccess
$mDirectInternetAccess_Disabled :: forall r. DirectInternetAccess -> (Void# -> r) -> (Void# -> r) -> r
DirectInternetAccess_Disabled = DirectInternetAccess' "Disabled"

pattern DirectInternetAccess_Enabled :: DirectInternetAccess
pattern $bDirectInternetAccess_Enabled :: DirectInternetAccess
$mDirectInternetAccess_Enabled :: forall r. DirectInternetAccess -> (Void# -> r) -> (Void# -> r) -> r
DirectInternetAccess_Enabled = DirectInternetAccess' "Enabled"

{-# COMPLETE
  DirectInternetAccess_Disabled,
  DirectInternetAccess_Enabled,
  DirectInternetAccess'
  #-}