{-# 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.RootAccess
-- 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.RootAccess
  ( RootAccess
      ( ..,
        RootAccess_Disabled,
        RootAccess_Enabled
      ),
  )
where

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

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

pattern RootAccess_Disabled :: RootAccess
pattern $bRootAccess_Disabled :: RootAccess
$mRootAccess_Disabled :: forall r. RootAccess -> (Void# -> r) -> (Void# -> r) -> r
RootAccess_Disabled = RootAccess' "Disabled"

pattern RootAccess_Enabled :: RootAccess
pattern $bRootAccess_Enabled :: RootAccess
$mRootAccess_Enabled :: forall r. RootAccess -> (Void# -> r) -> (Void# -> r) -> r
RootAccess_Enabled = RootAccess' "Enabled"

{-# COMPLETE
  RootAccess_Disabled,
  RootAccess_Enabled,
  RootAccess'
  #-}