{-# 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.QuickSight.Types.URLTargetConfiguration
-- 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.QuickSight.Types.URLTargetConfiguration
  ( URLTargetConfiguration
      ( ..,
        URLTargetConfiguration_NEW_TAB,
        URLTargetConfiguration_NEW_WINDOW,
        URLTargetConfiguration_SAME_TAB
      ),
  )
where

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

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

pattern URLTargetConfiguration_NEW_TAB :: URLTargetConfiguration
pattern $bURLTargetConfiguration_NEW_TAB :: URLTargetConfiguration
$mURLTargetConfiguration_NEW_TAB :: forall {r}.
URLTargetConfiguration -> ((# #) -> r) -> ((# #) -> r) -> r
URLTargetConfiguration_NEW_TAB = URLTargetConfiguration' "NEW_TAB"

pattern URLTargetConfiguration_NEW_WINDOW :: URLTargetConfiguration
pattern $bURLTargetConfiguration_NEW_WINDOW :: URLTargetConfiguration
$mURLTargetConfiguration_NEW_WINDOW :: forall {r}.
URLTargetConfiguration -> ((# #) -> r) -> ((# #) -> r) -> r
URLTargetConfiguration_NEW_WINDOW = URLTargetConfiguration' "NEW_WINDOW"

pattern URLTargetConfiguration_SAME_TAB :: URLTargetConfiguration
pattern $bURLTargetConfiguration_SAME_TAB :: URLTargetConfiguration
$mURLTargetConfiguration_SAME_TAB :: forall {r}.
URLTargetConfiguration -> ((# #) -> r) -> ((# #) -> r) -> r
URLTargetConfiguration_SAME_TAB = URLTargetConfiguration' "SAME_TAB"

{-# COMPLETE
  URLTargetConfiguration_NEW_TAB,
  URLTargetConfiguration_NEW_WINDOW,
  URLTargetConfiguration_SAME_TAB,
  URLTargetConfiguration'
  #-}