{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.DeleteColumnStatisticsForPartition
-- 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)
--
-- Delete the partition column statistics of a column.
--
-- The Identity and Access Management (IAM) permission required for this
-- operation is @DeletePartition@.
module Amazonka.Glue.DeleteColumnStatisticsForPartition
  ( -- * Creating a Request
    DeleteColumnStatisticsForPartition (..),
    newDeleteColumnStatisticsForPartition,

    -- * Request Lenses
    deleteColumnStatisticsForPartition_catalogId,
    deleteColumnStatisticsForPartition_databaseName,
    deleteColumnStatisticsForPartition_tableName,
    deleteColumnStatisticsForPartition_partitionValues,
    deleteColumnStatisticsForPartition_columnName,

    -- * Destructuring the Response
    DeleteColumnStatisticsForPartitionResponse (..),
    newDeleteColumnStatisticsForPartitionResponse,

    -- * Response Lenses
    deleteColumnStatisticsForPartitionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDeleteColumnStatisticsForPartition' smart constructor.
data DeleteColumnStatisticsForPartition = DeleteColumnStatisticsForPartition'
  { -- | The ID of the Data Catalog where the partitions in question reside. If
    -- none is supplied, the Amazon Web Services account ID is used by default.
    DeleteColumnStatisticsForPartition -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
    -- | The name of the catalog database where the partitions reside.
    DeleteColumnStatisticsForPartition -> Text
databaseName :: Prelude.Text,
    -- | The name of the partitions\' table.
    DeleteColumnStatisticsForPartition -> Text
tableName :: Prelude.Text,
    -- | A list of partition values identifying the partition.
    DeleteColumnStatisticsForPartition -> [Text]
partitionValues :: [Prelude.Text],
    -- | Name of the column.
    DeleteColumnStatisticsForPartition -> Text
columnName :: Prelude.Text
  }
  deriving (DeleteColumnStatisticsForPartition
-> DeleteColumnStatisticsForPartition -> Bool
(DeleteColumnStatisticsForPartition
 -> DeleteColumnStatisticsForPartition -> Bool)
-> (DeleteColumnStatisticsForPartition
    -> DeleteColumnStatisticsForPartition -> Bool)
-> Eq DeleteColumnStatisticsForPartition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteColumnStatisticsForPartition
-> DeleteColumnStatisticsForPartition -> Bool
$c/= :: DeleteColumnStatisticsForPartition
-> DeleteColumnStatisticsForPartition -> Bool
== :: DeleteColumnStatisticsForPartition
-> DeleteColumnStatisticsForPartition -> Bool
$c== :: DeleteColumnStatisticsForPartition
-> DeleteColumnStatisticsForPartition -> Bool
Prelude.Eq, ReadPrec [DeleteColumnStatisticsForPartition]
ReadPrec DeleteColumnStatisticsForPartition
Int -> ReadS DeleteColumnStatisticsForPartition
ReadS [DeleteColumnStatisticsForPartition]
(Int -> ReadS DeleteColumnStatisticsForPartition)
-> ReadS [DeleteColumnStatisticsForPartition]
-> ReadPrec DeleteColumnStatisticsForPartition
-> ReadPrec [DeleteColumnStatisticsForPartition]
-> Read DeleteColumnStatisticsForPartition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteColumnStatisticsForPartition]
$creadListPrec :: ReadPrec [DeleteColumnStatisticsForPartition]
readPrec :: ReadPrec DeleteColumnStatisticsForPartition
$creadPrec :: ReadPrec DeleteColumnStatisticsForPartition
readList :: ReadS [DeleteColumnStatisticsForPartition]
$creadList :: ReadS [DeleteColumnStatisticsForPartition]
readsPrec :: Int -> ReadS DeleteColumnStatisticsForPartition
$creadsPrec :: Int -> ReadS DeleteColumnStatisticsForPartition
Prelude.Read, Int -> DeleteColumnStatisticsForPartition -> ShowS
[DeleteColumnStatisticsForPartition] -> ShowS
DeleteColumnStatisticsForPartition -> String
(Int -> DeleteColumnStatisticsForPartition -> ShowS)
-> (DeleteColumnStatisticsForPartition -> String)
-> ([DeleteColumnStatisticsForPartition] -> ShowS)
-> Show DeleteColumnStatisticsForPartition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteColumnStatisticsForPartition] -> ShowS
$cshowList :: [DeleteColumnStatisticsForPartition] -> ShowS
show :: DeleteColumnStatisticsForPartition -> String
$cshow :: DeleteColumnStatisticsForPartition -> String
showsPrec :: Int -> DeleteColumnStatisticsForPartition -> ShowS
$cshowsPrec :: Int -> DeleteColumnStatisticsForPartition -> ShowS
Prelude.Show, (forall x.
 DeleteColumnStatisticsForPartition
 -> Rep DeleteColumnStatisticsForPartition x)
