{-# 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.Connect.UpdateHoursOfOperation
-- 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 the hours of operation.
module Amazonka.Connect.UpdateHoursOfOperation
  ( -- * Creating a Request
    UpdateHoursOfOperation (..),
    newUpdateHoursOfOperation,

    -- * Request Lenses
    updateHoursOfOperation_config,
    updateHoursOfOperation_name,
    updateHoursOfOperation_timeZone,
    updateHoursOfOperation_description,
    updateHoursOfOperation_instanceId,
    updateHoursOfOperation_hoursOfOperationId,

    -- * Destructuring the Response
    UpdateHoursOfOperationResponse (..),
    newUpdateHoursOfOperationResponse,
  )
where

import Amazonka.Connect.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:/ 'newUpdateHoursOfOperation' smart constructor.
data UpdateHoursOfOperation = UpdateHoursOfOperation'
  { -- | Configuration information of the hours of operation.
    UpdateHoursOfOperation -> Maybe [HoursOfOperationConfig]
config :: Prelude.Maybe [HoursOfOperationConfig],
    -- | The name of the hours of operation.
    UpdateHoursOfOperation -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The time zone of the hours of operation.
    UpdateHoursOfOperation -> Maybe Text
timeZone :: Prelude.Maybe Prelude.Text,
    -- | The description of the hours of operation.
    UpdateHoursOfOperation -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    UpdateHoursOfOperation -> Text
instanceId :: Prelude.Text,
    -- | The identifier of the hours of operation.
    UpdateHoursOfOperation -> Text
hoursOfOperationId :: Prelude.Text
  }
  deriving (UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool
(UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool)
-> (UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool)
-> Eq UpdateHoursOfOperation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool
$c/= :: UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool
== :: UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool
$c== :: UpdateHoursOfOperation -> UpdateHoursOfOperation -> Bool
Prelude.Eq, ReadPrec [UpdateHoursOfOperation]
ReadPrec UpdateHoursOfOperation
Int -> ReadS UpdateHoursOfOperation
ReadS [UpdateHoursOfOperation]
(Int -> ReadS UpdateHoursOfOperation)
-> ReadS [UpdateHoursOfOperation]
-> ReadPrec UpdateHoursOfOperation
-> ReadPrec [UpdateHoursOfOperation]
-> Read UpdateHoursOfOperation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateHoursOfOperation]
$creadListPrec :: ReadPrec [UpdateHoursOfOperation]
readPrec :: ReadPrec UpdateHoursOfOperation
$creadPrec :: ReadPrec UpdateHoursOfOperation
readList :: ReadS [UpdateHoursOfOperation]
$creadList :: ReadS [UpdateHoursOfOperation]
readsPrec :: Int -> ReadS UpdateHoursOfOperation
$creadsPrec :: Int -> ReadS UpdateHoursOfOperation
Prelude.Read, Int -> UpdateHoursOfOperation -> ShowS
[UpdateHoursOfOperation] -> ShowS
UpdateHoursOfOperation -> String
(Int -> UpdateHoursOfOperation -> ShowS)
-> (UpdateHoursOfOperation -> String)
-> ([UpdateHoursOfOperation] -> ShowS)
-> Show UpdateHoursOfOperation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateHoursOfOperation] -> ShowS
$cshowList :: [UpdateHoursOfOperation] -> ShowS
show :: UpdateHoursOfOperation -> String
$cshow :: UpdateHoursOfOperation -> String
showsPrec :: Int -> UpdateHoursOfOperation -> ShowS
$cshowsPrec :: Int -> UpdateHoursOfOperation -> ShowS
Prelude.Show, (forall x. UpdateHoursOfOperation -> Rep UpdateHoursOfOperation x)
-> (forall x.
    Rep UpdateHoursOfOperation x -> UpdateHoursOfOperation)
