{-# 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.ChimeSDKMessaging.UpdateChannelFlow
-- 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)
--
-- Updates channel flow attributes. This is a developer API.
module Amazonka.ChimeSDKMessaging.UpdateChannelFlow
  ( -- * Creating a Request
    UpdateChannelFlow (..),
    newUpdateChannelFlow,

    -- * Request Lenses
    updateChannelFlow_channelFlowArn,
    updateChannelFlow_processors,
    updateChannelFlow_name,

    -- * Destructuring the Response
    UpdateChannelFlowResponse (..),
    newUpdateChannelFlowResponse,

    -- * Response Lenses
    updateChannelFlowResponse_channelFlowArn,
    updateChannelFlowResponse_httpStatus,
  )
where

import Amazonka.ChimeSDKMessaging.Types
import qualified Amazonka.Core as Core
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:/ 'newUpdateChannelFlow' smart constructor.
data UpdateChannelFlow = UpdateChannelFlow'
  { -- | The ARN of the channel flow.
    UpdateChannelFlow -> Text
channelFlowArn :: Prelude.Text,
    -- | Information about the processor Lambda functions
    UpdateChannelFlow -> NonEmpty Processor
processors :: Prelude.NonEmpty Processor,
    -- | The name of the channel flow.
    UpdateChannelFlow -> Sensitive Text
name :: Core.Sensitive Prelude.Text
  }
  deriving (UpdateChannelFlow -> UpdateChannelFlow -> Bool
(UpdateChannelFlow -> UpdateChannelFlow -> Bool)
-> (UpdateChannelFlow -> UpdateChannelFlow -> Bool)
-> Eq UpdateChannelFlow
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateChannelFlow -> UpdateChannelFlow -> Bool
$c/= :: UpdateChannelFlow -> UpdateChannelFlow -> Bool
== :: UpdateChannelFlow -> UpdateChannelFlow -> Bool
$c== :: UpdateChannelFlow -> UpdateChannelFlow -> Bool
Prelude.Eq, Int -> UpdateChannelFlow -> ShowS
[UpdateChannelFlow] -> ShowS
UpdateChannelFlow -> String
(Int -> UpdateChannelFlow -> ShowS)
-> (UpdateChannelFlow -> String)
-> ([UpdateChannelFlow] -> ShowS)
-> Show UpdateChannelFlow
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateChannelFlow] -> ShowS
$cshowList :: [UpdateChannelFlow] -> ShowS
show :: UpdateChannelFlow -> String
$cshow :: UpdateChannelFlow -> String
showsPrec :: Int -> UpdateChannelFlow -> ShowS
$cshowsPrec :: Int -> UpdateChannelFlow -> ShowS
Prelude.Show, (forall x. UpdateChannelFlow -> Rep UpdateChannelFlow x)
-> (forall x. Rep UpdateChannelFlow x -> UpdateChannelFlow)
-> Generic UpdateChannelFlow
forall x. Rep UpdateChannelFlow x -> UpdateChannelFlow
forall x. UpdateChannelFlow -> Rep UpdateChannelFlow x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateChannelFlow x -> UpdateChannelFlow
$cfrom :: forall x. UpdateChannelFlow -> Rep UpdateChannelFlow x
Prelude.Generic)

-- |
-- Create a value of 'UpdateChannelFlow' 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:
--
-- 'channelFlowArn', 'updateChannelFlow_channelFlowArn' - The ARN of the channel flow.
--
-- 'processors', 'updateChannelFlow_processors' - Information about the processor Lambda functions
--
-- 'name', 'updateChannelFlow_name' - The name of the channel flow.
newUpdateChannelFlow ::
  -- | 'channelFlowArn'
  Prelude.Text ->
  -- | 'processors'
  Prelude.NonEmpty Processor ->
  -- | 'name'
  Prelude.Text ->
  UpdateChannelFlow
newUpdateChannelFlow :: Text -> NonEmpty Processor -> Text -> UpdateChannelFlow
newUpdateChannelFlow
  Text
pChannelFlowArn_
  NonEmpty Processor
pProcessors_
  Text
pName_ =
    UpdateChannelFlow' :: Text -> NonEmpty Processor -> Sensitive Text -> UpdateChannelFlow