-> (forall x.
    Rep DeleteColumnStatisticsForPartition x
    -> DeleteColumnStatisticsForPartition)
-> Generic DeleteColumnStatisticsForPartition
forall x.
Rep DeleteColumnStatisticsForPartition x
-> DeleteColumnStatisticsForPartition
forall x.
DeleteColumnStatisticsForPartition
-> Rep DeleteColumnStatisticsForPartition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteColumnStatisticsForPartition x
-> DeleteColumnStatisticsForPartition
$cfrom :: forall x.
DeleteColumnStatisticsForPartition
-> Rep DeleteColumnStatisticsForPartition x
Prelude.Generic)

-- |
-- Create a value of 'DeleteColumnStatisticsForPartition' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'catalogId', 'deleteColumnStatisticsForPartition_catalogId' - The ID of the Data Catalog where the partitions in question reside. If
-- none is supplied, the Amazon Web Services account ID is used by default.
--
-- 'databaseName', 'deleteColumnStatisticsForPartition_databaseName' - The name of the catalog database where the partitions reside.
--
-- 'tableName', 'deleteColumnStatisticsForPartition_tableName' - The name of the partitions\' table.
--
-- 'partitionValues', 'deleteColumnStatisticsForPartition_partitionValues' - A list of partition values identifying the partition.
--
-- 'columnName', 'deleteColumnStatisticsForPartition_columnName' - Name of the column.
newDeleteColumnStatisticsForPartition ::
  -- | 'databaseName'
  Prelude.Text ->
  -- | 'tableName'
  Prelude.Text ->
  -- | 'columnName'
  Prelude.Text ->
  DeleteColumnStatisticsForPartition
newDeleteColumnStatisticsForPartition :: Text -> Text -> Text -> DeleteColumnStatisticsForPartition
newDeleteColumnStatisticsForPartition
  Text
pDatabaseName_
  Text
pTableName_
  Text
pColumnName_ =
    DeleteColumnStatisticsForPartition' :: Maybe Text
-> Text
-> Text
-> [Text]
-> Text
-> DeleteColumnStatisticsForPartition
DeleteColumnStatisticsForPartition'
      { $sel:catalogId:DeleteColumnStatisticsForPartition' :: Maybe Text
catalogId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:databaseName:DeleteColumnStatisticsForPartition' :: Text
databaseName = Text
pDatabaseName_,
        $sel:tableName:DeleteColumnStatisticsForPartition' :: Text
tableName = Text
pTableName_,
        $sel:partitionValues:DeleteColumnStatisticsForPartition' :: [Text]
partitionValues = [Text]
forall a. Monoid a => a
Prelude.mempty,
        $sel:columnName:DeleteColumnStatisticsForPartition' :: Text
columnName = Text
pColumnName_
      }

-- | The ID of the Data Catalog where the partitions in question reside. If
-- none is supplied, the Amazon Web Services account ID is used by default.
deleteColumnStatisticsForPartition_catalogId :: Lens.Lens' DeleteColumnStatisticsForPartition (Prelude.Maybe Prelude.Text)
deleteColumnStatisticsForPartition_catalogId :: (Maybe Text -> f (Maybe Text))
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
deleteColumnStatisticsForPartition_catalogId = (DeleteColumnStatisticsForPartition -> Maybe Text)
-> (DeleteColumnStatisticsForPartition
    -> Maybe Text -> DeleteColumnStatisticsForPartition)
-> Lens
     DeleteColumnStatisticsForPartition
     DeleteColumnStatisticsForPartition
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartition' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: DeleteColumnStatisticsForPartition
s@DeleteColumnStatisticsForPartition' {} Maybe Text
a -> DeleteColumnStatisticsForPartition
s {$sel:catalogId:DeleteColumnStatisticsForPartition' :: Maybe Text
catalogId = Maybe Text
a} :: DeleteColumnStatisticsForPartition)

