{-# 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.EC2.Types.TrafficMirrorSessionField
-- 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.EC2.Types.TrafficMirrorSessionField
  ( TrafficMirrorSessionField
      ( ..,
        TrafficMirrorSessionField_Description,
        TrafficMirrorSessionField_Packet_length,
        TrafficMirrorSessionField_Virtual_network_id
      ),
  )
where

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

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

pattern TrafficMirrorSessionField_Description :: TrafficMirrorSessionField
pattern $bTrafficMirrorSessionField_Description :: TrafficMirrorSessionField
$mTrafficMirrorSessionField_Description :: forall {r}.
TrafficMirrorSessionField -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorSessionField_Description = TrafficMirrorSessionField' "description"

pattern TrafficMirrorSessionField_Packet_length :: TrafficMirrorSessionField
pattern $bTrafficMirrorSessionField_Packet_length :: TrafficMirrorSessionField
$mTrafficMirrorSessionField_Packet_length :: forall {r}.
TrafficMirrorSessionField -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorSessionField_Packet_length = TrafficMirrorSessionField' "packet-length"

pattern TrafficMirrorSessionField_Virtual_network_id :: TrafficMirrorSessionField
pattern $bTrafficMirrorSessionField_Virtual_network_id :: TrafficMirrorSessionField
$mTrafficMirrorSessionField_Virtual_network_id :: forall {r}.
TrafficMirrorSessionField -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorSessionField_Virtual_network_id = TrafficMirrorSessionField' "virtual-network-id"

{-# COMPLETE
  TrafficMirrorSessionField_Description,
  TrafficMirrorSessionField_Packet_length,
  TrafficMirrorSessionField_Virtual_network_id,
  TrafficMirrorSessionField'
  #-}