{-# 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.MediaLive.Types.InputDeviceIpScheme
-- 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.MediaLive.Types.InputDeviceIpScheme
  ( InputDeviceIpScheme
      ( ..,
        InputDeviceIpScheme_DHCP,
        InputDeviceIpScheme_STATIC
      ),
  )
where

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

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

pattern InputDeviceIpScheme_DHCP :: InputDeviceIpScheme
pattern $bInputDeviceIpScheme_DHCP :: InputDeviceIpScheme
$mInputDeviceIpScheme_DHCP :: forall {r}.
InputDeviceIpScheme -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceIpScheme_DHCP = InputDeviceIpScheme' "DHCP"

pattern InputDeviceIpScheme_STATIC :: InputDeviceIpScheme
pattern $bInputDeviceIpScheme_STATIC :: InputDeviceIpScheme
$mInputDeviceIpScheme_STATIC :: forall {r}.
InputDeviceIpScheme -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceIpScheme_STATIC = InputDeviceIpScheme' "STATIC"

{-# COMPLETE
  InputDeviceIpScheme_DHCP,
  InputDeviceIpScheme_STATIC,
  InputDeviceIpScheme'
  #-}