packages feed

agent-push-kit-0.1.0: lib/AgentPushKit/ModelLens.hs

{-
   Agent Push Kit API

   The complete Agent Push Kit REST API. Application event ingestion uses an organization key beginning with `apk_`. Authenticated user operations accept either an Agent Push Kit login JWT or an agent access token beginning with `apt_`.

   OpenAPI Version: 3.1.0
   Agent Push Kit API API version: 0.1.0
   Generated by OpenAPI Generator (https://openapi-generator.tech)
-}

{-|
Module : AgentPushKit.Lens
-}

{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-matches -fno-warn-unused-binds -fno-warn-unused-imports #-}

module AgentPushKit.ModelLens where

import qualified Data.Aeson as A
import qualified Data.ByteString.Lazy as BL
import qualified Data.Data as P (Data, Typeable)
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Data.Time as TI

import Data.Text (Text)

import Prelude (($), (.),(<$>),(<*>),(=<<),Maybe(..),Bool(..),Char,Double,FilePath,Float,Int,Integer,String,fmap,undefined,mempty,maybe,pure,Monad,Applicative,Functor)
import qualified Prelude as P

import AgentPushKit.Model
import AgentPushKit.Core


-- * AcceptedResponse

-- | 'acceptedResponseAccepted' Lens
acceptedResponseAcceptedL :: Lens_' AcceptedResponse (Bool)
acceptedResponseAcceptedL f AcceptedResponse{..} = (\acceptedResponseAccepted -> AcceptedResponse { acceptedResponseAccepted, ..} ) <$> f acceptedResponseAccepted
{-# INLINE acceptedResponseAcceptedL #-}



-- * AddMemberInput

-- | 'addMemberInputEmail' Lens
addMemberInputEmailL :: Lens_' AddMemberInput (Text)
addMemberInputEmailL f AddMemberInput{..} = (\addMemberInputEmail -> AddMemberInput { addMemberInputEmail, ..} ) <$> f addMemberInputEmail
{-# INLINE addMemberInputEmailL #-}



-- * AgentToken

-- | 'agentTokenId' Lens
agentTokenIdL :: Lens_' AgentToken (Text)
agentTokenIdL f AgentToken{..} = (\agentTokenId -> AgentToken { agentTokenId, ..} ) <$> f agentTokenId
{-# INLINE agentTokenIdL #-}

-- | 'agentTokenName' Lens
agentTokenNameL :: Lens_' AgentToken (Text)
agentTokenNameL f AgentToken{..} = (\agentTokenName -> AgentToken { agentTokenName, ..} ) <$> f agentTokenName
{-# INLINE agentTokenNameL #-}

-- | 'agentTokenKeyPrefix' Lens
agentTokenKeyPrefixL :: Lens_' AgentToken (Text)
agentTokenKeyPrefixL f AgentToken{..} = (\agentTokenKeyPrefix -> AgentToken { agentTokenKeyPrefix, ..} ) <$> f agentTokenKeyPrefix
{-# INLINE agentTokenKeyPrefixL #-}

-- | 'agentTokenLastFour' Lens
agentTokenLastFourL :: Lens_' AgentToken (Text)
agentTokenLastFourL f AgentToken{..} = (\agentTokenLastFour -> AgentToken { agentTokenLastFour, ..} ) <$> f agentTokenLastFour
{-# INLINE agentTokenLastFourL #-}

-- | 'agentTokenCreatedAt' Lens
agentTokenCreatedAtL :: Lens_' AgentToken (DateTime)
agentTokenCreatedAtL f AgentToken{..} = (\agentTokenCreatedAt -> AgentToken { agentTokenCreatedAt, ..} ) <$> f agentTokenCreatedAt
{-# INLINE agentTokenCreatedAtL #-}

-- | 'agentTokenLastUsedAt' Lens
agentTokenLastUsedAtL :: Lens_' AgentToken (Maybe DateTime)
agentTokenLastUsedAtL f AgentToken{..} = (\agentTokenLastUsedAt -> AgentToken { agentTokenLastUsedAt, ..} ) <$> f agentTokenLastUsedAt
{-# INLINE agentTokenLastUsedAtL #-}

-- | 'agentTokenRevokedAt' Lens
agentTokenRevokedAtL :: Lens_' AgentToken (Maybe DateTime)
agentTokenRevokedAtL f AgentToken{..} = (\agentTokenRevokedAt -> AgentToken { agentTokenRevokedAt, ..} ) <$> f agentTokenRevokedAt
{-# INLINE agentTokenRevokedAtL #-}



-- * AgentTokenCreated

-- | 'agentTokenCreatedId' Lens
agentTokenCreatedIdL :: Lens_' AgentTokenCreated (Text)
agentTokenCreatedIdL f AgentTokenCreated{..} = (\agentTokenCreatedId -> AgentTokenCreated { agentTokenCreatedId, ..} ) <$> f agentTokenCreatedId
{-# INLINE agentTokenCreatedIdL #-}

-- | 'agentTokenCreatedName' Lens
agentTokenCreatedNameL :: Lens_' AgentTokenCreated (Text)
agentTokenCreatedNameL f AgentTokenCreated{..} = (\agentTokenCreatedName -> AgentTokenCreated { agentTokenCreatedName, ..} ) <$> f agentTokenCreatedName
{-# INLINE agentTokenCreatedNameL #-}

-- | 'agentTokenCreatedKeyPrefix' Lens
agentTokenCreatedKeyPrefixL :: Lens_' AgentTokenCreated (Text)
agentTokenCreatedKeyPrefixL f AgentTokenCreated{..} = (\agentTokenCreatedKeyPrefix -> AgentTokenCreated { agentTokenCreatedKeyPrefix, ..} ) <$> f agentTokenCreatedKeyPrefix
{-# INLINE agentTokenCreatedKeyPrefixL #-}

-- | 'agentTokenCreatedLastFour' Lens
agentTokenCreatedLastFourL :: Lens_' AgentTokenCreated (Text)
agentTokenCreatedLastFourL f AgentTokenCreated{..} = (\agentTokenCreatedLastFour -> AgentTokenCreated { agentTokenCreatedLastFour, ..} ) <$> f agentTokenCreatedLastFour
{-# INLINE agentTokenCreatedLastFourL #-}

-- | 'agentTokenCreatedCreatedAt' Lens
agentTokenCreatedCreatedAtL :: Lens_' AgentTokenCreated (DateTime)
agentTokenCreatedCreatedAtL f AgentTokenCreated{..} = (\agentTokenCreatedCreatedAt -> AgentTokenCreated { agentTokenCreatedCreatedAt, ..} ) <$> f agentTokenCreatedCreatedAt
{-# INLINE agentTokenCreatedCreatedAtL #-}

-- | 'agentTokenCreatedLastUsedAt' Lens
agentTokenCreatedLastUsedAtL :: Lens_' AgentTokenCreated (Maybe DateTime)
agentTokenCreatedLastUsedAtL f AgentTokenCreated{..} = (\agentTokenCreatedLastUsedAt -> AgentTokenCreated { agentTokenCreatedLastUsedAt, ..} ) <$> f agentTokenCreatedLastUsedAt
{-# INLINE agentTokenCreatedLastUsedAtL #-}

-- | 'agentTokenCreatedRevokedAt' Lens
agentTokenCreatedRevokedAtL :: Lens_' AgentTokenCreated (Maybe DateTime)
agentTokenCreatedRevokedAtL f AgentTokenCreated{..} = (\agentTokenCreatedRevokedAt -> AgentTokenCreated { agentTokenCreatedRevokedAt, ..} ) <$> f agentTokenCreatedRevokedAt
{-# INLINE agentTokenCreatedRevokedAtL #-}

-- | 'agentTokenCreatedToken' Lens
agentTokenCreatedTokenL :: Lens_' AgentTokenCreated (Text)
agentTokenCreatedTokenL f AgentTokenCreated{..} = (\agentTokenCreatedToken -> AgentTokenCreated { agentTokenCreatedToken, ..} ) <$> f agentTokenCreatedToken
{-# INLINE agentTokenCreatedTokenL #-}



-- * ApiKeySummary

-- | 'apiKeySummaryKeyPrefix' Lens
apiKeySummaryKeyPrefixL :: Lens_' ApiKeySummary (Maybe Text)
apiKeySummaryKeyPrefixL f ApiKeySummary{..} = (\apiKeySummaryKeyPrefix -> ApiKeySummary { apiKeySummaryKeyPrefix, ..} ) <$> f apiKeySummaryKeyPrefix
{-# INLINE apiKeySummaryKeyPrefixL #-}

-- | 'apiKeySummaryLastFour' Lens
apiKeySummaryLastFourL :: Lens_' ApiKeySummary (Maybe Text)
apiKeySummaryLastFourL f ApiKeySummary{..} = (\apiKeySummaryLastFour -> ApiKeySummary { apiKeySummaryLastFour, ..} ) <$> f apiKeySummaryLastFour
{-# INLINE apiKeySummaryLastFourL #-}

-- | 'apiKeySummaryUpdatedAt' Lens
apiKeySummaryUpdatedAtL :: Lens_' ApiKeySummary (Maybe DateTime)
apiKeySummaryUpdatedAtL f ApiKeySummary{..} = (\apiKeySummaryUpdatedAt -> ApiKeySummary { apiKeySummaryUpdatedAt, ..} ) <$> f apiKeySummaryUpdatedAt
{-# INLINE apiKeySummaryUpdatedAtL #-}



-- * AuthResponse

-- | 'authResponseAccessToken' Lens
authResponseAccessTokenL :: Lens_' AuthResponse (Text)
authResponseAccessTokenL f AuthResponse{..} = (\authResponseAccessToken -> AuthResponse { authResponseAccessToken, ..} ) <$> f authResponseAccessToken
{-# INLINE authResponseAccessTokenL #-}

-- | 'authResponseUser' Lens
authResponseUserL :: Lens_' AuthResponse (User)
authResponseUserL f AuthResponse{..} = (\authResponseUser -> AuthResponse { authResponseUser, ..} ) <$> f authResponseUser
{-# INLINE authResponseUserL #-}

-- | 'authResponseOrganizations' Lens
authResponseOrganizationsL :: Lens_' AuthResponse ([Organization])
authResponseOrganizationsL f AuthResponse{..} = (\authResponseOrganizations -> AuthResponse { authResponseOrganizations, ..} ) <$> f authResponseOrganizations
{-# INLINE authResponseOrganizationsL #-}

-- | 'authResponseBootstrapApiKey' Lens
authResponseBootstrapApiKeyL :: Lens_' AuthResponse (Maybe Text)
authResponseBootstrapApiKeyL f AuthResponse{..} = (\authResponseBootstrapApiKey -> AuthResponse { authResponseBootstrapApiKey, ..} ) <$> f authResponseBootstrapApiKey
{-# INLINE authResponseBootstrapApiKeyL #-}



-- * CreateAgentTokenInput

-- | 'createAgentTokenInputName' Lens
createAgentTokenInputNameL :: Lens_' CreateAgentTokenInput (Text)
createAgentTokenInputNameL f CreateAgentTokenInput{..} = (\createAgentTokenInputName -> CreateAgentTokenInput { createAgentTokenInputName, ..} ) <$> f createAgentTokenInputName
{-# INLINE createAgentTokenInputNameL #-}



-- * CreateOrganizationInput

-- | 'createOrganizationInputName' Lens
createOrganizationInputNameL :: Lens_' CreateOrganizationInput (Text)
createOrganizationInputNameL f CreateOrganizationInput{..} = (\createOrganizationInputName -> CreateOrganizationInput { createOrganizationInputName, ..} ) <$> f createOrganizationInputName
{-# INLINE createOrganizationInputNameL #-}



-- * CurrentAccount

-- | 'currentAccountUser' Lens
currentAccountUserL :: Lens_' CurrentAccount (User)
currentAccountUserL f CurrentAccount{..} = (\currentAccountUser -> CurrentAccount { currentAccountUser, ..} ) <$> f currentAccountUser
{-# INLINE currentAccountUserL #-}

-- | 'currentAccountOrganizations' Lens
currentAccountOrganizationsL :: Lens_' CurrentAccount ([Organization])
currentAccountOrganizationsL f CurrentAccount{..} = (\currentAccountOrganizations -> CurrentAccount { currentAccountOrganizations, ..} ) <$> f currentAccountOrganizations
{-# INLINE currentAccountOrganizationsL #-}



-- * DeletedResponse

-- | 'deletedResponseDeleted' Lens
deletedResponseDeletedL :: Lens_' DeletedResponse (Bool)
deletedResponseDeletedL f DeletedResponse{..} = (\deletedResponseDeleted -> DeletedResponse { deletedResponseDeleted, ..} ) <$> f deletedResponseDeleted
{-# INLINE deletedResponseDeletedL #-}



-- * DeliverySummary

-- | 'deliverySummarySent' Lens
deliverySummarySentL :: Lens_' DeliverySummary (Int)
deliverySummarySentL f DeliverySummary{..} = (\deliverySummarySent -> DeliverySummary { deliverySummarySent, ..} ) <$> f deliverySummarySent
{-# INLINE deliverySummarySentL #-}

-- | 'deliverySummaryFailed' Lens
deliverySummaryFailedL :: Lens_' DeliverySummary (Int)
deliverySummaryFailedL f DeliverySummary{..} = (\deliverySummaryFailed -> DeliverySummary { deliverySummaryFailed, ..} ) <$> f deliverySummaryFailed
{-# INLINE deliverySummaryFailedL #-}

-- | 'deliverySummarySuppressedUsers' Lens
deliverySummarySuppressedUsersL :: Lens_' DeliverySummary (Int)
deliverySummarySuppressedUsersL f DeliverySummary{..} = (\deliverySummarySuppressedUsers -> DeliverySummary { deliverySummarySuppressedUsers, ..} ) <$> f deliverySummarySuppressedUsers
{-# INLINE deliverySummarySuppressedUsersL #-}

-- | 'deliverySummaryEligibleDevices' Lens
deliverySummaryEligibleDevicesL :: Lens_' DeliverySummary (Int)
deliverySummaryEligibleDevicesL f DeliverySummary{..} = (\deliverySummaryEligibleDevices -> DeliverySummary { deliverySummaryEligibleDevices, ..} ) <$> f deliverySummaryEligibleDevices
{-# INLINE deliverySummaryEligibleDevicesL #-}



-- * Device

-- | 'deviceId' Lens
deviceIdL :: Lens_' Device (Text)
deviceIdL f Device{..} = (\deviceId -> Device { deviceId, ..} ) <$> f deviceId
{-# INLINE deviceIdL #-}

-- | 'deviceInstallationId' Lens
deviceInstallationIdL :: Lens_' Device (Text)
deviceInstallationIdL f Device{..} = (\deviceInstallationId -> Device { deviceInstallationId, ..} ) <$> f deviceInstallationId
{-# INLINE deviceInstallationIdL #-}

-- | 'deviceEnvironment' Lens
deviceEnvironmentL :: Lens_' Device (E'Environment)
deviceEnvironmentL f Device{..} = (\deviceEnvironment -> Device { deviceEnvironment, ..} ) <$> f deviceEnvironment
{-# INLINE deviceEnvironmentL #-}

-- | 'deviceAppVersion' Lens
deviceAppVersionL :: Lens_' Device (Maybe Text)
deviceAppVersionL f Device{..} = (\deviceAppVersion -> Device { deviceAppVersion, ..} ) <$> f deviceAppVersion
{-# INLINE deviceAppVersionL #-}

-- | 'deviceEnabled' Lens
deviceEnabledL :: Lens_' Device (Bool)
deviceEnabledL f Device{..} = (\deviceEnabled -> Device { deviceEnabled, ..} ) <$> f deviceEnabled
{-# INLINE deviceEnabledL #-}

-- | 'deviceLastSeenAt' Lens
deviceLastSeenAtL :: Lens_' Device (DateTime)
deviceLastSeenAtL f Device{..} = (\deviceLastSeenAt -> Device { deviceLastSeenAt, ..} ) <$> f deviceLastSeenAt
{-# INLINE deviceLastSeenAtL #-}



-- * DisabledResponse

-- | 'disabledResponseDisabled' Lens
disabledResponseDisabledL :: Lens_' DisabledResponse (Bool)
disabledResponseDisabledL f DisabledResponse{..} = (\disabledResponseDisabled -> DisabledResponse { disabledResponseDisabled, ..} ) <$> f disabledResponseDisabled
{-# INLINE disabledResponseDisabledL #-}



-- * ErrorResponse

-- | 'errorResponseStatusCode' Lens
errorResponseStatusCodeL :: Lens_' ErrorResponse (Int)
errorResponseStatusCodeL f ErrorResponse{..} = (\errorResponseStatusCode -> ErrorResponse { errorResponseStatusCode, ..} ) <$> f errorResponseStatusCode
{-# INLINE errorResponseStatusCodeL #-}

-- | 'errorResponseMessage' Lens
errorResponseMessageL :: Lens_' ErrorResponse (Text)
errorResponseMessageL f ErrorResponse{..} = (\errorResponseMessage -> ErrorResponse { errorResponseMessage, ..} ) <$> f errorResponseMessage
{-# INLINE errorResponseMessageL #-}

-- | 'errorResponseError' Lens
errorResponseErrorL :: Lens_' ErrorResponse (Maybe Text)
errorResponseErrorL f ErrorResponse{..} = (\errorResponseError -> ErrorResponse { errorResponseError, ..} ) <$> f errorResponseError
{-# INLINE errorResponseErrorL #-}



-- * EventDetail

-- | 'eventDetailId' Lens
eventDetailIdL :: Lens_' EventDetail (Text)
eventDetailIdL f EventDetail{..} = (\eventDetailId -> EventDetail { eventDetailId, ..} ) <$> f eventDetailId
{-# INLINE eventDetailIdL #-}

-- | 'eventDetailType' Lens
eventDetailTypeL :: Lens_' EventDetail (Text)
eventDetailTypeL f EventDetail{..} = (\eventDetailType -> EventDetail { eventDetailType, ..} ) <$> f eventDetailType
{-# INLINE eventDetailTypeL #-}

-- | 'eventDetailTitle' Lens
eventDetailTitleL :: Lens_' EventDetail (Text)
eventDetailTitleL f EventDetail{..} = (\eventDetailTitle -> EventDetail { eventDetailTitle, ..} ) <$> f eventDetailTitle
{-# INLINE eventDetailTitleL #-}

-- | 'eventDetailBody' Lens
eventDetailBodyL :: Lens_' EventDetail (Text)
eventDetailBodyL f EventDetail{..} = (\eventDetailBody -> EventDetail { eventDetailBody, ..} ) <$> f eventDetailBody
{-# INLINE eventDetailBodyL #-}

-- | 'eventDetailExternalId' Lens
eventDetailExternalIdL :: Lens_' EventDetail (Maybe Text)
eventDetailExternalIdL f EventDetail{..} = (\eventDetailExternalId -> EventDetail { eventDetailExternalId, ..} ) <$> f eventDetailExternalId
{-# INLINE eventDetailExternalIdL #-}

-- | 'eventDetailActionUrl' Lens
eventDetailActionUrlL :: Lens_' EventDetail (Maybe Text)
eventDetailActionUrlL f EventDetail{..} = (\eventDetailActionUrl -> EventDetail { eventDetailActionUrl, ..} ) <$> f eventDetailActionUrl
{-# INLINE eventDetailActionUrlL #-}

-- | 'eventDetailCreatedAt' Lens
eventDetailCreatedAtL :: Lens_' EventDetail (DateTime)
eventDetailCreatedAtL f EventDetail{..} = (\eventDetailCreatedAt -> EventDetail { eventDetailCreatedAt, ..} ) <$> f eventDetailCreatedAt
{-# INLINE eventDetailCreatedAtL #-}

-- | 'eventDetailService' Lens
eventDetailServiceL :: Lens_' EventDetail (ServiceSummary)
eventDetailServiceL f EventDetail{..} = (\eventDetailService -> EventDetail { eventDetailService, ..} ) <$> f eventDetailService
{-# INLINE eventDetailServiceL #-}

-- | 'eventDetailServiceId' Lens
eventDetailServiceIdL :: Lens_' EventDetail (Text)
eventDetailServiceIdL f EventDetail{..} = (\eventDetailServiceId -> EventDetail { eventDetailServiceId, ..} ) <$> f eventDetailServiceId
{-# INLINE eventDetailServiceIdL #-}

-- | 'eventDetailMetadata' Lens
eventDetailMetadataL :: Lens_' EventDetail (Maybe (Map.Map String AnyType))
eventDetailMetadataL f EventDetail{..} = (\eventDetailMetadata -> EventDetail { eventDetailMetadata, ..} ) <$> f eventDetailMetadata
{-# INLINE eventDetailMetadataL #-}



-- * EventFilter

-- | 'eventFilterOperator' Lens
eventFilterOperatorL :: Lens_' EventFilter (E'Operator)
eventFilterOperatorL f EventFilter{..} = (\eventFilterOperator -> EventFilter { eventFilterOperator, ..} ) <$> f eventFilterOperator
{-# INLINE eventFilterOperatorL #-}

-- | 'eventFilterChildren' Lens
eventFilterChildrenL :: Lens_' EventFilter ([EventFilter])
eventFilterChildrenL f EventFilter{..} = (\eventFilterChildren -> EventFilter { eventFilterChildren, ..} ) <$> f eventFilterChildren
{-# INLINE eventFilterChildrenL #-}

-- | 'eventFilterChild' Lens
eventFilterChildL :: Lens_' EventFilter (EventFilter)
eventFilterChildL f EventFilter{..} = (\eventFilterChild -> EventFilter { eventFilterChild, ..} ) <$> f eventFilterChild
{-# INLINE eventFilterChildL #-}

-- | 'eventFilterField' Lens
eventFilterFieldL :: Lens_' EventFilter (E'Field)
eventFilterFieldL f EventFilter{..} = (\eventFilterField -> EventFilter { eventFilterField, ..} ) <$> f eventFilterField
{-# INLINE eventFilterFieldL #-}

-- | 'eventFilterComparison' Lens
eventFilterComparisonL :: Lens_' EventFilter (E'Comparison)
eventFilterComparisonL f EventFilter{..} = (\eventFilterComparison -> EventFilter { eventFilterComparison, ..} ) <$> f eventFilterComparison
{-# INLINE eventFilterComparisonL #-}

-- | 'eventFilterValue' Lens
eventFilterValueL :: Lens_' EventFilter (DateTime)
eventFilterValueL f EventFilter{..} = (\eventFilterValue -> EventFilter { eventFilterValue, ..} ) <$> f eventFilterValue
{-# INLINE eventFilterValueL #-}



-- * EventPage

-- | 'eventPageEvents' Lens
eventPageEventsL :: Lens_' EventPage ([EventSummary])
eventPageEventsL f EventPage{..} = (\eventPageEvents -> EventPage { eventPageEvents, ..} ) <$> f eventPageEvents
{-# INLINE eventPageEventsL #-}

-- | 'eventPageNextCursor' Lens
eventPageNextCursorL :: Lens_' EventPage (Maybe Text)
eventPageNextCursorL f EventPage{..} = (\eventPageNextCursor -> EventPage { eventPageNextCursor, ..} ) <$> f eventPageNextCursor
{-# INLINE eventPageNextCursorL #-}



-- * EventSummary

-- | 'eventSummaryId' Lens
eventSummaryIdL :: Lens_' EventSummary (Text)
eventSummaryIdL f EventSummary{..} = (\eventSummaryId -> EventSummary { eventSummaryId, ..} ) <$> f eventSummaryId
{-# INLINE eventSummaryIdL #-}

-- | 'eventSummaryType' Lens
eventSummaryTypeL :: Lens_' EventSummary (Text)
eventSummaryTypeL f EventSummary{..} = (\eventSummaryType -> EventSummary { eventSummaryType, ..} ) <$> f eventSummaryType
{-# INLINE eventSummaryTypeL #-}

-- | 'eventSummaryTitle' Lens
eventSummaryTitleL :: Lens_' EventSummary (Text)
eventSummaryTitleL f EventSummary{..} = (\eventSummaryTitle -> EventSummary { eventSummaryTitle, ..} ) <$> f eventSummaryTitle
{-# INLINE eventSummaryTitleL #-}

-- | 'eventSummaryBody' Lens
eventSummaryBodyL :: Lens_' EventSummary (Text)
eventSummaryBodyL f EventSummary{..} = (\eventSummaryBody -> EventSummary { eventSummaryBody, ..} ) <$> f eventSummaryBody
{-# INLINE eventSummaryBodyL #-}

-- | 'eventSummaryExternalId' Lens
eventSummaryExternalIdL :: Lens_' EventSummary (Maybe Text)
eventSummaryExternalIdL f EventSummary{..} = (\eventSummaryExternalId -> EventSummary { eventSummaryExternalId, ..} ) <$> f eventSummaryExternalId
{-# INLINE eventSummaryExternalIdL #-}

-- | 'eventSummaryActionUrl' Lens
eventSummaryActionUrlL :: Lens_' EventSummary (Maybe Text)
eventSummaryActionUrlL f EventSummary{..} = (\eventSummaryActionUrl -> EventSummary { eventSummaryActionUrl, ..} ) <$> f eventSummaryActionUrl
{-# INLINE eventSummaryActionUrlL #-}

-- | 'eventSummaryCreatedAt' Lens
eventSummaryCreatedAtL :: Lens_' EventSummary (DateTime)
eventSummaryCreatedAtL f EventSummary{..} = (\eventSummaryCreatedAt -> EventSummary { eventSummaryCreatedAt, ..} ) <$> f eventSummaryCreatedAt
{-# INLINE eventSummaryCreatedAtL #-}

-- | 'eventSummaryService' Lens
eventSummaryServiceL :: Lens_' EventSummary (ServiceSummary)
eventSummaryServiceL f EventSummary{..} = (\eventSummaryService -> EventSummary { eventSummaryService, ..} ) <$> f eventSummaryService
{-# INLINE eventSummaryServiceL #-}



-- * FilterGroup

-- | 'filterGroupOperator' Lens
filterGroupOperatorL :: Lens_' FilterGroup (E'Operator2)
filterGroupOperatorL f FilterGroup{..} = (\filterGroupOperator -> FilterGroup { filterGroupOperator, ..} ) <$> f filterGroupOperator
{-# INLINE filterGroupOperatorL #-}

-- | 'filterGroupChildren' Lens
filterGroupChildrenL :: Lens_' FilterGroup ([EventFilter])
filterGroupChildrenL f FilterGroup{..} = (\filterGroupChildren -> FilterGroup { filterGroupChildren, ..} ) <$> f filterGroupChildren
{-# INLINE filterGroupChildrenL #-}



-- * FilterNot

-- | 'filterNotOperator' Lens
filterNotOperatorL :: Lens_' FilterNot (E'Operator)
filterNotOperatorL f FilterNot{..} = (\filterNotOperator -> FilterNot { filterNotOperator, ..} ) <$> f filterNotOperator
{-# INLINE filterNotOperatorL #-}

-- | 'filterNotChild' Lens
filterNotChildL :: Lens_' FilterNot (EventFilter)
filterNotChildL f FilterNot{..} = (\filterNotChild -> FilterNot { filterNotChild, ..} ) <$> f filterNotChild
{-# INLINE filterNotChildL #-}



-- * HealthResponse

-- | 'healthResponseStatus' Lens
healthResponseStatusL :: Lens_' HealthResponse (E'Status)
healthResponseStatusL f HealthResponse{..} = (\healthResponseStatus -> HealthResponse { healthResponseStatus, ..} ) <$> f healthResponseStatus
{-# INLINE healthResponseStatusL #-}

-- | 'healthResponseService' Lens
healthResponseServiceL :: Lens_' HealthResponse (E'Service)
healthResponseServiceL f HealthResponse{..} = (\healthResponseService -> HealthResponse { healthResponseService, ..} ) <$> f healthResponseService
{-# INLINE healthResponseServiceL #-}



-- * IngestionResult

-- | 'ingestionResultEvent' Lens
ingestionResultEventL :: Lens_' IngestionResult (EventDetail)
ingestionResultEventL f IngestionResult{..} = (\ingestionResultEvent -> IngestionResult { ingestionResultEvent, ..} ) <$> f ingestionResultEvent
{-# INLINE ingestionResultEventL #-}

-- | 'ingestionResultDuplicate' Lens
ingestionResultDuplicateL :: Lens_' IngestionResult (Bool)
ingestionResultDuplicateL f IngestionResult{..} = (\ingestionResultDuplicate -> IngestionResult { ingestionResultDuplicate, ..} ) <$> f ingestionResultDuplicate
{-# INLINE ingestionResultDuplicateL #-}

-- | 'ingestionResultDelivery' Lens
ingestionResultDeliveryL :: Lens_' IngestionResult (DeliverySummary)
ingestionResultDeliveryL f IngestionResult{..} = (\ingestionResultDelivery -> IngestionResult { ingestionResultDelivery, ..} ) <$> f ingestionResultDelivery
{-# INLINE ingestionResultDeliveryL #-}



-- * InheritedResponse

-- | 'inheritedResponseInherited' Lens
inheritedResponseInheritedL :: Lens_' InheritedResponse (Bool)
inheritedResponseInheritedL f InheritedResponse{..} = (\inheritedResponseInherited -> InheritedResponse { inheritedResponseInherited, ..} ) <$> f inheritedResponseInherited
{-# INLINE inheritedResponseInheritedL #-}



-- * Membership

-- | 'membershipId' Lens
membershipIdL :: Lens_' Membership (Text)
membershipIdL f Membership{..} = (\membershipId -> Membership { membershipId, ..} ) <$> f membershipId
{-# INLINE membershipIdL #-}

-- | 'membershipRole' Lens
membershipRoleL :: Lens_' Membership (E'Role)
membershipRoleL f Membership{..} = (\membershipRole -> Membership { membershipRole, ..} ) <$> f membershipRole
{-# INLINE membershipRoleL #-}

-- | 'membershipCreatedAt' Lens
membershipCreatedAtL :: Lens_' Membership (DateTime)
membershipCreatedAtL f Membership{..} = (\membershipCreatedAt -> Membership { membershipCreatedAt, ..} ) <$> f membershipCreatedAt
{-# INLINE membershipCreatedAtL #-}

-- | 'membershipUser' Lens
membershipUserL :: Lens_' Membership (MembershipUser)
membershipUserL f Membership{..} = (\membershipUser -> Membership { membershipUser, ..} ) <$> f membershipUser
{-# INLINE membershipUserL #-}



-- * MembershipUser

-- | 'membershipUserId' Lens
membershipUserIdL :: Lens_' MembershipUser (Text)
membershipUserIdL f MembershipUser{..} = (\membershipUserId -> MembershipUser { membershipUserId, ..} ) <$> f membershipUserId
{-# INLINE membershipUserIdL #-}

-- | 'membershipUserEmail' Lens
membershipUserEmailL :: Lens_' MembershipUser (Text)
membershipUserEmailL f MembershipUser{..} = (\membershipUserEmail -> MembershipUser { membershipUserEmail, ..} ) <$> f membershipUserEmail
{-# INLINE membershipUserEmailL #-}

-- | 'membershipUserDisplayName' Lens
membershipUserDisplayNameL :: Lens_' MembershipUser (Maybe Text)
membershipUserDisplayNameL f MembershipUser{..} = (\membershipUserDisplayName -> MembershipUser { membershipUserDisplayName, ..} ) <$> f membershipUserDisplayName
{-# INLINE membershipUserDisplayNameL #-}



-- * Organization

-- | 'organizationId' Lens
organizationIdL :: Lens_' Organization (Text)
organizationIdL f Organization{..} = (\organizationId -> Organization { organizationId, ..} ) <$> f organizationId
{-# INLINE organizationIdL #-}

-- | 'organizationName' Lens
organizationNameL :: Lens_' Organization (Text)
organizationNameL f Organization{..} = (\organizationName -> Organization { organizationName, ..} ) <$> f organizationName
{-# INLINE organizationNameL #-}

-- | 'organizationRole' Lens
organizationRoleL :: Lens_' Organization (E'Role)
organizationRoleL f Organization{..} = (\organizationRole -> Organization { organizationRole, ..} ) <$> f organizationRole
{-# INLINE organizationRoleL #-}

-- | 'organizationCreatedAt' Lens
organizationCreatedAtL :: Lens_' Organization (DateTime)
organizationCreatedAtL f Organization{..} = (\organizationCreatedAt -> Organization { organizationCreatedAt, ..} ) <$> f organizationCreatedAt
{-# INLINE organizationCreatedAtL #-}

-- | 'organizationUpdatedAt' Lens
organizationUpdatedAtL :: Lens_' Organization (DateTime)
organizationUpdatedAtL f Organization{..} = (\organizationUpdatedAt -> Organization { organizationUpdatedAt, ..} ) <$> f organizationUpdatedAt
{-# INLINE organizationUpdatedAtL #-}

-- | 'organizationJoinedAt' Lens
organizationJoinedAtL :: Lens_' Organization (DateTime)
organizationJoinedAtL f Organization{..} = (\organizationJoinedAt -> Organization { organizationJoinedAt, ..} ) <$> f organizationJoinedAt
{-# INLINE organizationJoinedAtL #-}

-- | 'organizationApiKey' Lens
organizationApiKeyL :: Lens_' Organization (Maybe ApiKeySummary)
organizationApiKeyL f Organization{..} = (\organizationApiKey -> Organization { organizationApiKey, ..} ) <$> f organizationApiKey
{-# INLINE organizationApiKeyL #-}

-- | 'organizationCount' Lens
organizationCountL :: Lens_' Organization (Maybe OrganizationCount)
organizationCountL f Organization{..} = (\organizationCount -> Organization { organizationCount, ..} ) <$> f organizationCount
{-# INLINE organizationCountL #-}



-- * OrganizationApiKeyCreated

-- | 'organizationApiKeyCreatedKeyPrefix' Lens
organizationApiKeyCreatedKeyPrefixL :: Lens_' OrganizationApiKeyCreated (Text)
organizationApiKeyCreatedKeyPrefixL f OrganizationApiKeyCreated{..} = (\organizationApiKeyCreatedKeyPrefix -> OrganizationApiKeyCreated { organizationApiKeyCreatedKeyPrefix, ..} ) <$> f organizationApiKeyCreatedKeyPrefix
{-# INLINE organizationApiKeyCreatedKeyPrefixL #-}

-- | 'organizationApiKeyCreatedLastFour' Lens
organizationApiKeyCreatedLastFourL :: Lens_' OrganizationApiKeyCreated (Text)
organizationApiKeyCreatedLastFourL f OrganizationApiKeyCreated{..} = (\organizationApiKeyCreatedLastFour -> OrganizationApiKeyCreated { organizationApiKeyCreatedLastFour, ..} ) <$> f organizationApiKeyCreatedLastFour
{-# INLINE organizationApiKeyCreatedLastFourL #-}

-- | 'organizationApiKeyCreatedUpdatedAt' Lens
organizationApiKeyCreatedUpdatedAtL :: Lens_' OrganizationApiKeyCreated (DateTime)
organizationApiKeyCreatedUpdatedAtL f OrganizationApiKeyCreated{..} = (\organizationApiKeyCreatedUpdatedAt -> OrganizationApiKeyCreated { organizationApiKeyCreatedUpdatedAt, ..} ) <$> f organizationApiKeyCreatedUpdatedAt
{-# INLINE organizationApiKeyCreatedUpdatedAtL #-}

-- | 'organizationApiKeyCreatedApiKey' Lens
organizationApiKeyCreatedApiKeyL :: Lens_' OrganizationApiKeyCreated (Text)
organizationApiKeyCreatedApiKeyL f OrganizationApiKeyCreated{..} = (\organizationApiKeyCreatedApiKey -> OrganizationApiKeyCreated { organizationApiKeyCreatedApiKey, ..} ) <$> f organizationApiKeyCreatedApiKey
{-# INLINE organizationApiKeyCreatedApiKeyL #-}



-- * OrganizationCount

-- | 'organizationCountMemberships' Lens
organizationCountMembershipsL :: Lens_' OrganizationCount (Maybe Int)
organizationCountMembershipsL f OrganizationCount{..} = (\organizationCountMemberships -> OrganizationCount { organizationCountMemberships, ..} ) <$> f organizationCountMemberships
{-# INLINE organizationCountMembershipsL #-}

-- | 'organizationCountServices' Lens
organizationCountServicesL :: Lens_' OrganizationCount (Maybe Int)
organizationCountServicesL f OrganizationCount{..} = (\organizationCountServices -> OrganizationCount { organizationCountServices, ..} ) <$> f organizationCountServices
{-# INLINE organizationCountServicesL #-}



-- * OrganizationCreated

-- | 'organizationCreatedOrganization' Lens
organizationCreatedOrganizationL :: Lens_' OrganizationCreated (OrganizationRecord)
organizationCreatedOrganizationL f OrganizationCreated{..} = (\organizationCreatedOrganization -> OrganizationCreated { organizationCreatedOrganization, ..} ) <$> f organizationCreatedOrganization
{-# INLINE organizationCreatedOrganizationL #-}

-- | 'organizationCreatedApiKey' Lens
organizationCreatedApiKeyL :: Lens_' OrganizationCreated (Text)
organizationCreatedApiKeyL f OrganizationCreated{..} = (\organizationCreatedApiKey -> OrganizationCreated { organizationCreatedApiKey, ..} ) <$> f organizationCreatedApiKey
{-# INLINE organizationCreatedApiKeyL #-}



-- * OrganizationRecord

-- | 'organizationRecordId' Lens
organizationRecordIdL :: Lens_' OrganizationRecord (Text)
organizationRecordIdL f OrganizationRecord{..} = (\organizationRecordId -> OrganizationRecord { organizationRecordId, ..} ) <$> f organizationRecordId
{-# INLINE organizationRecordIdL #-}

-- | 'organizationRecordName' Lens
organizationRecordNameL :: Lens_' OrganizationRecord (Text)
organizationRecordNameL f OrganizationRecord{..} = (\organizationRecordName -> OrganizationRecord { organizationRecordName, ..} ) <$> f organizationRecordName
{-# INLINE organizationRecordNameL #-}

-- | 'organizationRecordCreatedAt' Lens
organizationRecordCreatedAtL :: Lens_' OrganizationRecord (DateTime)
organizationRecordCreatedAtL f OrganizationRecord{..} = (\organizationRecordCreatedAt -> OrganizationRecord { organizationRecordCreatedAt, ..} ) <$> f organizationRecordCreatedAt
{-# INLINE organizationRecordCreatedAtL #-}

-- | 'organizationRecordUpdatedAt' Lens
organizationRecordUpdatedAtL :: Lens_' OrganizationRecord (DateTime)
organizationRecordUpdatedAtL f OrganizationRecord{..} = (\organizationRecordUpdatedAt -> OrganizationRecord { organizationRecordUpdatedAt, ..} ) <$> f organizationRecordUpdatedAt
{-# INLINE organizationRecordUpdatedAtL #-}



-- * PasswordLoginInput

-- | 'passwordLoginInputEmail' Lens
passwordLoginInputEmailL :: Lens_' PasswordLoginInput (Text)
passwordLoginInputEmailL f PasswordLoginInput{..} = (\passwordLoginInputEmail -> PasswordLoginInput { passwordLoginInputEmail, ..} ) <$> f passwordLoginInputEmail
{-# INLINE passwordLoginInputEmailL #-}

-- | 'passwordLoginInputPassword' Lens
passwordLoginInputPasswordL :: Lens_' PasswordLoginInput (Text)
passwordLoginInputPasswordL f PasswordLoginInput{..} = (\passwordLoginInputPassword -> PasswordLoginInput { passwordLoginInputPassword, ..} ) <$> f passwordLoginInputPassword
{-# INLINE passwordLoginInputPasswordL #-}



-- * PasswordResetCompleteInput

-- | 'passwordResetCompleteInputToken' Lens
passwordResetCompleteInputTokenL :: Lens_' PasswordResetCompleteInput (Text)
passwordResetCompleteInputTokenL f PasswordResetCompleteInput{..} = (\passwordResetCompleteInputToken -> PasswordResetCompleteInput { passwordResetCompleteInputToken, ..} ) <$> f passwordResetCompleteInputToken
{-# INLINE passwordResetCompleteInputTokenL #-}

-- | 'passwordResetCompleteInputPassword' Lens
passwordResetCompleteInputPasswordL :: Lens_' PasswordResetCompleteInput (Text)
passwordResetCompleteInputPasswordL f PasswordResetCompleteInput{..} = (\passwordResetCompleteInputPassword -> PasswordResetCompleteInput { passwordResetCompleteInputPassword, ..} ) <$> f passwordResetCompleteInputPassword
{-# INLINE passwordResetCompleteInputPasswordL #-}



-- * PasswordResetRequestInput

-- | 'passwordResetRequestInputEmail' Lens
passwordResetRequestInputEmailL :: Lens_' PasswordResetRequestInput (Text)
passwordResetRequestInputEmailL f PasswordResetRequestInput{..} = (\passwordResetRequestInputEmail -> PasswordResetRequestInput { passwordResetRequestInputEmail, ..} ) <$> f passwordResetRequestInputEmail
{-# INLINE passwordResetRequestInputEmailL #-}



-- * PreferenceRecord

-- | 'preferenceRecordServiceId' Lens
preferenceRecordServiceIdL :: Lens_' PreferenceRecord (Text)
preferenceRecordServiceIdL f PreferenceRecord{..} = (\preferenceRecordServiceId -> PreferenceRecord { preferenceRecordServiceId, ..} ) <$> f preferenceRecordServiceId
{-# INLINE preferenceRecordServiceIdL #-}

-- | 'preferenceRecordTypeKey' Lens
preferenceRecordTypeKeyL :: Lens_' PreferenceRecord (Text)
preferenceRecordTypeKeyL f PreferenceRecord{..} = (\preferenceRecordTypeKey -> PreferenceRecord { preferenceRecordTypeKey, ..} ) <$> f preferenceRecordTypeKey
{-# INLINE preferenceRecordTypeKeyL #-}

-- | 'preferenceRecordEnabled' Lens
preferenceRecordEnabledL :: Lens_' PreferenceRecord (Bool)
preferenceRecordEnabledL f PreferenceRecord{..} = (\preferenceRecordEnabled -> PreferenceRecord { preferenceRecordEnabled, ..} ) <$> f preferenceRecordEnabled
{-# INLINE preferenceRecordEnabledL #-}

-- | 'preferenceRecordUpdatedAt' Lens
preferenceRecordUpdatedAtL :: Lens_' PreferenceRecord (DateTime)
preferenceRecordUpdatedAtL f PreferenceRecord{..} = (\preferenceRecordUpdatedAt -> PreferenceRecord { preferenceRecordUpdatedAt, ..} ) <$> f preferenceRecordUpdatedAt
{-# INLINE preferenceRecordUpdatedAtL #-}



-- * ProviderLoginInput

-- | 'providerLoginInputIdToken' Lens
providerLoginInputIdTokenL :: Lens_' ProviderLoginInput (Text)
providerLoginInputIdTokenL f ProviderLoginInput{..} = (\providerLoginInputIdToken -> ProviderLoginInput { providerLoginInputIdToken, ..} ) <$> f providerLoginInputIdToken
{-# INLINE providerLoginInputIdTokenL #-}

-- | 'providerLoginInputDisplayName' Lens
providerLoginInputDisplayNameL :: Lens_' ProviderLoginInput (Maybe Text)
providerLoginInputDisplayNameL f ProviderLoginInput{..} = (\providerLoginInputDisplayName -> ProviderLoginInput { providerLoginInputDisplayName, ..} ) <$> f providerLoginInputDisplayName
{-# INLINE providerLoginInputDisplayNameL #-}



-- * RegisterDeviceInput

-- | 'registerDeviceInputDeviceToken' Lens
registerDeviceInputDeviceTokenL :: Lens_' RegisterDeviceInput (Text)
registerDeviceInputDeviceTokenL f RegisterDeviceInput{..} = (\registerDeviceInputDeviceToken -> RegisterDeviceInput { registerDeviceInputDeviceToken, ..} ) <$> f registerDeviceInputDeviceToken
{-# INLINE registerDeviceInputDeviceTokenL #-}

-- | 'registerDeviceInputInstallationId' Lens
registerDeviceInputInstallationIdL :: Lens_' RegisterDeviceInput (Text)
registerDeviceInputInstallationIdL f RegisterDeviceInput{..} = (\registerDeviceInputInstallationId -> RegisterDeviceInput { registerDeviceInputInstallationId, ..} ) <$> f registerDeviceInputInstallationId
{-# INLINE registerDeviceInputInstallationIdL #-}

-- | 'registerDeviceInputEnvironment' Lens
registerDeviceInputEnvironmentL :: Lens_' RegisterDeviceInput (E'Environment)
registerDeviceInputEnvironmentL f RegisterDeviceInput{..} = (\registerDeviceInputEnvironment -> RegisterDeviceInput { registerDeviceInputEnvironment, ..} ) <$> f registerDeviceInputEnvironment
{-# INLINE registerDeviceInputEnvironmentL #-}

-- | 'registerDeviceInputAppVersion' Lens
registerDeviceInputAppVersionL :: Lens_' RegisterDeviceInput (Maybe Text)
registerDeviceInputAppVersionL f RegisterDeviceInput{..} = (\registerDeviceInputAppVersion -> RegisterDeviceInput { registerDeviceInputAppVersion, ..} ) <$> f registerDeviceInputAppVersion
{-# INLINE registerDeviceInputAppVersionL #-}



-- * RegisterInput

-- | 'registerInputEmail' Lens
registerInputEmailL :: Lens_' RegisterInput (Text)
registerInputEmailL f RegisterInput{..} = (\registerInputEmail -> RegisterInput { registerInputEmail, ..} ) <$> f registerInputEmail
{-# INLINE registerInputEmailL #-}

-- | 'registerInputPassword' Lens
registerInputPasswordL :: Lens_' RegisterInput (Text)
registerInputPasswordL f RegisterInput{..} = (\registerInputPassword -> RegisterInput { registerInputPassword, ..} ) <$> f registerInputPassword
{-# INLINE registerInputPasswordL #-}

-- | 'registerInputDisplayName' Lens
registerInputDisplayNameL :: Lens_' RegisterInput (Maybe Text)
registerInputDisplayNameL f RegisterInput{..} = (\registerInputDisplayName -> RegisterInput { registerInputDisplayName, ..} ) <$> f registerInputDisplayName
{-# INLINE registerInputDisplayNameL #-}



-- * RegisterWebPushSubscriptionInput

-- | 'registerWebPushSubscriptionInputEndpoint' Lens
registerWebPushSubscriptionInputEndpointL :: Lens_' RegisterWebPushSubscriptionInput (Text)
registerWebPushSubscriptionInputEndpointL f RegisterWebPushSubscriptionInput{..} = (\registerWebPushSubscriptionInputEndpoint -> RegisterWebPushSubscriptionInput { registerWebPushSubscriptionInputEndpoint, ..} ) <$> f registerWebPushSubscriptionInputEndpoint
{-# INLINE registerWebPushSubscriptionInputEndpointL #-}

-- | 'registerWebPushSubscriptionInputKeys' Lens
registerWebPushSubscriptionInputKeysL :: Lens_' RegisterWebPushSubscriptionInput (RegisterWebPushSubscriptionInputKeys)
registerWebPushSubscriptionInputKeysL f RegisterWebPushSubscriptionInput{..} = (\registerWebPushSubscriptionInputKeys -> RegisterWebPushSubscriptionInput { registerWebPushSubscriptionInputKeys, ..} ) <$> f registerWebPushSubscriptionInputKeys
{-# INLINE registerWebPushSubscriptionInputKeysL #-}



-- * RegisterWebPushSubscriptionInputKeys

-- | 'registerWebPushSubscriptionInputKeysP256dh' Lens
registerWebPushSubscriptionInputKeysP256dhL :: Lens_' RegisterWebPushSubscriptionInputKeys (Text)
registerWebPushSubscriptionInputKeysP256dhL f RegisterWebPushSubscriptionInputKeys{..} = (\registerWebPushSubscriptionInputKeysP256dh -> RegisterWebPushSubscriptionInputKeys { registerWebPushSubscriptionInputKeysP256dh, ..} ) <$> f registerWebPushSubscriptionInputKeysP256dh
{-# INLINE registerWebPushSubscriptionInputKeysP256dhL #-}

-- | 'registerWebPushSubscriptionInputKeysAuth' Lens
registerWebPushSubscriptionInputKeysAuthL :: Lens_' RegisterWebPushSubscriptionInputKeys (Text)
registerWebPushSubscriptionInputKeysAuthL f RegisterWebPushSubscriptionInputKeys{..} = (\registerWebPushSubscriptionInputKeysAuth -> RegisterWebPushSubscriptionInputKeys { registerWebPushSubscriptionInputKeysAuth, ..} ) <$> f registerWebPushSubscriptionInputKeysAuth
{-# INLINE registerWebPushSubscriptionInputKeysAuthL #-}



-- * RevokedResponse

-- | 'revokedResponseRevoked' Lens
revokedResponseRevokedL :: Lens_' RevokedResponse (Bool)
revokedResponseRevokedL f RevokedResponse{..} = (\revokedResponseRevoked -> RevokedResponse { revokedResponseRevoked, ..} ) <$> f revokedResponseRevoked
{-# INLINE revokedResponseRevokedL #-}



-- * SearchEventsInput

-- | 'searchEventsInputFilter' Lens
searchEventsInputFilterL :: Lens_' SearchEventsInput (EventFilter)
searchEventsInputFilterL f SearchEventsInput{..} = (\searchEventsInputFilter -> SearchEventsInput { searchEventsInputFilter, ..} ) <$> f searchEventsInputFilter
{-# INLINE searchEventsInputFilterL #-}

-- | 'searchEventsInputCursor' Lens
searchEventsInputCursorL :: Lens_' SearchEventsInput (Maybe Text)
searchEventsInputCursorL f SearchEventsInput{..} = (\searchEventsInputCursor -> SearchEventsInput { searchEventsInputCursor, ..} ) <$> f searchEventsInputCursor
{-# INLINE searchEventsInputCursorL #-}

-- | 'searchEventsInputLimit' Lens
searchEventsInputLimitL :: Lens_' SearchEventsInput (Maybe Int)
searchEventsInputLimitL f SearchEventsInput{..} = (\searchEventsInputLimit -> SearchEventsInput { searchEventsInputLimit, ..} ) <$> f searchEventsInputLimit
{-# INLINE searchEventsInputLimitL #-}



-- * SendEventInput

-- | 'sendEventInputService' Lens
sendEventInputServiceL :: Lens_' SendEventInput (Text)
sendEventInputServiceL f SendEventInput{..} = (\sendEventInputService -> SendEventInput { sendEventInputService, ..} ) <$> f sendEventInputService
{-# INLINE sendEventInputServiceL #-}

-- | 'sendEventInputServiceDisplayName' Lens
sendEventInputServiceDisplayNameL :: Lens_' SendEventInput (Maybe Text)
sendEventInputServiceDisplayNameL f SendEventInput{..} = (\sendEventInputServiceDisplayName -> SendEventInput { sendEventInputServiceDisplayName, ..} ) <$> f sendEventInputServiceDisplayName
{-# INLINE sendEventInputServiceDisplayNameL #-}

-- | 'sendEventInputType' Lens
sendEventInputTypeL :: Lens_' SendEventInput (Text)
sendEventInputTypeL f SendEventInput{..} = (\sendEventInputType -> SendEventInput { sendEventInputType, ..} ) <$> f sendEventInputType
{-# INLINE sendEventInputTypeL #-}

-- | 'sendEventInputTitle' Lens
sendEventInputTitleL :: Lens_' SendEventInput (Text)
sendEventInputTitleL f SendEventInput{..} = (\sendEventInputTitle -> SendEventInput { sendEventInputTitle, ..} ) <$> f sendEventInputTitle
{-# INLINE sendEventInputTitleL #-}

-- | 'sendEventInputBody' Lens
sendEventInputBodyL :: Lens_' SendEventInput (Text)
sendEventInputBodyL f SendEventInput{..} = (\sendEventInputBody -> SendEventInput { sendEventInputBody, ..} ) <$> f sendEventInputBody
{-# INLINE sendEventInputBodyL #-}

-- | 'sendEventInputMetadata' Lens
sendEventInputMetadataL :: Lens_' SendEventInput (Maybe (Map.Map String AnyType))
sendEventInputMetadataL f SendEventInput{..} = (\sendEventInputMetadata -> SendEventInput { sendEventInputMetadata, ..} ) <$> f sendEventInputMetadata
{-# INLINE sendEventInputMetadataL #-}

-- | 'sendEventInputExternalId' Lens
sendEventInputExternalIdL :: Lens_' SendEventInput (Maybe Text)
sendEventInputExternalIdL f SendEventInput{..} = (\sendEventInputExternalId -> SendEventInput { sendEventInputExternalId, ..} ) <$> f sendEventInputExternalId
{-# INLINE sendEventInputExternalIdL #-}

-- | 'sendEventInputActionUrl' Lens
sendEventInputActionUrlL :: Lens_' SendEventInput (Maybe Text)
sendEventInputActionUrlL f SendEventInput{..} = (\sendEventInputActionUrl -> SendEventInput { sendEventInputActionUrl, ..} ) <$> f sendEventInputActionUrl
{-# INLINE sendEventInputActionUrlL #-}



-- * Service

-- | 'serviceId' Lens
serviceIdL :: Lens_' Service (Text)
serviceIdL f Service{..} = (\serviceId -> Service { serviceId, ..} ) <$> f serviceId
{-# INLINE serviceIdL #-}

-- | 'serviceName' Lens
serviceNameL :: Lens_' Service (Text)
serviceNameL f Service{..} = (\serviceName -> Service { serviceName, ..} ) <$> f serviceName
{-# INLINE serviceNameL #-}

-- | 'serviceDisplayName' Lens
serviceDisplayNameL :: Lens_' Service (Text)
serviceDisplayNameL f Service{..} = (\serviceDisplayName -> Service { serviceDisplayName, ..} ) <$> f serviceDisplayName
{-# INLINE serviceDisplayNameL #-}

-- | 'serviceCreatedAt' Lens
serviceCreatedAtL :: Lens_' Service (DateTime)
serviceCreatedAtL f Service{..} = (\serviceCreatedAt -> Service { serviceCreatedAt, ..} ) <$> f serviceCreatedAt
{-# INLINE serviceCreatedAtL #-}

-- | 'serviceCount' Lens
serviceCountL :: Lens_' Service (ServiceAllOfCount)
serviceCountL f Service{..} = (\serviceCount -> Service { serviceCount, ..} ) <$> f serviceCount
{-# INLINE serviceCountL #-}



-- * ServiceAllOfCount

-- | 'serviceAllOfCountEvents' Lens
serviceAllOfCountEventsL :: Lens_' ServiceAllOfCount (Int)
serviceAllOfCountEventsL f ServiceAllOfCount{..} = (\serviceAllOfCountEvents -> ServiceAllOfCount { serviceAllOfCountEvents, ..} ) <$> f serviceAllOfCountEvents
{-# INLINE serviceAllOfCountEventsL #-}



-- * ServicePreference

-- | 'servicePreferenceId' Lens
servicePreferenceIdL :: Lens_' ServicePreference (Text)
servicePreferenceIdL f ServicePreference{..} = (\servicePreferenceId -> ServicePreference { servicePreferenceId, ..} ) <$> f servicePreferenceId
{-# INLINE servicePreferenceIdL #-}

-- | 'servicePreferenceName' Lens
servicePreferenceNameL :: Lens_' ServicePreference (Text)
servicePreferenceNameL f ServicePreference{..} = (\servicePreferenceName -> ServicePreference { servicePreferenceName, ..} ) <$> f servicePreferenceName
{-# INLINE servicePreferenceNameL #-}

-- | 'servicePreferenceDisplayName' Lens
servicePreferenceDisplayNameL :: Lens_' ServicePreference (Text)
servicePreferenceDisplayNameL f ServicePreference{..} = (\servicePreferenceDisplayName -> ServicePreference { servicePreferenceDisplayName, ..} ) <$> f servicePreferenceDisplayName
{-# INLINE servicePreferenceDisplayNameL #-}

-- | 'servicePreferenceEnabled' Lens
servicePreferenceEnabledL :: Lens_' ServicePreference (Bool)
servicePreferenceEnabledL f ServicePreference{..} = (\servicePreferenceEnabled -> ServicePreference { servicePreferenceEnabled, ..} ) <$> f servicePreferenceEnabled
{-# INLINE servicePreferenceEnabledL #-}

-- | 'servicePreferenceTypeOverrides' Lens
servicePreferenceTypeOverridesL :: Lens_' ServicePreference ([TypeOverride])
servicePreferenceTypeOverridesL f ServicePreference{..} = (\servicePreferenceTypeOverrides -> ServicePreference { servicePreferenceTypeOverrides, ..} ) <$> f servicePreferenceTypeOverrides
{-# INLINE servicePreferenceTypeOverridesL #-}



-- * ServiceSummary

-- | 'serviceSummaryId' Lens
serviceSummaryIdL :: Lens_' ServiceSummary (Text)
serviceSummaryIdL f ServiceSummary{..} = (\serviceSummaryId -> ServiceSummary { serviceSummaryId, ..} ) <$> f serviceSummaryId
{-# INLINE serviceSummaryIdL #-}

-- | 'serviceSummaryName' Lens
serviceSummaryNameL :: Lens_' ServiceSummary (Text)
serviceSummaryNameL f ServiceSummary{..} = (\serviceSummaryName -> ServiceSummary { serviceSummaryName, ..} ) <$> f serviceSummaryName
{-# INLINE serviceSummaryNameL #-}

-- | 'serviceSummaryDisplayName' Lens
serviceSummaryDisplayNameL :: Lens_' ServiceSummary (Text)
serviceSummaryDisplayNameL f ServiceSummary{..} = (\serviceSummaryDisplayName -> ServiceSummary { serviceSummaryDisplayName, ..} ) <$> f serviceSummaryDisplayName
{-# INLINE serviceSummaryDisplayNameL #-}



-- * SetEnabledInput

-- | 'setEnabledInputEnabled' Lens
setEnabledInputEnabledL :: Lens_' SetEnabledInput (Bool)
setEnabledInputEnabledL f SetEnabledInput{..} = (\setEnabledInputEnabled -> SetEnabledInput { setEnabledInputEnabled, ..} ) <$> f setEnabledInputEnabled
{-# INLINE setEnabledInputEnabledL #-}



-- * TextFilterCondition

-- | 'textFilterConditionField' Lens
textFilterConditionFieldL :: Lens_' TextFilterCondition (E'Field2)
textFilterConditionFieldL f TextFilterCondition{..} = (\textFilterConditionField -> TextFilterCondition { textFilterConditionField, ..} ) <$> f textFilterConditionField
{-# INLINE textFilterConditionFieldL #-}

-- | 'textFilterConditionComparison' Lens
textFilterConditionComparisonL :: Lens_' TextFilterCondition (E'Comparison2)
textFilterConditionComparisonL f TextFilterCondition{..} = (\textFilterConditionComparison -> TextFilterCondition { textFilterConditionComparison, ..} ) <$> f textFilterConditionComparison
{-# INLINE textFilterConditionComparisonL #-}

-- | 'textFilterConditionValue' Lens
textFilterConditionValueL :: Lens_' TextFilterCondition (Text)
textFilterConditionValueL f TextFilterCondition{..} = (\textFilterConditionValue -> TextFilterCondition { textFilterConditionValue, ..} ) <$> f textFilterConditionValue
{-# INLINE textFilterConditionValueL #-}



-- * TimeFilterCondition

-- | 'timeFilterConditionField' Lens
timeFilterConditionFieldL :: Lens_' TimeFilterCondition (E'Field)
timeFilterConditionFieldL f TimeFilterCondition{..} = (\timeFilterConditionField -> TimeFilterCondition { timeFilterConditionField, ..} ) <$> f timeFilterConditionField
{-# INLINE timeFilterConditionFieldL #-}

-- | 'timeFilterConditionComparison' Lens
timeFilterConditionComparisonL :: Lens_' TimeFilterCondition (E'Comparison)
timeFilterConditionComparisonL f TimeFilterCondition{..} = (\timeFilterConditionComparison -> TimeFilterCondition { timeFilterConditionComparison, ..} ) <$> f timeFilterConditionComparison
{-# INLINE timeFilterConditionComparisonL #-}

-- | 'timeFilterConditionValue' Lens
timeFilterConditionValueL :: Lens_' TimeFilterCondition (DateTime)
timeFilterConditionValueL f TimeFilterCondition{..} = (\timeFilterConditionValue -> TimeFilterCondition { timeFilterConditionValue, ..} ) <$> f timeFilterConditionValue
{-# INLINE timeFilterConditionValueL #-}



-- * TypeOverride

-- | 'typeOverrideType' Lens
typeOverrideTypeL :: Lens_' TypeOverride (Text)
typeOverrideTypeL f TypeOverride{..} = (\typeOverrideType -> TypeOverride { typeOverrideType, ..} ) <$> f typeOverrideType
{-# INLINE typeOverrideTypeL #-}

-- | 'typeOverrideEnabled' Lens
typeOverrideEnabledL :: Lens_' TypeOverride (Bool)
typeOverrideEnabledL f TypeOverride{..} = (\typeOverrideEnabled -> TypeOverride { typeOverrideEnabled, ..} ) <$> f typeOverrideEnabled
{-# INLINE typeOverrideEnabledL #-}

-- | 'typeOverrideUpdatedAt' Lens
typeOverrideUpdatedAtL :: Lens_' TypeOverride (DateTime)
typeOverrideUpdatedAtL f TypeOverride{..} = (\typeOverrideUpdatedAt -> TypeOverride { typeOverrideUpdatedAt, ..} ) <$> f typeOverrideUpdatedAt
{-# INLINE typeOverrideUpdatedAtL #-}



-- * User

-- | 'userId' Lens
userIdL :: Lens_' User (Text)
userIdL f User{..} = (\userId -> User { userId, ..} ) <$> f userId
{-# INLINE userIdL #-}

-- | 'userEmail' Lens
userEmailL :: Lens_' User (Text)
userEmailL f User{..} = (\userEmail -> User { userEmail, ..} ) <$> f userEmail
{-# INLINE userEmailL #-}

-- | 'userDisplayName' Lens
userDisplayNameL :: Lens_' User (Maybe Text)
userDisplayNameL f User{..} = (\userDisplayName -> User { userDisplayName, ..} ) <$> f userDisplayName
{-# INLINE userDisplayNameL #-}

-- | 'userHasPassword' Lens
userHasPasswordL :: Lens_' User (Bool)
userHasPasswordL f User{..} = (\userHasPassword -> User { userHasPassword, ..} ) <$> f userHasPassword
{-# INLINE userHasPasswordL #-}

-- | 'userHasGoogle' Lens
userHasGoogleL :: Lens_' User (Bool)
userHasGoogleL f User{..} = (\userHasGoogle -> User { userHasGoogle, ..} ) <$> f userHasGoogle
{-# INLINE userHasGoogleL #-}

-- | 'userHasApple' Lens
userHasAppleL :: Lens_' User (Bool)
userHasAppleL f User{..} = (\userHasApple -> User { userHasApple, ..} ) <$> f userHasApple
{-# INLINE userHasAppleL #-}



-- * WebPushConfiguration

-- | 'webPushConfigurationEnabled' Lens
webPushConfigurationEnabledL :: Lens_' WebPushConfiguration (Bool)
webPushConfigurationEnabledL f WebPushConfiguration{..} = (\webPushConfigurationEnabled -> WebPushConfiguration { webPushConfigurationEnabled, ..} ) <$> f webPushConfigurationEnabled
{-# INLINE webPushConfigurationEnabledL #-}

-- | 'webPushConfigurationPublicKey' Lens
webPushConfigurationPublicKeyL :: Lens_' WebPushConfiguration (Maybe Text)
webPushConfigurationPublicKeyL f WebPushConfiguration{..} = (\webPushConfigurationPublicKey -> WebPushConfiguration { webPushConfigurationPublicKey, ..} ) <$> f webPushConfigurationPublicKey
{-# INLINE webPushConfigurationPublicKeyL #-}



-- * WebPushSubscription

-- | 'webPushSubscriptionId' Lens
webPushSubscriptionIdL :: Lens_' WebPushSubscription (Text)
webPushSubscriptionIdL f WebPushSubscription{..} = (\webPushSubscriptionId -> WebPushSubscription { webPushSubscriptionId, ..} ) <$> f webPushSubscriptionId
{-# INLINE webPushSubscriptionIdL #-}

-- | 'webPushSubscriptionEnabled' Lens
webPushSubscriptionEnabledL :: Lens_' WebPushSubscription (Bool)
webPushSubscriptionEnabledL f WebPushSubscription{..} = (\webPushSubscriptionEnabled -> WebPushSubscription { webPushSubscriptionEnabled, ..} ) <$> f webPushSubscriptionEnabled
{-# INLINE webPushSubscriptionEnabledL #-}

-- | 'webPushSubscriptionLastSeenAt' Lens
webPushSubscriptionLastSeenAtL :: Lens_' WebPushSubscription (DateTime)
webPushSubscriptionLastSeenAtL f WebPushSubscription{..} = (\webPushSubscriptionLastSeenAt -> WebPushSubscription { webPushSubscriptionLastSeenAt, ..} ) <$> f webPushSubscriptionLastSeenAt
{-# INLINE webPushSubscriptionLastSeenAtL #-}