{-# 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.FinSpaceData.GetWorkingLocation
-- 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)
--
-- A temporary Amazon S3 location to copy your files from a source location
-- to stage or use as a scratch space in Habanero notebook.
module Amazonka.FinSpaceData.GetWorkingLocation
  ( -- * Creating a Request
    GetWorkingLocation (..),
    newGetWorkingLocation,

    -- * Request Lenses
    getWorkingLocation_locationType,

    -- * Destructuring the Response
    GetWorkingLocationResponse (..),
    newGetWorkingLocationResponse,

    -- * Response Lenses
    getWorkingLocationResponse_s3Path,
    getWorkingLocationResponse_s3Uri,
    getWorkingLocationResponse_s3Bucket,
    getWorkingLocationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.FinSpaceData.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:/ 'newGetWorkingLocation' smart constructor.
data GetWorkingLocation = GetWorkingLocation'
  { -- | Specify the type of the working location.
    --
    -- -   @SAGEMAKER@ - Use the Amazon S3 location as a temporary location to
    --     store data content when working with FinSpace Notebooks that run on
    --     SageMaker studio.
    --
    -- -   @INGESTION@ - Use the Amazon S3 location as a staging location to
    --     copy your data content and then use the location with the changeset
    --     creation operation.
    GetWorkingLocation -> Maybe LocationType
locationType :: Prelude.Maybe LocationType
  }
  deriving (GetWorkingLocation -> GetWorkingLocation -> Bool
(GetWorkingLocation -> GetWorkingLocation -> Bool)
-> (GetWorkingLocation -> GetWorkingLocation -> Bool)
-> Eq GetWorkingLocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWorkingLocation -> GetWorkingLocation -> Bool
$c/= :: GetWorkingLocation -> GetWorkingLocation -> Bool
== :: GetWorkingLocation -> GetWorkingLocation -> Bool
$c== :: GetWorkingLocation -> GetWorkingLocation -> Bool
Prelude.Eq, ReadPrec [GetWorkingLocation]
ReadPrec GetWorkingLocation
Int -> ReadS GetWorkingLocation
ReadS [GetWorkingLocation]
(Int -> ReadS GetWorkingLocation)
-> ReadS [GetWorkingLocation]
-> ReadPrec GetWorkingLocation
-> ReadPrec [GetWorkingLocation]
-> Read GetWorkingLocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWorkingLocation]
$creadListPrec :: ReadPrec [GetWorkingLocation]
readPrec :: ReadPrec GetWorkingLocation
$creadPrec :: ReadPrec GetWorkingLocation
readList :: ReadS [GetWorkingLocation]
$creadList :: ReadS [GetWorkingLocation]
readsPrec :: Int -> ReadS GetWorkingLocation
$creadsPrec :: Int -> ReadS GetWorkingLocation
Prelude.Read, Int -> GetWorkingLocation -> ShowS
[GetWorkingLocation] -> ShowS
GetWorkingLocation -> String
(Int -> GetWorkingLocation -> ShowS)
-> (GetWorkingLocation -> String)
-> ([GetWorkingLocation] -> ShowS)
-> Show GetWorkingLocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWorkingLocation] -> ShowS
$cshowList :: [GetWorkingLocation] -> ShowS
show :: GetWorkingLocation -> String
$cshow :: GetWorkingLocation -> String
showsPrec :: Int -> GetWorkingLocation -> ShowS
$cshowsPrec :: Int -> GetWorkingLocation -> ShowS
Prelude.Show, (forall x. GetWorkingLocation -> Rep GetWorkingLocation x)
-> (forall x. Rep GetWorkingLocation x -> GetWorkingLocation)
-> Generic GetWorkingLocation
forall x. Rep GetWorkingLocation x -> GetWorkingLocation
forall x. GetWorkingLocation -> Rep GetWorkingLocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetWorkingLocation x -> GetWorkingLocation
$cfrom :: forall x. GetWorkingLocation -> Rep GetWorkingLocation x
Prelude.Generic)