-> Generic UpdateHoursOfOperation
forall x. Rep UpdateHoursOfOperation x -> UpdateHoursOfOperation
forall x. UpdateHoursOfOperation -> Rep UpdateHoursOfOperation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateHoursOfOperation x -> UpdateHoursOfOperation
$cfrom :: forall x. UpdateHoursOfOperation -> Rep UpdateHoursOfOperation x
Prelude.Generic)

-- |
-- Create a value of 'UpdateHoursOfOperation' 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:
--
-- 'config', 'updateHoursOfOperation_config' - Configuration information of the hours of operation.
--
-- 'name', 'updateHoursOfOperation_name' - The name of the hours of operation.
--
-- 'timeZone', 'updateHoursOfOperation_timeZone' - The time zone of the hours of operation.
--
-- 'description', 'updateHoursOfOperation_description' - The description of the hours of operation.
--
-- 'instanceId', 'updateHoursOfOperation_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
--
-- 'hoursOfOperationId', 'updateHoursOfOperation_hoursOfOperationId' - The identifier of the hours of operation.
newUpdateHoursOfOperation ::
  -- | 'instanceId'
  Prelude.Text ->
  -- | 'hoursOfOperationId'
  Prelude.Text ->
  UpdateHoursOfOperation
newUpdateHoursOfOperation :: Text -> Text -> UpdateHoursOfOperation
newUpdateHoursOfOperation
  Text
pInstanceId_
  Text
pHoursOfOperationId_ =
    UpdateHoursOfOperation' :: Maybe [HoursOfOperationConfig]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> UpdateHoursOfOperation
UpdateHoursOfOperation'
      { $sel:config:UpdateHoursOfOperation' :: Maybe [HoursOfOperationConfig]
config = Maybe [HoursOfOperationConfig]
forall a. Maybe a
Prelude.Nothing,
        $sel:name:UpdateHoursOfOperation' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:timeZone:UpdateHoursOfOperation' :: Maybe Text
timeZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:UpdateHoursOfOperation' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:instanceId:UpdateHoursOfOperation' :: Text
instanceId = Text
pInstanceId_,
        $sel:hoursOfOperationId:UpdateHoursOfOperation' :: Text
hoursOfOperationId = Text
pHoursOfOperationId_
      }

-- | Configuration information of the hours of operation.
updateHoursOfOperation_config :: Lens.Lens' UpdateHoursOfOperation (Prelude.Maybe [HoursOfOperationConfig])
updateHoursOfOperation_config :: (Maybe [HoursOfOperationConfig]
 -> f (Maybe [HoursOfOperationConfig]))
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_config = (UpdateHoursOfOperation -> Maybe [HoursOfOperationConfig])
-> (UpdateHoursOfOperation
    -> Maybe [HoursOfOperationConfig] -> UpdateHoursOfOperation)
-> Lens
     UpdateHoursOfOperation
     UpdateHoursOfOperation
     (Maybe [HoursOfOperationConfig])
     (Maybe [HoursOfOperationConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Maybe [HoursOfOperationConfig]
config :: Maybe [HoursOfOperationConfig]
$sel:config:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe [HoursOfOperationConfig]
config} -> Maybe [HoursOfOperationConfig]
config) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Maybe [HoursOfOperationConfig]
a -> UpdateHoursOfOperation
s {$sel:config:UpdateHoursOfOperation' :: Maybe [HoursOfOperationConfig]
config = Maybe [HoursOfOperationConfig]
a} :: UpdateHoursOfOperation) ((Maybe [HoursOfOperationConfig]
  -> f (Maybe [HoursOfOperationConfig]))
 -> UpdateHoursOfOperation -> f UpdateHoursOfOperation)
-> ((Maybe [HoursOfOperationConfig]
     -> f (Maybe [HoursOfOperationConfig]))
    -> Maybe [HoursOfOperationConfig]
    -> f (Maybe [HoursOfOperationConfig]))
