{-# 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.FraudDetector.GetEventTypes
-- 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)
--
-- Gets all event types or a specific event type if name is provided. This
-- is a paginated API. If you provide a null @maxResults@, this action
-- retrieves a maximum of 10 records per page. If you provide a
-- @maxResults@, the value must be between 5 and 10. To get the next page
-- results, provide the pagination token from the @GetEventTypesResponse@
-- as part of your request. A null pagination token fetches the records
-- from the beginning.
module Amazonka.FraudDetector.GetEventTypes
  ( -- * Creating a Request
    GetEventTypes (..),
    newGetEventTypes,

    -- * Request Lenses
    getEventTypes_nextToken,
    getEventTypes_name,
    getEventTypes_maxResults,

    -- * Destructuring the Response
    GetEventTypesResponse (..),
    newGetEventTypesResponse,

    -- * Response Lenses
    getEventTypesResponse_eventTypes,
    getEventTypesResponse_nextToken,
    getEventTypesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.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:/ 'newGetEventTypes' smart constructor.
data GetEventTypes = GetEventTypes'
  { -- | The next token for the subsequent request.
    GetEventTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name.
    GetEventTypes -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of objects to return for the request.
    GetEventTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (GetEventTypes -> GetEventTypes -> Bool
(GetEventTypes -> GetEventTypes -> Bool)
-> (GetEventTypes -> GetEventTypes -> Bool) -> Eq GetEventTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventTypes -> GetEventTypes -> Bool
$c/= :: GetEventTypes -> GetEventTypes -> Bool
== :: GetEventTypes -> GetEventTypes -> Bool
$c== :: GetEventTypes -> GetEventTypes -> Bool
Prelude.Eq, ReadPrec [GetEventTypes]
ReadPrec GetEventTypes
Int -> ReadS GetEventTypes
ReadS [GetEventTypes]
(Int -> ReadS GetEventTypes)
-> ReadS [GetEventTypes]
-> ReadPrec GetEventTypes
-> ReadPrec [GetEventTypes]
-> Read GetEventTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventTypes]
$creadListPrec :: ReadPrec [GetEventTypes]
readPrec :: ReadPrec GetEventTypes
$creadPrec :: ReadPrec GetEventTypes
readList :: ReadS [GetEventTypes]
$creadList :: ReadS [GetEventTypes]
readsPrec :: Int -> ReadS GetEventTypes
$creadsPrec :: Int -> ReadS GetEventTypes
Prelude.Read, Int -> GetEventTypes -> ShowS
[GetEventTypes] -> ShowS
GetEventTypes -> String
(Int -> GetEventTypes -> ShowS)
-> (GetEventTypes -> String)
-> ([GetEventTypes] -> ShowS)
-> Show GetEventTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventTypes] -> ShowS
$cshowList :: [GetEventTypes] -> ShowS
show :: GetEventTypes -> String
$cshow :: GetEventTypes -> String
showsPrec :: Int -> GetEventTypes -> ShowS
$cshowsPrec :: Int -> GetEventTypes -> ShowS
Prelude.Show, (forall x. GetEventTypes -> Rep GetEventTypes x)
-> (forall x. Rep GetEventTypes x -> GetEventTypes)
-> Generic GetEventTypes
forall x. Rep GetEventTypes x -> GetEventTypes
forall x. GetEventTypes -> Rep GetEventTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEventTypes x -> GetEventTypes
$cfrom :: forall x. GetEventTypes -> Rep GetEventTypes x
Prelude.Generic)

-- |
-- Create a value of 'GetEventTypes' 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:
--
-- 'nextToken', 'getEventTypes_nextToken' - The next token for the subsequent request.
--
-- 'name', 'getEventTypes_name' - The name.
--
-- 'maxResults', 'getEventTypes_maxResults' - The maximum number of objects to return for the request.
newGetEventTypes ::
  GetEventTypes
newGetEventTypes :: GetEventTypes
newGetEventTypes =
  GetEventTypes' :: Maybe Text -> Maybe Text -> Maybe Natural -> GetEventTypes
GetEventTypes'
    { $sel:nextToken:GetEventTypes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:GetEventTypes' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:GetEventTypes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The next token for the subsequent request.
getEventTypes_nextToken :: Lens.Lens' GetEventTypes (Prelude.Maybe Prelude.Text)
getEventTypes_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetEventTypes -> f GetEventTypes
getEventTypes_nextToken = (GetEventTypes -> Maybe Text)
-> (GetEventTypes -> Maybe Text -> GetEventTypes)
-> Lens GetEventTypes GetEventTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventTypes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEventTypes' :: GetEventTypes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEventTypes
s@GetEventTypes' {} Maybe Text
a -> GetEventTypes
s {$sel:nextToken:GetEventTypes' :: Maybe Text
nextToken = Maybe Text
a} :: GetEventTypes)