-- |
-- Create a value of 'GetWorkingLocation' 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:
--
-- 'locationType', 'getWorkingLocation_locationType' - Specify the type of the working location.
--
-- -   @SAGEMAKER@ - Use the Amazon S3 location as a temporary location to
--     store data content when working with FinSpace Notebooks that run on
--     SageMaker studio.
--
-- -   @INGESTION@ - Use the Amazon S3 location as a staging location to
--     copy your data content and then use the location with the changeset
--     creation operation.
newGetWorkingLocation ::
  GetWorkingLocation
newGetWorkingLocation :: GetWorkingLocation
newGetWorkingLocation =
  GetWorkingLocation' :: Maybe LocationType -> GetWorkingLocation
GetWorkingLocation' {$sel:locationType:GetWorkingLocation' :: Maybe LocationType
locationType = Maybe LocationType
forall a. Maybe a
Prelude.Nothing}

-- | Specify the type of the working location.
--
-- -   @SAGEMAKER@ - Use the Amazon S3 location as a temporary location to
--     store data content when working with FinSpace Notebooks that run on
--     SageMaker studio.
--
-- -   @INGESTION@ - Use the Amazon S3 location as a staging location to
--     copy your data content and then use the location with the changeset
--     creation operation.
getWorkingLocation_locationType :: Lens.Lens' GetWorkingLocation (Prelude.Maybe LocationType)
getWorkingLocation_locationType :: (Maybe LocationType -> f (Maybe LocationType))
-> GetWorkingLocation -> f GetWorkingLocation
getWorkingLocation_locationType = (GetWorkingLocation -> Maybe LocationType)
-> (GetWorkingLocation -> Maybe LocationType -> GetWorkingLocation)
-> Lens
     GetWorkingLocation
     GetWorkingLocation
     (Maybe LocationType)
     (Maybe LocationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkingLocation' {Maybe LocationType
locationType :: Maybe LocationType
$sel:locationType:GetWorkingLocation' :: GetWorkingLocation -> Maybe LocationType
locationType} -> Maybe LocationType
locationType) (\s :: GetWorkingLocation
s@GetWorkingLocation' {} Maybe LocationType
a -> GetWorkingLocation
s {$sel:locationType:GetWorkingLocation' :: Maybe LocationType
locationType = Maybe LocationType
a} :: GetWorkingLocation)

instance Core.AWSRequest GetWorkingLocation where
  type
    AWSResponse GetWorkingLocation =
      GetWorkingLocationResponse
  request :: GetWorkingLocation -> Request GetWorkingLocation
request = Service -> GetWorkingLocation -> Request GetWorkingLocation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetWorkingLocation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetWorkingLocation)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetWorkingLocation))
-> Logger
-> Service
-> Proxy GetWorkingLocation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetWorkingLocation)))
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
-> Maybe Text -> Maybe Text -> Int -> GetWorkingLocationResponse
GetWorkingLocationResponse'
            (Maybe Text
 -> Maybe Text -> Maybe Text -> Int -> GetWorkingLocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Maybe Text -> Int -> GetWorkingLocationResponse)
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
"s3Path")
            Either
  String
  (Maybe Text -> Maybe Text -> Int -> GetWorkingLocationResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetWorkingLocationResponse)
forall (f :: * -> *) a b. Applicative f => 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
"s3Uri")
            Either String (Maybe Text -> Int -> GetWorkingLocationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetWorkingLocationResponse)
forall (f :: * -> *) a b. Applicative f => 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
"s3Bucket")
            Either String (Int -> GetWorkingLocationResponse)
-> Either String Int -> Either String GetWorkingLocationResponse
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 GetWorkingLocation

instance Prelude.NFData GetWorkingLocation

instance Core.ToHeaders GetWorkingLocation where
  toHeaders :: GetWorkingLocation -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetWorkingLocation -> 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 GetWorkingLocation where
  toJSON :: GetWorkingLocation -> Value
toJSON GetWorkingLocation' {Maybe LocationType
locationType :: Maybe LocationType
$sel:locationType:GetWorkingLocation' :: GetWorkingLocation -> Maybe LocationType
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"locationType" Text -> LocationType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LocationType -> Pair) -> Maybe LocationType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LocationType
locationType]
      )

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

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