-> (Maybe [HoursOfOperationConfig]
    -> f (Maybe [HoursOfOperationConfig]))
-> UpdateHoursOfOperation
-> f UpdateHoursOfOperation
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
-> Iso
     (Maybe [HoursOfOperationConfig])
     (Maybe [HoursOfOperationConfig])
     (Maybe [HoursOfOperationConfig])
     (Maybe [HoursOfOperationConfig])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
  [HoursOfOperationConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the hours of operation.
updateHoursOfOperation_name :: Lens.Lens' UpdateHoursOfOperation (Prelude.Maybe Prelude.Text)
updateHoursOfOperation_name :: (Maybe Text -> f (Maybe Text))
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_name = (UpdateHoursOfOperation -> Maybe Text)
-> (UpdateHoursOfOperation -> Maybe Text -> UpdateHoursOfOperation)
-> Lens
     UpdateHoursOfOperation
     UpdateHoursOfOperation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Maybe Text
name :: Maybe Text
$sel:name:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Maybe Text
a -> UpdateHoursOfOperation
s {$sel:name:UpdateHoursOfOperation' :: Maybe Text
name = Maybe Text
a} :: UpdateHoursOfOperation)

-- | The time zone of the hours of operation.
updateHoursOfOperation_timeZone :: Lens.Lens' UpdateHoursOfOperation (Prelude.Maybe Prelude.Text)
updateHoursOfOperation_timeZone :: (Maybe Text -> f (Maybe Text))
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_timeZone = (UpdateHoursOfOperation -> Maybe Text)
-> (UpdateHoursOfOperation -> Maybe Text -> UpdateHoursOfOperation)
-> Lens
     UpdateHoursOfOperation
     UpdateHoursOfOperation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Maybe Text
timeZone :: Maybe Text
$sel:timeZone:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
timeZone} -> Maybe Text
timeZone) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Maybe Text
a -> UpdateHoursOfOperation
s {$sel:timeZone:UpdateHoursOfOperation' :: Maybe Text
timeZone = Maybe Text
a} :: UpdateHoursOfOperation)

-- | The description of the hours of operation.
updateHoursOfOperation_description :: Lens.Lens' UpdateHoursOfOperation (Prelude.Maybe Prelude.Text)
updateHoursOfOperation_description :: (Maybe Text -> f (Maybe Text))
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_description = (UpdateHoursOfOperation -> Maybe Text)
-> (UpdateHoursOfOperation -> Maybe Text -> UpdateHoursOfOperation)
-> Lens
     UpdateHoursOfOperation
     UpdateHoursOfOperation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Maybe Text
description :: Maybe Text
$sel:description:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Maybe Text
a -> UpdateHoursOfOperation
s {$sel:description:UpdateHoursOfOperation' :: Maybe Text
description = Maybe Text
a} :: UpdateHoursOfOperation)

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
updateHoursOfOperation_instanceId :: Lens.Lens' UpdateHoursOfOperation Prelude.Text
updateHoursOfOperation_instanceId :: (Text -> f Text)
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_instanceId = (UpdateHoursOfOperation -> Text)
-> (UpdateHoursOfOperation -> Text -> UpdateHoursOfOperation)
-> Lens UpdateHoursOfOperation UpdateHoursOfOperation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Text
instanceId :: Text
$sel:instanceId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
instanceId} -> Text
instanceId) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Text
a -> UpdateHoursOfOperation
s {$sel:instanceId:UpdateHoursOfOperation' :: Text
instanceId = Text
a} :: UpdateHoursOfOperation)