-- | The name of the catalog database where the partitions reside.
deleteColumnStatisticsForPartition_databaseName :: Lens.Lens' DeleteColumnStatisticsForPartition Prelude.Text
deleteColumnStatisticsForPartition_databaseName :: (Text -> f Text)
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
deleteColumnStatisticsForPartition_databaseName = (DeleteColumnStatisticsForPartition -> Text)
-> (DeleteColumnStatisticsForPartition
    -> Text -> DeleteColumnStatisticsForPartition)
-> Lens
     DeleteColumnStatisticsForPartition
     DeleteColumnStatisticsForPartition
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartition' {Text
databaseName :: Text
$sel:databaseName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
databaseName} -> Text
databaseName) (\s :: DeleteColumnStatisticsForPartition
s@DeleteColumnStatisticsForPartition' {} Text
a -> DeleteColumnStatisticsForPartition
s {$sel:databaseName:DeleteColumnStatisticsForPartition' :: Text
databaseName = Text
a} :: DeleteColumnStatisticsForPartition)

-- | The name of the partitions\' table.
deleteColumnStatisticsForPartition_tableName :: Lens.Lens' DeleteColumnStatisticsForPartition Prelude.Text
deleteColumnStatisticsForPartition_tableName :: (Text -> f Text)
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
deleteColumnStatisticsForPartition_tableName = (DeleteColumnStatisticsForPartition -> Text)
-> (DeleteColumnStatisticsForPartition
    -> Text -> DeleteColumnStatisticsForPartition)
-> Lens
     DeleteColumnStatisticsForPartition
     DeleteColumnStatisticsForPartition
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartition' {Text
tableName :: Text
$sel:tableName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
tableName} -> Text
tableName) (\s :: DeleteColumnStatisticsForPartition
s@DeleteColumnStatisticsForPartition' {} Text
a -> DeleteColumnStatisticsForPartition
s {$sel:tableName:DeleteColumnStatisticsForPartition' :: Text
tableName = Text
a} :: DeleteColumnStatisticsForPartition)

-- | A list of partition values identifying the partition.
deleteColumnStatisticsForPartition_partitionValues :: Lens.Lens' DeleteColumnStatisticsForPartition [Prelude.Text]
deleteColumnStatisticsForPartition_partitionValues :: ([Text] -> f [Text])
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
deleteColumnStatisticsForPartition_partitionValues = (DeleteColumnStatisticsForPartition -> [Text])
-> (DeleteColumnStatisticsForPartition
    -> [Text] -> DeleteColumnStatisticsForPartition)
-> Lens
     DeleteColumnStatisticsForPartition
     DeleteColumnStatisticsForPartition
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartition' {[Text]
partitionValues :: [Text]
$sel:partitionValues:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> [Text]
partitionValues} -> [Text]
partitionValues) (\s :: DeleteColumnStatisticsForPartition
s@DeleteColumnStatisticsForPartition' {} [Text]
a -> DeleteColumnStatisticsForPartition
s {$sel:partitionValues:DeleteColumnStatisticsForPartition' :: [Text]
partitionValues = [Text]
a} :: DeleteColumnStatisticsForPartition) (([Text] -> f [Text])
 -> DeleteColumnStatisticsForPartition
 -> f DeleteColumnStatisticsForPartition)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Name of the column.
deleteColumnStatisticsForPartition_columnName :: Lens.Lens' DeleteColumnStatisticsForPartition Prelude.Text
deleteColumnStatisticsForPartition_columnName :: (Text -> f Text)
-> DeleteColumnStatisticsForPartition
-> f DeleteColumnStatisticsForPartition
deleteColumnStatisticsForPartition_columnName = (DeleteColumnStatisticsForPartition -> Text)
-> (DeleteColumnStatisticsForPartition
    -> Text -> DeleteColumnStatisticsForPartition)
-> Lens
     DeleteColumnStatisticsForPartition
     DeleteColumnStatisticsForPartition
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartition' {Text
columnName :: Text
$sel:columnName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
columnName} -> Text
columnName) (\s :: DeleteColumnStatisticsForPartition
s@DeleteColumnStatisticsForPartition' {} Text
a -> DeleteColumnStatisticsForPartition
s {$sel:columnName:DeleteColumnStatisticsForPartition' :: Text
columnName = Text
a} :: DeleteColumnStatisticsForPartition)