-- | /See:/ 'newGetWorkingLocationResponse' smart constructor.
data GetWorkingLocationResponse = GetWorkingLocationResponse'
  { -- | Returns the Amazon S3 Path for the working location.
    GetWorkingLocationResponse -> Maybe Text
s3Path :: Prelude.Maybe Prelude.Text,
    -- | Returns the Amazon S3 URI for the working location.
    GetWorkingLocationResponse -> Maybe Text
s3Uri :: Prelude.Maybe Prelude.Text,
    -- | Returns the Amazon S3 bucket name for the working location.
    GetWorkingLocationResponse -> Maybe Text
s3Bucket :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetWorkingLocationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool
(GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool)
-> (GetWorkingLocationResponse
    -> GetWorkingLocationResponse -> Bool)
-> Eq GetWorkingLocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool
$c/= :: GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool
== :: GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool
$c== :: GetWorkingLocationResponse -> GetWorkingLocationResponse -> Bool
Prelude.Eq, ReadPrec [GetWorkingLocationResponse]
ReadPrec GetWorkingLocationResponse
Int -> ReadS GetWorkingLocationResponse
ReadS [GetWorkingLocationResponse]
(Int -> ReadS GetWorkingLocationResponse)
-> ReadS [GetWorkingLocationResponse]
-> ReadPrec GetWorkingLocationResponse
-> ReadPrec [GetWorkingLocationResponse]
-> Read GetWorkingLocationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWorkingLocationResponse]
$creadListPrec :: ReadPrec [GetWorkingLocationResponse]
readPrec :: ReadPrec GetWorkingLocationResponse
$creadPrec :: ReadPrec GetWorkingLocationResponse
readList :: ReadS [GetWorkingLocationResponse]
$creadList :: ReadS [GetWorkingLocationResponse]
readsPrec :: Int -> ReadS GetWorkingLocationResponse
$creadsPrec :: Int -> ReadS GetWorkingLocationResponse
Prelude.Read, Int -> GetWorkingLocationResponse -> ShowS
[GetWorkingLocationResponse] -> ShowS
GetWorkingLocationResponse -> String
(Int -> GetWorkingLocationResponse -> ShowS)
-> (GetWorkingLocationResponse -> String)
-> ([GetWorkingLocationResponse] -> ShowS)
-> Show GetWorkingLocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWorkingLocationResponse] -> ShowS
$cshowList :: [GetWorkingLocationResponse] -> ShowS
show :: GetWorkingLocationResponse -> String
$cshow :: GetWorkingLocationResponse -> String
showsPrec :: Int -> GetWorkingLocationResponse -> ShowS
$cshowsPrec :: Int -> GetWorkingLocationResponse -> ShowS
Prelude.Show, (forall x.
 GetWorkingLocationResponse -> Rep GetWorkingLocationResponse x)
-> (forall x.
    Rep GetWorkingLocationResponse x -> GetWorkingLocationResponse)
-> Generic GetWorkingLocationResponse
forall x.
Rep GetWorkingLocationResponse x -> GetWorkingLocationResponse
forall x.
GetWorkingLocationResponse -> Rep GetWorkingLocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetWorkingLocationResponse x -> GetWorkingLocationResponse
$cfrom :: forall x.
GetWorkingLocationResponse -> Rep GetWorkingLocationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetWorkingLocationResponse' 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:
--
-- 's3Path', 'getWorkingLocationResponse_s3Path' - Returns the Amazon S3 Path for the working location.
--
-- 's3Uri', 'getWorkingLocationResponse_s3Uri' - Returns the Amazon S3 URI for the working location.
--
-- 's3Bucket', 'getWorkingLocationResponse_s3Bucket' - Returns the Amazon S3 bucket name for the working location.
--
-- 'httpStatus', 'getWorkingLocationResponse_httpStatus' - The response's http status code.
newGetWorkingLocationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetWorkingLocationResponse
newGetWorkingLocationResponse :: Int -> GetWorkingLocationResponse
newGetWorkingLocationResponse Int
pHttpStatus_ =
  GetWorkingLocationResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> GetWorkingLocationResponse