-- | The name.
getEventTypes_name :: Lens.Lens' GetEventTypes (Prelude.Maybe Prelude.Text)
getEventTypes_name :: (Maybe Text -> f (Maybe Text)) -> GetEventTypes -> f GetEventTypes
getEventTypes_name = (GetEventTypes -> Maybe Text)
-> (GetEventTypes -> Maybe Text -> GetEventTypes)
-> Lens GetEventTypes GetEventTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventTypes' {Maybe Text
name :: Maybe Text
$sel:name:GetEventTypes' :: GetEventTypes -> Maybe Text
name} -> Maybe Text
name) (\s :: GetEventTypes
s@GetEventTypes' {} Maybe Text
a -> GetEventTypes
s {$sel:name:GetEventTypes' :: Maybe Text
name = Maybe Text
a} :: GetEventTypes)

-- | The maximum number of objects to return for the request.
getEventTypes_maxResults :: Lens.Lens' GetEventTypes (Prelude.Maybe Prelude.Natural)
getEventTypes_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetEventTypes -> f GetEventTypes
getEventTypes_maxResults = (GetEventTypes -> Maybe Natural)
-> (GetEventTypes -> Maybe Natural -> GetEventTypes)
-> Lens GetEventTypes GetEventTypes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventTypes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetEventTypes' :: GetEventTypes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetEventTypes
s@GetEventTypes' {} Maybe Natural
a -> GetEventTypes
s {$sel:maxResults:GetEventTypes' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetEventTypes)

instance Core.AWSRequest GetEventTypes where
  type
    AWSResponse GetEventTypes =
      GetEventTypesResponse
  request :: GetEventTypes -> Request GetEventTypes
request = Service -> GetEventTypes -> Request GetEventTypes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetEventTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetEventTypes)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetEventTypes))
-> Logger
-> Service
-> Proxy GetEventTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetEventTypes)))
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 [Sensitive EventType]
-> Maybe Text -> Int -> GetEventTypesResponse
GetEventTypesResponse'
            (Maybe [Sensitive EventType]
 -> Maybe Text -> Int -> GetEventTypesResponse)
