{-# 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.DataBrew.UpdateDataset
-- 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)
--
-- Modifies the definition of an existing DataBrew dataset.
module Amazonka.DataBrew.UpdateDataset
  ( -- * Creating a Request
    UpdateDataset (..),
    newUpdateDataset,

    -- * Request Lenses
    updateDataset_pathOptions,
    updateDataset_formatOptions,
    updateDataset_format,
    updateDataset_name,
    updateDataset_input,

    -- * Destructuring the Response
    UpdateDatasetResponse (..),
    newUpdateDatasetResponse,

    -- * Response Lenses
    updateDatasetResponse_httpStatus,
    updateDatasetResponse_name,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DataBrew.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:/ 'newUpdateDataset' smart constructor.
data UpdateDataset = UpdateDataset'
  { -- | A set of options that defines how DataBrew interprets an Amazon S3 path
    -- of the dataset.
    UpdateDataset -> Maybe PathOptions
pathOptions :: Prelude.Maybe PathOptions,
    UpdateDataset -> Maybe FormatOptions
formatOptions :: Prelude.Maybe FormatOptions,
    -- | The file format of a dataset that is created from an Amazon S3 file or
    -- folder.
    UpdateDataset -> Maybe InputFormat
format :: Prelude.Maybe InputFormat,
    -- | The name of the dataset to be updated.
    UpdateDataset -> Text
name :: Prelude.Text,
    UpdateDataset -> Input
input :: Input
  }
  deriving (UpdateDataset -> UpdateDataset -> Bool
(UpdateDataset -> UpdateDataset -> Bool)
-> (UpdateDataset -> UpdateDataset -> Bool) -> Eq UpdateDataset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDataset -> UpdateDataset -> Bool
$c/= :: UpdateDataset -> UpdateDataset -> Bool
== :: UpdateDataset -> UpdateDataset -> Bool
$c== :: UpdateDataset -> UpdateDataset -> Bool
Prelude.Eq, ReadPrec [UpdateDataset]
ReadPrec UpdateDataset
Int -> ReadS UpdateDataset
ReadS [UpdateDataset]
(Int -> ReadS UpdateDataset)
-> ReadS [UpdateDataset]
-> ReadPrec UpdateDataset
-> ReadPrec [UpdateDataset]
-> Read UpdateDataset
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDataset]
$creadListPrec :: ReadPrec [UpdateDataset]
readPrec :: ReadPrec UpdateDataset
$creadPrec :: ReadPrec UpdateDataset
readList :: ReadS [UpdateDataset]
$creadList :: ReadS [UpdateDataset]
readsPrec :: Int -> ReadS UpdateDataset
$creadsPrec :: Int -> ReadS UpdateDataset
Prelude.Read, Int -> UpdateDataset -> ShowS
[UpdateDataset] -> ShowS
UpdateDataset -> String
(Int -> UpdateDataset -> ShowS)
-> (UpdateDataset -> String)
-> ([UpdateDataset] -> ShowS)
-> Show UpdateDataset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDataset] -> ShowS
$cshowList :: [UpdateDataset] -> ShowS
show :: UpdateDataset -> String
$cshow :: UpdateDataset -> String
showsPrec :: Int -> UpdateDataset -> ShowS
$cshowsPrec :: Int -> UpdateDataset -> ShowS
Prelude.Show, (forall x. UpdateDataset -> Rep UpdateDataset x)
-> (forall x. Rep UpdateDataset x -> UpdateDataset)
-> Generic UpdateDataset
forall x. Rep UpdateDataset x -> UpdateDataset
forall x. UpdateDataset -> Rep UpdateDataset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateDataset x -> UpdateDataset
$cfrom :: forall x. UpdateDataset -> Rep UpdateDataset x
Prelude.Generic)

-- |
-- Create a value of 'UpdateDataset' 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:
--
-- 'pathOptions', 'updateDataset_pathOptions' - A set of options that defines how DataBrew interprets an Amazon S3 path
-- of the dataset.
--
-- 'formatOptions', 'updateDataset_formatOptions' - Undocumented member.
--
-- 'format', 'updateDataset_format' - The file format of a dataset that is created from an Amazon S3 file or
-- folder.
--
-- 'name', 'updateDataset_name' - The name of the dataset to be updated.
--
-- 'input', 'updateDataset_input' - Undocumented member.
newUpdateDataset ::
  -- | 'name'
  Prelude.Text ->
  -- | 'input'
  Input ->
  UpdateDataset
newUpdateDataset :: Text -> Input -> UpdateDataset
newUpdateDataset Text
pName_ Input
pInput_ =
  UpdateDataset' :: Maybe PathOptions
