{-# 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.S3.Types.OwnerOverride
-- 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.S3.Types.OwnerOverride
  ( OwnerOverride
      ( ..,
        OwnerOverride_Destination
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

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

pattern OwnerOverride_Destination :: OwnerOverride
pattern $bOwnerOverride_Destination :: OwnerOverride
$mOwnerOverride_Destination :: forall r. OwnerOverride -> (Void# -> r) -> (Void# -> r) -> r
OwnerOverride_Destination = OwnerOverride' "Destination"

{-# COMPLETE
  OwnerOverride_Destination,
  OwnerOverride'
  #-}