UpdateChannelFlow'
      { $sel:channelFlowArn:UpdateChannelFlow' :: Text
channelFlowArn =
          Text
pChannelFlowArn_,
        $sel:processors:UpdateChannelFlow' :: NonEmpty Processor
processors = Tagged (NonEmpty Processor) (Identity (NonEmpty Processor))
-> Tagged (NonEmpty Processor) (Identity (NonEmpty Processor))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Processor) (Identity (NonEmpty Processor))
 -> Tagged (NonEmpty Processor) (Identity (NonEmpty Processor)))
-> NonEmpty Processor -> NonEmpty Processor
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Processor
pProcessors_,
        $sel:name:UpdateChannelFlow' :: Sensitive Text
name = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
 -> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pName_
      }

-- | The ARN of the channel flow.
updateChannelFlow_channelFlowArn :: Lens.Lens' UpdateChannelFlow Prelude.Text
updateChannelFlow_channelFlowArn :: (Text -> f Text) -> UpdateChannelFlow -> f UpdateChannelFlow
updateChannelFlow_channelFlowArn = (UpdateChannelFlow -> Text)
-> (UpdateChannelFlow -> Text -> UpdateChannelFlow)
-> Lens UpdateChannelFlow UpdateChannelFlow Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateChannelFlow' {Text
channelFlowArn :: Text
$sel:channelFlowArn:UpdateChannelFlow' :: UpdateChannelFlow -> Text
channelFlowArn} -> Text
channelFlowArn) (\s :: UpdateChannelFlow
s@UpdateChannelFlow' {} Text
a -> UpdateChannelFlow
s {$sel:channelFlowArn:UpdateChannelFlow' :: Text
channelFlowArn = Text
a} :: UpdateChannelFlow)

-- | Information about the processor Lambda functions
updateChannelFlow_processors :: Lens.Lens' UpdateChannelFlow (Prelude.NonEmpty Processor)
updateChannelFlow_processors :: (NonEmpty Processor -> f (NonEmpty Processor))
-> UpdateChannelFlow -> f UpdateChannelFlow
updateChannelFlow_processors = (UpdateChannelFlow -> NonEmpty Processor)
-> (UpdateChannelFlow -> NonEmpty Processor -> UpdateChannelFlow)
-> Lens
     UpdateChannelFlow
     UpdateChannelFlow
     (NonEmpty Processor)
     (NonEmpty Processor)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateChannelFlow' {NonEmpty Processor
processors :: NonEmpty Processor
$sel:processors:UpdateChannelFlow' :: UpdateChannelFlow -> NonEmpty Processor
processors} -> NonEmpty Processor
processors) (\s :: UpdateChannelFlow
s@UpdateChannelFlow' {} NonEmpty Processor
a -> UpdateChannelFlow
s {$sel:processors:UpdateChannelFlow' :: NonEmpty Processor
processors = NonEmpty Processor
a} :: UpdateChannelFlow) ((NonEmpty Processor -> f (NonEmpty Processor))
 -> UpdateChannelFlow -> f UpdateChannelFlow)
-> ((NonEmpty Processor -> f (NonEmpty Processor))
    -> NonEmpty Processor -> f (NonEmpty Processor))
-> (NonEmpty Processor -> f (NonEmpty Processor))
-> UpdateChannelFlow
-> f UpdateChannelFlow
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Processor -> f (NonEmpty Processor))
-> NonEmpty Processor -> f (NonEmpty Processor)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the channel flow.
updateChannelFlow_name :: Lens.Lens' UpdateChannelFlow Prelude.Text
updateChannelFlow_name :: (Text -> f Text) -> UpdateChannelFlow -> f UpdateChannelFlow
updateChannelFlow_name = (UpdateChannelFlow -> Sensitive Text)
-> (UpdateChannelFlow -> Sensitive Text -> UpdateChannelFlow)
-> Lens
     UpdateChannelFlow
     UpdateChannelFlow
     (Sensitive Text)
     (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateChannelFlow' {Sensitive Text
name :: Sensitive Text
$sel:name:UpdateChannelFlow' :: UpdateChannelFlow -> Sensitive Text
name} -> Sensitive Text
name) (\s :: UpdateChannelFlow
s@UpdateChannelFlow' {} Sensitive Text
a -> UpdateChannelFlow
s {$sel:name:UpdateChannelFlow' :: Sensitive Text
name = Sensitive Text
a} :: UpdateChannelFlow) ((Sensitive Text -> f (Sensitive Text))
 -> UpdateChannelFlow -> f UpdateChannelFlow)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> UpdateChannelFlow
-> f UpdateChannelFlow
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive

instance Core.AWSRequest UpdateChannelFlow where
  type
    AWSResponse UpdateChannelFlow =
      UpdateChannelFlowResponse
  request :: UpdateChannelFlow -> Request UpdateChannelFlow
request = Service -> UpdateChannelFlow -> Request UpdateChannelFlow
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateChannelFlow
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateChannelFlow)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateChannelFlow))
-> Logger
-> Service
-> Proxy UpdateChannelFlow
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateChannelFlow)))
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 ->
          Maybe Text -> Int -> UpdateChannelFlowResponse
UpdateChannelFlowResponse'
            (Maybe Text -> Int -> UpdateChannelFlowResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateChannelFlowResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ChannelFlowArn")
            Either String (Int -> UpdateChannelFlowResponse)
-> Either String Int -> Either String UpdateChannelFlowResponse
forall (f :: * -> *) a b. Applicative f => 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 UpdateChannelFlow

instance Prelude.NFData UpdateChannelFlow

instance Core.ToHeaders UpdateChannelFlow where
  toHeaders :: UpdateChannelFlow -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateChannelFlow -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON UpdateChannelFlow where
  toJSON :: UpdateChannelFlow -> Value
toJSON UpdateChannelFlow' {NonEmpty Processor
Text
Sensitive Text
name :: Sensitive Text
processors :: NonEmpty Processor
channelFlowArn :: Text
$sel:name:UpdateChannelFlow' :: UpdateChannelFlow -> Sensitive Text
$sel:processors:UpdateChannelFlow' :: UpdateChannelFlow -> NonEmpty Processor
$sel:channelFlowArn:UpdateChannelFlow' :: UpdateChannelFlow -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Processors" Text -> NonEmpty Processor -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Processor
processors),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
name)
          ]
      )

instance Core.ToPath UpdateChannelFlow where
  toPath :: UpdateChannelFlow -> ByteString
toPath UpdateChannelFlow' {NonEmpty Processor
Text
Sensitive Text
name :: Sensitive Text
processors :: NonEmpty Processor
channelFlowArn :: Text
$sel:name:UpdateChannelFlow' :: UpdateChannelFlow -> Sensitive Text
$sel:processors:UpdateChannelFlow' :: UpdateChannelFlow -> NonEmpty Processor
$sel:channelFlowArn:UpdateChannelFlow' :: UpdateChannelFlow -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/channel-flows/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
channelFlowArn]

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

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

-- |
-- Create a value of 'UpdateChannelFlowResponse' 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:
--
-- 'channelFlowArn', 'updateChannelFlowResponse_channelFlowArn' - The ARN of the channel flow.
--
-- 'httpStatus', 'updateChannelFlowResponse_httpStatus' - The response's http status code.
newUpdateChannelFlowResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateChannelFlowResponse
newUpdateChannelFlowResponse :: Int -> UpdateChannelFlowResponse
newUpdateChannelFlowResponse Int
pHttpStatus_ =
  UpdateChannelFlowResponse' :: Maybe Text -> Int -> UpdateChannelFlowResponse
UpdateChannelFlowResponse'
    { $sel:channelFlowArn:UpdateChannelFlowResponse' :: Maybe Text
channelFlowArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateChannelFlowResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ARN of the channel flow.
updateChannelFlowResponse_channelFlowArn :: Lens.Lens' UpdateChannelFlowResponse (Prelude.Maybe Prelude.Text)
updateChannelFlowResponse_channelFlowArn :: (Maybe Text -> f (Maybe Text))
-> UpdateChannelFlowResponse -> f UpdateChannelFlowResponse
updateChannelFlowResponse_channelFlowArn = (UpdateChannelFlowResponse -> Maybe Text)
-> (UpdateChannelFlowResponse
    -> Maybe Text -> UpdateChannelFlowResponse)
-> Lens
     UpdateChannelFlowResponse
     UpdateChannelFlowResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateChannelFlowResponse' {Maybe Text
channelFlowArn :: Maybe Text
$sel:channelFlowArn:UpdateChannelFlowResponse' :: UpdateChannelFlowResponse -> Maybe Text
channelFlowArn} -> Maybe Text
channelFlowArn) (\s :: UpdateChannelFlowResponse
s@UpdateChannelFlowResponse' {} Maybe Text
a -> UpdateChannelFlowResponse
s {$sel:channelFlowArn:UpdateChannelFlowResponse' :: Maybe Text
channelFlowArn = Maybe Text
a} :: UpdateChannelFlowResponse)

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

instance Prelude.NFData UpdateChannelFlowResponse