instance
  Core.AWSRequest
    DeleteColumnStatisticsForPartition
  where
  type
    AWSResponse DeleteColumnStatisticsForPartition =
      DeleteColumnStatisticsForPartitionResponse
  request :: DeleteColumnStatisticsForPartition
-> Request DeleteColumnStatisticsForPartition
request = Service
-> DeleteColumnStatisticsForPartition
-> Request DeleteColumnStatisticsForPartition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteColumnStatisticsForPartition
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DeleteColumnStatisticsForPartition)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse DeleteColumnStatisticsForPartition))
-> Logger
-> Service
-> Proxy DeleteColumnStatisticsForPartition
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DeleteColumnStatisticsForPartition)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DeleteColumnStatisticsForPartitionResponse
DeleteColumnStatisticsForPartitionResponse'
            (Int -> DeleteColumnStatisticsForPartitionResponse)
-> Either String Int
-> Either String DeleteColumnStatisticsForPartitionResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DeleteColumnStatisticsForPartition

instance
  Prelude.NFData
    DeleteColumnStatisticsForPartition

instance
  Core.ToHeaders
    DeleteColumnStatisticsForPartition
  where
  toHeaders :: DeleteColumnStatisticsForPartition -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteColumnStatisticsForPartition -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSGlue.DeleteColumnStatisticsForPartition" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    DeleteColumnStatisticsForPartition
  where
  toJSON :: DeleteColumnStatisticsForPartition -> Value
toJSON DeleteColumnStatisticsForPartition' {[Text]
Maybe Text
Text
columnName :: Text
partitionValues :: [Text]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
$sel:partitionValues:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> [Text]
$sel:tableName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
$sel:databaseName:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Text
$sel:catalogId:DeleteColumnStatisticsForPartition' :: DeleteColumnStatisticsForPartition -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"CatalogId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
catalogId,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatabaseName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
databaseName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TableName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
tableName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"PartitionValues" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
partitionValues),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ColumnName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
columnName)
          ]
      )

instance
  Core.ToPath
    DeleteColumnStatisticsForPartition
  where
  toPath :: DeleteColumnStatisticsForPartition -> ByteString
toPath = ByteString -> DeleteColumnStatisticsForPartition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    DeleteColumnStatisticsForPartition
  where
  toQuery :: DeleteColumnStatisticsForPartition -> QueryString
toQuery = QueryString -> DeleteColumnStatisticsForPartition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDeleteColumnStatisticsForPartitionResponse' smart constructor.
data DeleteColumnStatisticsForPartitionResponse = DeleteColumnStatisticsForPartitionResponse'
  { -- | The response's http status code.
    DeleteColumnStatisticsForPartitionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteColumnStatisticsForPartitionResponse
-> DeleteColumnStatisticsForPartitionResponse -> Bool
(DeleteColumnStatisticsForPartitionResponse
 -> DeleteColumnStatisticsForPartitionResponse -> Bool)
-> (DeleteColumnStatisticsForPartitionResponse
    -> DeleteColumnStatisticsForPartitionResponse -> Bool)
-> Eq DeleteColumnStatisticsForPartitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteColumnStatisticsForPartitionResponse
-> DeleteColumnStatisticsForPartitionResponse -> Bool
$c/= :: DeleteColumnStatisticsForPartitionResponse
-> DeleteColumnStatisticsForPartitionResponse -> Bool
== :: DeleteColumnStatisticsForPartitionResponse
-> DeleteColumnStatisticsForPartitionResponse -> Bool
$c== :: DeleteColumnStatisticsForPartitionResponse
-> DeleteColumnStatisticsForPartitionResponse -> Bool
Prelude.Eq, ReadPrec [DeleteColumnStatisticsForPartitionResponse]
ReadPrec DeleteColumnStatisticsForPartitionResponse
Int -> ReadS DeleteColumnStatisticsForPartitionResponse
ReadS [DeleteColumnStatisticsForPartitionResponse]
(Int -> ReadS DeleteColumnStatisticsForPartitionResponse)
-> ReadS [DeleteColumnStatisticsForPartitionResponse]
-> ReadPrec DeleteColumnStatisticsForPartitionResponse
-> ReadPrec [DeleteColumnStatisticsForPartitionResponse]
-> Read DeleteColumnStatisticsForPartitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteColumnStatisticsForPartitionResponse]
$creadListPrec :: ReadPrec [DeleteColumnStatisticsForPartitionResponse]
readPrec :: ReadPrec DeleteColumnStatisticsForPartitionResponse
$creadPrec :: ReadPrec DeleteColumnStatisticsForPartitionResponse
readList :: ReadS [DeleteColumnStatisticsForPartitionResponse]
$creadList :: ReadS [DeleteColumnStatisticsForPartitionResponse]
readsPrec :: Int -> ReadS DeleteColumnStatisticsForPartitionResponse
$creadsPrec :: Int -> ReadS DeleteColumnStatisticsForPartitionResponse
Prelude.Read, Int -> DeleteColumnStatisticsForPartitionResponse -> ShowS
[DeleteColumnStatisticsForPartitionResponse] -> ShowS
DeleteColumnStatisticsForPartitionResponse -> String
(Int -> DeleteColumnStatisticsForPartitionResponse -> ShowS)
-> (DeleteColumnStatisticsForPartitionResponse -> String)
-> ([DeleteColumnStatisticsForPartitionResponse] -> ShowS)
-> Show DeleteColumnStatisticsForPartitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteColumnStatisticsForPartitionResponse] -> ShowS
$cshowList :: [DeleteColumnStatisticsForPartitionResponse] -> ShowS
show :: DeleteColumnStatisticsForPartitionResponse -> String
$cshow :: DeleteColumnStatisticsForPartitionResponse -> String
showsPrec :: Int -> DeleteColumnStatisticsForPartitionResponse -> ShowS
$cshowsPrec :: Int -> DeleteColumnStatisticsForPartitionResponse -> ShowS
Prelude.Show, (forall x.
 DeleteColumnStatisticsForPartitionResponse
 -> Rep DeleteColumnStatisticsForPartitionResponse x)