-> Either String (Maybe [Sensitive EventType])
-> Either String (Maybe Text -> Int -> GetEventTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [Sensitive EventType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"eventTypes" Either String (Maybe (Maybe [Sensitive EventType]))
-> Maybe [Sensitive EventType]
-> Either String (Maybe [Sensitive EventType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Sensitive EventType]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> GetEventTypesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetEventTypesResponse)
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
"nextToken")
            Either String (Int -> GetEventTypesResponse)
-> Either String Int -> Either String GetEventTypesResponse
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 GetEventTypes

instance Prelude.NFData GetEventTypes

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

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

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

-- | /See:/ 'newGetEventTypesResponse' smart constructor.
data GetEventTypesResponse = GetEventTypesResponse'
  { -- | An array of event types.
    GetEventTypesResponse -> Maybe [Sensitive EventType]
eventTypes :: Prelude.Maybe [Core.Sensitive EventType],
    -- | The next page token.
    GetEventTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetEventTypesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetEventTypesResponse -> GetEventTypesResponse -> Bool
(GetEventTypesResponse -> GetEventTypesResponse -> Bool)
-> (GetEventTypesResponse -> GetEventTypesResponse -> Bool)
-> Eq GetEventTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventTypesResponse -> GetEventTypesResponse -> Bool
$c/= :: GetEventTypesResponse -> GetEventTypesResponse -> Bool
== :: GetEventTypesResponse -> GetEventTypesResponse -> Bool
$c== :: GetEventTypesResponse -> GetEventTypesResponse -> Bool
Prelude.Eq, Int -> GetEventTypesResponse -> ShowS
[GetEventTypesResponse] -> ShowS
GetEventTypesResponse -> String
(Int -> GetEventTypesResponse -> ShowS)
-> (GetEventTypesResponse -> String)
-> ([GetEventTypesResponse] -> ShowS)
-> Show GetEventTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventTypesResponse] -> ShowS
$cshowList :: [GetEventTypesResponse] -> ShowS
show :: GetEventTypesResponse -> String
$cshow :: GetEventTypesResponse -> String
showsPrec :: Int -> GetEventTypesResponse -> ShowS
$cshowsPrec :: Int -> GetEventTypesResponse -> ShowS
Prelude.Show, (forall x. GetEventTypesResponse -> Rep GetEventTypesResponse x)
-> (forall x. Rep GetEventTypesResponse x -> GetEventTypesResponse)
-> Generic GetEventTypesResponse
forall x. Rep GetEventTypesResponse x -> GetEventTypesResponse
forall x. GetEventTypesResponse -> Rep GetEventTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEventTypesResponse x -> GetEventTypesResponse
$cfrom :: forall x. GetEventTypesResponse -> Rep GetEventTypesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetEventTypesResponse' 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:
--
-- 'eventTypes', 'getEventTypesResponse_eventTypes' - An array of event types.
--
-- 'nextToken', 'getEventTypesResponse_nextToken' - The next page token.
--
-- 'httpStatus', 'getEventTypesResponse_httpStatus' - The response's http status code.
newGetEventTypesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetEventTypesResponse
newGetEventTypesResponse :: Int -> GetEventTypesResponse
newGetEventTypesResponse Int
pHttpStatus_ =
  GetEventTypesResponse' :: Maybe [Sensitive EventType]
-> Maybe Text -> Int -> GetEventTypesResponse
GetEventTypesResponse'
    { $sel:eventTypes:GetEventTypesResponse' :: Maybe [Sensitive EventType]
eventTypes =
        Maybe [Sensitive EventType]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetEventTypesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetEventTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of event types.
getEventTypesResponse_eventTypes :: Lens.Lens' GetEventTypesResponse (Prelude.Maybe [EventType])
getEventTypesResponse_eventTypes :: (Maybe [EventType] -> f (Maybe [EventType]))
-> GetEventTypesResponse -> f GetEventTypesResponse
getEventTypesResponse_eventTypes = (GetEventTypesResponse -> Maybe [Sensitive EventType])
-> (GetEventTypesResponse
    -> Maybe [Sensitive EventType] -> GetEventTypesResponse)
-> Lens
     GetEventTypesResponse
     GetEventTypesResponse
     (Maybe [Sensitive EventType])
     (Maybe [Sensitive EventType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventTypesResponse' {Maybe [Sensitive EventType]
eventTypes :: Maybe [Sensitive EventType]
$sel:eventTypes:GetEventTypesResponse' :: GetEventTypesResponse -> Maybe [Sensitive EventType]
eventTypes} -> Maybe [Sensitive EventType]
eventTypes) (\s :: GetEventTypesResponse
s@GetEventTypesResponse' {} Maybe [Sensitive EventType]
a -> GetEventTypesResponse
s {$sel:eventTypes:GetEventTypesResponse' :: Maybe [Sensitive EventType]
eventTypes = Maybe [Sensitive EventType]
a} :: GetEventTypesResponse) ((Maybe [Sensitive EventType] -> f (Maybe [Sensitive EventType]))
 -> GetEventTypesResponse -> f GetEventTypesResponse)
-> ((Maybe [EventType] -> f (Maybe [EventType]))
    -> Maybe [Sensitive EventType] -> f (Maybe [Sensitive EventType]))
-> (Maybe [EventType] -> f (Maybe [EventType]))
-> GetEventTypesResponse
-> f GetEventTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [Sensitive EventType] [Sensitive EventType] [EventType] [EventType]
-> Iso
     (Maybe [Sensitive EventType])
     (Maybe [Sensitive EventType])
     (Maybe [EventType])
     (Maybe [EventType])
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
  [Sensitive EventType] [Sensitive EventType] [EventType] [EventType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The next page token.
getEventTypesResponse_nextToken :: Lens.Lens' GetEventTypesResponse (Prelude.Maybe Prelude.Text)
getEventTypesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetEventTypesResponse -> f GetEventTypesResponse
getEventTypesResponse_nextToken = (GetEventTypesResponse -> Maybe Text)
-> (GetEventTypesResponse -> Maybe Text -> GetEventTypesResponse)
-> Lens
     GetEventTypesResponse
     GetEventTypesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventTypesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEventTypesResponse' :: GetEventTypesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEventTypesResponse
s@GetEventTypesResponse' {} Maybe Text
a -> GetEventTypesResponse
s {$sel:nextToken:GetEventTypesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetEventTypesResponse)

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

instance Prelude.NFData GetEventTypesResponse