-> Maybe FormatOptions
-> Maybe InputFormat
-> Text
-> Input
-> UpdateDataset
UpdateDataset'
    { $sel:pathOptions:UpdateDataset' :: Maybe PathOptions
pathOptions = Maybe PathOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:formatOptions:UpdateDataset' :: Maybe FormatOptions
formatOptions = Maybe FormatOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:format:UpdateDataset' :: Maybe InputFormat
format = Maybe InputFormat
forall a. Maybe a
Prelude.Nothing,
      $sel:name:UpdateDataset' :: Text
name = Text
pName_,
      $sel:input:UpdateDataset' :: Input
input = Input
pInput_
    }

-- | A set of options that defines how DataBrew interprets an Amazon S3 path
-- of the dataset.
updateDataset_pathOptions :: Lens.Lens' UpdateDataset (Prelude.Maybe PathOptions)
updateDataset_pathOptions :: (Maybe PathOptions -> f (Maybe PathOptions))
-> UpdateDataset -> f UpdateDataset
updateDataset_pathOptions = (UpdateDataset -> Maybe PathOptions)
-> (UpdateDataset -> Maybe PathOptions -> UpdateDataset)
-> Lens
     UpdateDataset UpdateDataset (Maybe PathOptions) (Maybe PathOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDataset' {Maybe PathOptions
pathOptions :: Maybe PathOptions
$sel:pathOptions:UpdateDataset' :: UpdateDataset -> Maybe PathOptions
pathOptions} -> Maybe PathOptions
pathOptions) (\s :: UpdateDataset
s@UpdateDataset' {} Maybe PathOptions
a -> UpdateDataset
s {$sel:pathOptions:UpdateDataset' :: Maybe PathOptions
pathOptions = Maybe PathOptions
a} :: UpdateDataset)

-- | Undocumented member.
updateDataset_formatOptions :: Lens.Lens' UpdateDataset (Prelude.Maybe FormatOptions)
updateDataset_formatOptions :: (Maybe FormatOptions -> f (Maybe FormatOptions))
-> UpdateDataset -> f UpdateDataset
updateDataset_formatOptions = (UpdateDataset -> Maybe FormatOptions)
-> (UpdateDataset -> Maybe FormatOptions -> UpdateDataset)
-> Lens
     UpdateDataset
     UpdateDataset
     (Maybe FormatOptions)
     (Maybe FormatOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDataset' {Maybe FormatOptions
formatOptions :: Maybe FormatOptions
$sel:formatOptions:UpdateDataset' :: UpdateDataset -> Maybe FormatOptions
formatOptions} -> Maybe FormatOptions
formatOptions) (\s :: UpdateDataset
s@UpdateDataset' {} Maybe FormatOptions
a -> UpdateDataset
s {$sel:formatOptions:UpdateDataset' :: Maybe FormatOptions
formatOptions = Maybe FormatOptions
a} :: UpdateDataset)

-- | The file format of a dataset that is created from an Amazon S3 file or
-- folder.
updateDataset_format :: Lens.Lens' UpdateDataset (Prelude.Maybe InputFormat)
updateDataset_format :: (Maybe InputFormat -> f (Maybe InputFormat))
-> UpdateDataset -> f UpdateDataset
updateDataset_format = (UpdateDataset -> Maybe InputFormat)
-> (UpdateDataset -> Maybe InputFormat -> UpdateDataset)
-> Lens
     UpdateDataset UpdateDataset (Maybe InputFormat) (Maybe InputFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDataset' {Maybe InputFormat
format :: Maybe InputFormat
$sel:format:UpdateDataset' :: UpdateDataset -> Maybe InputFormat
format} -> Maybe InputFormat
format) (\s :: UpdateDataset
s@UpdateDataset' {} Maybe InputFormat
a -> UpdateDataset
s {$sel:format:UpdateDataset' :: Maybe InputFormat
format = Maybe InputFormat
a} :: UpdateDataset)

-- | The name of the dataset to be updated.
updateDataset_name :: Lens.Lens' UpdateDataset Prelude.Text
updateDataset_name :: (Text -> f Text) -> UpdateDataset -> f UpdateDataset
updateDataset_name = (UpdateDataset -> Text)
-> (UpdateDataset -> Text -> UpdateDataset)
-> Lens UpdateDataset UpdateDataset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDataset' {Text
name :: Text
$sel:name:UpdateDataset' :: UpdateDataset -> Text
name} -> Text
name) (\s :: UpdateDataset
s@UpdateDataset' {} Text
a -> UpdateDataset
s {$sel:name:UpdateDataset' :: Text
name = Text
a} :: UpdateDataset)

-- | Undocumented member.
updateDataset_input :: Lens.Lens' UpdateDataset Input
updateDataset_input :: (Input -> f Input) -> UpdateDataset -> f UpdateDataset
updateDataset_input = (UpdateDataset -> Input)
-> (UpdateDataset -> Input -> UpdateDataset)
-> Lens UpdateDataset UpdateDataset Input Input
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDataset' {Input
input :: Input
$sel:input:UpdateDataset' :: UpdateDataset -> Input
input} -> Input
input) (\s :: UpdateDataset
s@UpdateDataset' {} Input
a -> UpdateDataset
s {$sel:input:UpdateDataset' :: Input
input = Input
a} :: UpdateDataset)