-> (forall x.
    Rep DeleteColumnStatisticsForPartitionResponse x
    -> DeleteColumnStatisticsForPartitionResponse)
-> Generic DeleteColumnStatisticsForPartitionResponse
forall x.
Rep DeleteColumnStatisticsForPartitionResponse x
-> DeleteColumnStatisticsForPartitionResponse
forall x.
DeleteColumnStatisticsForPartitionResponse
-> Rep DeleteColumnStatisticsForPartitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteColumnStatisticsForPartitionResponse x
-> DeleteColumnStatisticsForPartitionResponse
$cfrom :: forall x.
DeleteColumnStatisticsForPartitionResponse
-> Rep DeleteColumnStatisticsForPartitionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteColumnStatisticsForPartitionResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'deleteColumnStatisticsForPartitionResponse_httpStatus' - The response's http status code.
newDeleteColumnStatisticsForPartitionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteColumnStatisticsForPartitionResponse
newDeleteColumnStatisticsForPartitionResponse :: Int -> DeleteColumnStatisticsForPartitionResponse
newDeleteColumnStatisticsForPartitionResponse
  Int
pHttpStatus_ =
    DeleteColumnStatisticsForPartitionResponse' :: Int -> DeleteColumnStatisticsForPartitionResponse
DeleteColumnStatisticsForPartitionResponse'
      { $sel:httpStatus:DeleteColumnStatisticsForPartitionResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The response's http status code.
deleteColumnStatisticsForPartitionResponse_httpStatus :: Lens.Lens' DeleteColumnStatisticsForPartitionResponse Prelude.Int
deleteColumnStatisticsForPartitionResponse_httpStatus :: (Int -> f Int)
-> DeleteColumnStatisticsForPartitionResponse
-> f DeleteColumnStatisticsForPartitionResponse
deleteColumnStatisticsForPartitionResponse_httpStatus = (DeleteColumnStatisticsForPartitionResponse -> Int)
-> (DeleteColumnStatisticsForPartitionResponse
    -> Int -> DeleteColumnStatisticsForPartitionResponse)
-> Lens
     DeleteColumnStatisticsForPartitionResponse
     DeleteColumnStatisticsForPartitionResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteColumnStatisticsForPartitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteColumnStatisticsForPartitionResponse' :: DeleteColumnStatisticsForPartitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteColumnStatisticsForPartitionResponse
s@DeleteColumnStatisticsForPartitionResponse' {} Int
a -> DeleteColumnStatisticsForPartitionResponse
s {$sel:httpStatus:DeleteColumnStatisticsForPartitionResponse' :: Int
httpStatus = Int
a} :: DeleteColumnStatisticsForPartitionResponse)

instance
  Prelude.NFData
    DeleteColumnStatisticsForPartitionResponse