-- | The identifier of the hours of operation.
updateHoursOfOperation_hoursOfOperationId :: Lens.Lens' UpdateHoursOfOperation Prelude.Text
updateHoursOfOperation_hoursOfOperationId :: (Text -> f Text)
-> UpdateHoursOfOperation -> f UpdateHoursOfOperation
updateHoursOfOperation_hoursOfOperationId = (UpdateHoursOfOperation -> Text)
-> (UpdateHoursOfOperation -> Text -> UpdateHoursOfOperation)
-> Lens UpdateHoursOfOperation UpdateHoursOfOperation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateHoursOfOperation' {Text
hoursOfOperationId :: Text
$sel:hoursOfOperationId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
hoursOfOperationId} -> Text
hoursOfOperationId) (\s :: UpdateHoursOfOperation
s@UpdateHoursOfOperation' {} Text
a -> UpdateHoursOfOperation
s {$sel:hoursOfOperationId:UpdateHoursOfOperation' :: Text
hoursOfOperationId = Text
a} :: UpdateHoursOfOperation)

instance Core.AWSRequest UpdateHoursOfOperation where
  type
    AWSResponse UpdateHoursOfOperation =
      UpdateHoursOfOperationResponse
  request :: UpdateHoursOfOperation -> Request UpdateHoursOfOperation
request = Service -> UpdateHoursOfOperation -> Request UpdateHoursOfOperation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateHoursOfOperation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateHoursOfOperation)))
response =
    AWSResponse UpdateHoursOfOperation
-> Logger
-> Service
-> Proxy UpdateHoursOfOperation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateHoursOfOperation)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
      AWSResponse UpdateHoursOfOperation
UpdateHoursOfOperationResponse
UpdateHoursOfOperationResponse'

instance Prelude.Hashable UpdateHoursOfOperation

instance Prelude.NFData UpdateHoursOfOperation

instance Core.ToHeaders UpdateHoursOfOperation where
  toHeaders :: UpdateHoursOfOperation -> [Header]
toHeaders =
    [Header] -> UpdateHoursOfOperation -> [Header]
forall a b. a -> b -> a
Prelude.const
      ( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON UpdateHoursOfOperation where
  toJSON :: UpdateHoursOfOperation -> Value
toJSON UpdateHoursOfOperation' {Maybe [HoursOfOperationConfig]
Maybe Text
Text
hoursOfOperationId :: Text
instanceId :: Text
description :: Maybe Text
timeZone :: Maybe Text
name :: Maybe Text
config :: Maybe [HoursOfOperationConfig]
$sel:hoursOfOperationId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
$sel:instanceId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
$sel:description:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:timeZone:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:name:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:config:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe [HoursOfOperationConfig]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Config" Text -> [HoursOfOperationConfig] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([HoursOfOperationConfig] -> Pair)
-> Maybe [HoursOfOperationConfig] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HoursOfOperationConfig]
config,
            (Text
"Name" 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
name,
            (Text
"TimeZone" 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
timeZone,
            (Text
"Description" 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
description
          ]
      )

instance Core.ToPath UpdateHoursOfOperation where
  toPath :: UpdateHoursOfOperation -> ByteString
toPath UpdateHoursOfOperation' {Maybe [HoursOfOperationConfig]
Maybe Text
Text
hoursOfOperationId :: Text
instanceId :: Text
description :: Maybe Text
timeZone :: Maybe Text
name :: Maybe Text
config :: Maybe [HoursOfOperationConfig]
$sel:hoursOfOperationId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
$sel:instanceId:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Text
$sel:description:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:timeZone:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:name:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe Text
$sel:config:UpdateHoursOfOperation' :: UpdateHoursOfOperation -> Maybe [HoursOfOperationConfig]
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/hours-of-operations/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId,
        ByteString
"/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
hoursOfOperationId
      ]

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

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

-- |
-- Create a value of 'UpdateHoursOfOperationResponse' 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.
newUpdateHoursOfOperationResponse ::
  UpdateHoursOfOperationResponse
newUpdateHoursOfOperationResponse :: UpdateHoursOfOperationResponse
newUpdateHoursOfOperationResponse =
  UpdateHoursOfOperationResponse
UpdateHoursOfOperationResponse'

instance
  Prelude.NFData
    UpdateHoursOfOperationResponse