instance Core.AWSRequest UpdateDataset where
  type
    AWSResponse UpdateDataset =
      UpdateDatasetResponse
  request :: UpdateDataset -> Request UpdateDataset
request = Service -> UpdateDataset -> Request UpdateDataset
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateDataset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateDataset)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateDataset))
-> Logger
-> Service
-> Proxy UpdateDataset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateDataset)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int -> Text -> UpdateDatasetResponse
UpdateDatasetResponse'
            (Int -> Text -> UpdateDatasetResponse)
-> Either String Int
-> Either String (Text -> UpdateDatasetResponse)
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))
            Either String (Text -> UpdateDatasetResponse)
-> Either String Text -> Either String UpdateDatasetResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Name")
      )

instance Prelude.Hashable UpdateDataset

instance Prelude.NFData UpdateDataset

instance Core.ToHeaders UpdateDataset where
  toHeaders :: UpdateDataset -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateDataset -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 UpdateDataset where
  toJSON :: UpdateDataset -> Value
toJSON UpdateDataset' {Maybe InputFormat
Maybe FormatOptions
Maybe PathOptions
Text
Input
input :: Input
name :: Text
format :: Maybe InputFormat
formatOptions :: Maybe FormatOptions
pathOptions :: Maybe PathOptions
$sel:input:UpdateDataset' :: UpdateDataset -> Input
$sel:name:UpdateDataset' :: UpdateDataset -> Text
$sel:format:UpdateDataset' :: UpdateDataset -> Maybe InputFormat
$sel:formatOptions:UpdateDataset' :: UpdateDataset -> Maybe FormatOptions
$sel:pathOptions:UpdateDataset' :: UpdateDataset -> Maybe PathOptions
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"PathOptions" Text -> PathOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PathOptions -> Pair) -> Maybe PathOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PathOptions
pathOptions,
            (Text
"FormatOptions" Text -> FormatOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (FormatOptions -> Pair) -> Maybe FormatOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FormatOptions
formatOptions,
            (Text
"Format" Text -> InputFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (InputFormat -> Pair) -> Maybe InputFormat -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputFormat
format,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Input" Text -> Input -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Input
input)
          ]
      )

instance Core.ToPath UpdateDataset where
  toPath :: UpdateDataset -> ByteString
toPath UpdateDataset' {Maybe InputFormat
Maybe FormatOptions
Maybe PathOptions
Text
Input
input :: Input
name :: Text
format :: Maybe InputFormat
formatOptions :: Maybe FormatOptions
pathOptions :: Maybe PathOptions
$sel:input:UpdateDataset' :: UpdateDataset -> Input
$sel:name:UpdateDataset' :: UpdateDataset -> Text
$sel:format:UpdateDataset' :: UpdateDataset -> Maybe InputFormat
$sel:formatOptions:UpdateDataset' :: UpdateDataset -> Maybe FormatOptions
$sel:pathOptions:UpdateDataset' :: UpdateDataset -> Maybe PathOptions
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/datasets/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]

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

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

-- |
-- Create a value of 'UpdateDatasetResponse' 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', 'updateDatasetResponse_httpStatus' - The response's http status code.
--
-- 'name', 'updateDatasetResponse_name' - The name of the dataset that you updated.
newUpdateDatasetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'name'
  Prelude.Text ->
  UpdateDatasetResponse
newUpdateDatasetResponse :: Int -> Text -> UpdateDatasetResponse
newUpdateDatasetResponse Int
pHttpStatus_ Text
pName_ =
  UpdateDatasetResponse' :: Int -> Text -> UpdateDatasetResponse
UpdateDatasetResponse'
    { $sel:httpStatus:UpdateDatasetResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:name:UpdateDatasetResponse' :: Text
name = Text
pName_
    }

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

-- | The name of the dataset that you updated.
updateDatasetResponse_name :: Lens.Lens' UpdateDatasetResponse Prelude.Text
updateDatasetResponse_name :: (Text -> f Text)
-> UpdateDatasetResponse -> f UpdateDatasetResponse
updateDatasetResponse_name = (UpdateDatasetResponse -> Text)
-> (UpdateDatasetResponse -> Text -> UpdateDatasetResponse)
-> Lens UpdateDatasetResponse UpdateDatasetResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDatasetResponse' {Text
name :: Text
$sel:name:UpdateDatasetResponse' :: UpdateDatasetResponse -> Text
name} -> Text
name) (\s :: UpdateDatasetResponse
s@UpdateDatasetResponse' {} Text
a -> UpdateDatasetResponse
s {$sel:name:UpdateDatasetResponse' :: Text
name = Text
a} :: UpdateDatasetResponse)

instance Prelude.NFData UpdateDatasetResponse