GetWorkingLocationResponse'
    { $sel:s3Path:GetWorkingLocationResponse' :: Maybe Text
s3Path =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Uri:GetWorkingLocationResponse' :: Maybe Text
s3Uri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Bucket:GetWorkingLocationResponse' :: Maybe Text
s3Bucket = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetWorkingLocationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Returns the Amazon S3 Path for the working location.
getWorkingLocationResponse_s3Path :: Lens.Lens' GetWorkingLocationResponse (Prelude.Maybe Prelude.Text)
getWorkingLocationResponse_s3Path :: (Maybe Text -> f (Maybe Text))
-> GetWorkingLocationResponse -> f GetWorkingLocationResponse
getWorkingLocationResponse_s3Path = (GetWorkingLocationResponse -> Maybe Text)
-> (GetWorkingLocationResponse
    -> Maybe Text -> GetWorkingLocationResponse)
-> Lens
     GetWorkingLocationResponse
     GetWorkingLocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkingLocationResponse' {Maybe Text
s3Path :: Maybe Text
$sel:s3Path:GetWorkingLocationResponse' :: GetWorkingLocationResponse -> Maybe Text
s3Path} -> Maybe Text
s3Path) (\s :: GetWorkingLocationResponse
s@GetWorkingLocationResponse' {} Maybe Text
a -> GetWorkingLocationResponse
s {$sel:s3Path:GetWorkingLocationResponse' :: Maybe Text
s3Path = Maybe Text
a} :: GetWorkingLocationResponse)

-- | Returns the Amazon S3 URI for the working location.
getWorkingLocationResponse_s3Uri :: Lens.Lens' GetWorkingLocationResponse (Prelude.Maybe Prelude.Text)
getWorkingLocationResponse_s3Uri :: (Maybe Text -> f (Maybe Text))
-> GetWorkingLocationResponse -> f GetWorkingLocationResponse
getWorkingLocationResponse_s3Uri = (GetWorkingLocationResponse -> Maybe Text)
-> (GetWorkingLocationResponse
    -> Maybe Text -> GetWorkingLocationResponse)
-> Lens
     GetWorkingLocationResponse
     GetWorkingLocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkingLocationResponse' {Maybe Text
s3Uri :: Maybe Text
$sel:s3Uri:GetWorkingLocationResponse' :: GetWorkingLocationResponse -> Maybe Text
s3Uri} -> Maybe Text
s3Uri) (\s :: GetWorkingLocationResponse
s@GetWorkingLocationResponse' {} Maybe Text
a -> GetWorkingLocationResponse
s {$sel:s3Uri:GetWorkingLocationResponse' :: Maybe Text
s3Uri = Maybe Text
a} :: GetWorkingLocationResponse)

-- | Returns the Amazon S3 bucket name for the working location.
getWorkingLocationResponse_s3Bucket :: Lens.Lens' GetWorkingLocationResponse (Prelude.Maybe Prelude.Text)
getWorkingLocationResponse_s3Bucket :: (Maybe Text -> f (Maybe Text))
-> GetWorkingLocationResponse -> f GetWorkingLocationResponse
getWorkingLocationResponse_s3Bucket = (GetWorkingLocationResponse -> Maybe Text)
-> (GetWorkingLocationResponse
    -> Maybe Text -> GetWorkingLocationResponse)
-> Lens
     GetWorkingLocationResponse
     GetWorkingLocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkingLocationResponse' {Maybe Text
s3Bucket :: Maybe Text
$sel:s3Bucket:GetWorkingLocationResponse' :: GetWorkingLocationResponse -> Maybe Text
s3Bucket} -> Maybe Text
s3Bucket) (\s :: GetWorkingLocationResponse
s@GetWorkingLocationResponse' {} Maybe Text
a -> GetWorkingLocationResponse
s {$sel:s3Bucket:GetWorkingLocationResponse' :: Maybe Text
s3Bucket = Maybe Text
a} :: GetWorkingLocationResponse)

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

instance Prelude.NFData GetWorkingLocationResponse