{-# 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.CustomerProfiles.GetProfileObjectType
-- 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)
--
-- Returns the object types for a specific domain.
module Amazonka.CustomerProfiles.GetProfileObjectType
  ( -- * Creating a Request
    GetProfileObjectType (..),
    newGetProfileObjectType,

    -- * Request Lenses
    getProfileObjectType_domainName,
    getProfileObjectType_objectTypeName,

    -- * Destructuring the Response
    GetProfileObjectTypeResponse (..),
    newGetProfileObjectTypeResponse,

    -- * Response Lenses
    getProfileObjectTypeResponse_expirationDays,
    getProfileObjectTypeResponse_lastUpdatedAt,
    getProfileObjectTypeResponse_createdAt,
    getProfileObjectTypeResponse_templateId,
    getProfileObjectTypeResponse_keys,
    getProfileObjectTypeResponse_encryptionKey,
    getProfileObjectTypeResponse_allowProfileCreation,
    getProfileObjectTypeResponse_fields,
    getProfileObjectTypeResponse_tags,
    getProfileObjectTypeResponse_httpStatus,
    getProfileObjectTypeResponse_objectTypeName,
    getProfileObjectTypeResponse_description,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.CustomerProfiles.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:/ 'newGetProfileObjectType' smart constructor.
data GetProfileObjectType = GetProfileObjectType'
  { -- | The unique name of the domain.
    GetProfileObjectType -> Text
domainName :: Prelude.Text,
    -- | The name of the profile object type.
    GetProfileObjectType -> Text
objectTypeName :: Prelude.Text
  }
  deriving (GetProfileObjectType -> GetProfileObjectType -> Bool
(GetProfileObjectType -> GetProfileObjectType -> Bool)
-> (GetProfileObjectType -> GetProfileObjectType -> Bool)
-> Eq GetProfileObjectType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProfileObjectType -> GetProfileObjectType -> Bool
$c/= :: GetProfileObjectType -> GetProfileObjectType -> Bool
== :: GetProfileObjectType -> GetProfileObjectType -> Bool
$c== :: GetProfileObjectType -> GetProfileObjectType -> Bool
Prelude.Eq, ReadPrec [GetProfileObjectType]
ReadPrec GetProfileObjectType
Int -> ReadS GetProfileObjectType
ReadS [GetProfileObjectType]
(Int -> ReadS GetProfileObjectType)
-> ReadS [GetProfileObjectType]
-> ReadPrec GetProfileObjectType
-> ReadPrec [GetProfileObjectType]
-> Read GetProfileObjectType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProfileObjectType]
$creadListPrec :: ReadPrec [GetProfileObjectType]
readPrec :: ReadPrec GetProfileObjectType
$creadPrec :: ReadPrec GetProfileObjectType
readList :: ReadS [GetProfileObjectType]
$creadList :: ReadS [GetProfileObjectType]
readsPrec :: Int -> ReadS GetProfileObjectType
$creadsPrec :: Int -> ReadS GetProfileObjectType
Prelude.Read, Int -> GetProfileObjectType -> ShowS
[GetProfileObjectType] -> ShowS
GetProfileObjectType -> String
(Int -> GetProfileObjectType -> ShowS)
-> (GetProfileObjectType -> String)
-> ([GetProfileObjectType] -> ShowS)
-> Show GetProfileObjectType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProfileObjectType] -> ShowS
$cshowList :: [GetProfileObjectType] -> ShowS
show :: GetProfileObjectType -> String
$cshow :: GetProfileObjectType -> String
showsPrec :: Int -> GetProfileObjectType -> ShowS
$cshowsPrec :: Int -> GetProfileObjectType -> ShowS
Prelude.Show, (forall x. GetProfileObjectType -> Rep GetProfileObjectType x)
-> (forall x. Rep GetProfileObjectType x -> GetProfileObjectType)
-> Generic GetProfileObjectType
forall x. Rep GetProfileObjectType x -> GetProfileObjectType
forall x. GetProfileObjectType -> Rep GetProfileObjectType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetProfileObjectType x -> GetProfileObjectType
$cfrom :: forall x. GetProfileObjectType -> Rep GetProfileObjectType x
Prelude.Generic)

-- |
-- Create a value of 'GetProfileObjectType' 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:
--
-- 'domainName', 'getProfileObjectType_domainName' - The unique name of the domain.
--
-- 'objectTypeName', 'getProfileObjectType_objectTypeName' - The name of the profile object type.
newGetProfileObjectType ::
  -- | 'domainName'
  Prelude.Text ->
  -- | 'objectTypeName'
  Prelude.Text ->
  GetProfileObjectType
newGetProfileObjectType :: Text -> Text -> GetProfileObjectType
newGetProfileObjectType Text
pDomainName_ Text
pObjectTypeName_ =
  GetProfileObjectType' :: Text -> Text -> GetProfileObjectType
GetProfileObjectType'
    { $sel:domainName:GetProfileObjectType' :: Text
domainName = Text
pDomainName_,
      $sel:objectTypeName:GetProfileObjectType' :: Text
objectTypeName = Text
pObjectTypeName_
    }

-- | The unique name of the domain.
getProfileObjectType_domainName :: Lens.Lens' GetProfileObjectType Prelude.Text
getProfileObjectType_domainName :: (Text -> f Text) -> GetProfileObjectType -> f GetProfileObjectType
getProfileObjectType_domainName = (GetProfileObjectType -> Text)
-> (GetProfileObjectType -> Text -> GetProfileObjectType)
-> Lens GetProfileObjectType GetProfileObjectType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectType' {Text
domainName :: Text
$sel:domainName:GetProfileObjectType' :: GetProfileObjectType -> Text
domainName} -> Text
domainName) (\s :: GetProfileObjectType
s@GetProfileObjectType' {} Text
a -> GetProfileObjectType
s {$sel:domainName:GetProfileObjectType' :: Text
domainName = Text
a} :: GetProfileObjectType)

-- | The name of the profile object type.
getProfileObjectType_objectTypeName :: Lens.Lens' GetProfileObjectType Prelude.Text
getProfileObjectType_objectTypeName :: (Text -> f Text) -> GetProfileObjectType -> f GetProfileObjectType
getProfileObjectType_objectTypeName = (GetProfileObjectType -> Text)
-> (GetProfileObjectType -> Text -> GetProfileObjectType)
-> Lens GetProfileObjectType GetProfileObjectType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectType' {Text
objectTypeName :: Text
$sel:objectTypeName:GetProfileObjectType' :: GetProfileObjectType -> Text
objectTypeName} -> Text
objectTypeName) (\s :: GetProfileObjectType
s@GetProfileObjectType' {} Text
a -> GetProfileObjectType
s {$sel:objectTypeName:GetProfileObjectType' :: Text
objectTypeName = Text
a} :: GetProfileObjectType)

instance Core.AWSRequest GetProfileObjectType where
  type
    AWSResponse GetProfileObjectType =
      GetProfileObjectTypeResponse
  request :: GetProfileObjectType -> Request GetProfileObjectType
request = Service -> GetProfileObjectType -> Request GetProfileObjectType
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetProfileObjectType
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetProfileObjectType)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetProfileObjectType))
-> Logger
-> Service
-> Proxy GetProfileObjectType
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetProfileObjectType)))
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 Natural
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text [ObjectTypeKey])
-> Maybe Text
-> Maybe Bool
-> Maybe (HashMap Text ObjectTypeField)
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> GetProfileObjectTypeResponse
GetProfileObjectTypeResponse'
            (Maybe Natural
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe (HashMap Text [ObjectTypeKey])
 -> Maybe Text
 -> Maybe Bool
 -> Maybe (HashMap Text ObjectTypeField)
 -> Maybe (HashMap Text Text)
 -> Int
 -> Text
 -> Text
 -> GetProfileObjectTypeResponse)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text [ObjectTypeKey])
      -> Maybe Text
      -> Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExpirationDays")
            Either
  String
  (Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text [ObjectTypeKey])
   -> Maybe Text
   -> Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text [ObjectTypeKey])
      -> Maybe Text
      -> Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastUpdatedAt")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text [ObjectTypeKey])
   -> Maybe Text
   -> Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text [ObjectTypeKey])
      -> Maybe Text
      -> Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedAt")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text [ObjectTypeKey])
   -> Maybe Text
   -> Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text [ObjectTypeKey])
      -> Maybe Text
      -> Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
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
"TemplateId")
            Either
  String
  (Maybe (HashMap Text [ObjectTypeKey])
   -> Maybe Text
   -> Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe (HashMap Text [ObjectTypeKey]))
-> Either
     String
     (Maybe Text
      -> Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe (HashMap Text [ObjectTypeKey])))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Keys" Either String (Maybe (Maybe (HashMap Text [ObjectTypeKey])))
-> Maybe (HashMap Text [ObjectTypeKey])
-> Either String (Maybe (HashMap Text [ObjectTypeKey]))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text [ObjectTypeKey])
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
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
"EncryptionKey")
            Either
  String
  (Maybe Bool
   -> Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe (HashMap Text ObjectTypeField)
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> Text
      -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AllowProfileCreation")
            Either
  String
  (Maybe (HashMap Text ObjectTypeField)
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> Text
   -> GetProfileObjectTypeResponse)
-> Either String (Maybe (HashMap Text ObjectTypeField))
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> Text -> Text -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe (HashMap Text ObjectTypeField)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Fields" Either String (Maybe (Maybe (HashMap Text ObjectTypeField)))
-> Maybe (HashMap Text ObjectTypeField)
-> Either String (Maybe (HashMap Text ObjectTypeField))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text ObjectTypeField)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> Text -> Text -> GetProfileObjectTypeResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String (Int -> Text -> Text -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> Text -> Text -> GetProfileObjectTypeResponse)
-> Either String Int
-> Either String (Text -> Text -> GetProfileObjectTypeResponse)
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))
            Either String (Text -> Text -> GetProfileObjectTypeResponse)
-> Either String Text
-> Either String (Text -> GetProfileObjectTypeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ObjectTypeName")
            Either String (Text -> GetProfileObjectTypeResponse)
-> Either String Text -> Either String GetProfileObjectTypeResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Description")
      )

instance Prelude.Hashable GetProfileObjectType

instance Prelude.NFData GetProfileObjectType

instance Core.ToHeaders GetProfileObjectType where
  toHeaders :: GetProfileObjectType -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetProfileObjectType -> 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.ToPath GetProfileObjectType where
  toPath :: GetProfileObjectType -> ByteString
toPath GetProfileObjectType' {Text
objectTypeName :: Text
domainName :: Text
$sel:objectTypeName:GetProfileObjectType' :: GetProfileObjectType -> Text
$sel:domainName:GetProfileObjectType' :: GetProfileObjectType -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/domains/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
domainName,
        ByteString
"/object-types/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
objectTypeName
      ]

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

-- | /See:/ 'newGetProfileObjectTypeResponse' smart constructor.
data GetProfileObjectTypeResponse = GetProfileObjectTypeResponse'
  { -- | The number of days until the data in the object expires.
    GetProfileObjectTypeResponse -> Maybe Natural
expirationDays :: Prelude.Maybe Prelude.Natural,
    -- | The timestamp of when the domain was most recently edited.
    GetProfileObjectTypeResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The timestamp of when the domain was created.
    GetProfileObjectTypeResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | A unique identifier for the object template.
    GetProfileObjectTypeResponse -> Maybe Text
templateId :: Prelude.Maybe Prelude.Text,
    -- | A list of unique keys that can be used to map data to the profile.
    GetProfileObjectTypeResponse
-> Maybe (HashMap Text [ObjectTypeKey])
keys :: Prelude.Maybe (Prelude.HashMap Prelude.Text [ObjectTypeKey]),
    -- | The customer-provided key to encrypt the profile object that will be
    -- created in this profile object type.
    GetProfileObjectTypeResponse -> Maybe Text
encryptionKey :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether a profile should be created when data is received if
    -- one doesn’t exist for an object of this type. The default is @FALSE@. If
    -- the AllowProfileCreation flag is set to @FALSE@, then the service tries
    -- to fetch a standard profile and associate this object with the profile.
    -- If it is set to @TRUE@, and if no match is found, then the service
    -- creates a new standard profile.
    GetProfileObjectTypeResponse -> Maybe Bool
allowProfileCreation :: Prelude.Maybe Prelude.Bool,
    -- | A map of the name and ObjectType field.
    GetProfileObjectTypeResponse
-> Maybe (HashMap Text ObjectTypeField)
fields :: Prelude.Maybe (Prelude.HashMap Prelude.Text ObjectTypeField),
    -- | The tags used to organize, track, or control access for this resource.
    GetProfileObjectTypeResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetProfileObjectTypeResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the profile object type.
    GetProfileObjectTypeResponse -> Text
objectTypeName :: Prelude.Text,
    -- | The description of the profile object type.
    GetProfileObjectTypeResponse -> Text
description :: Prelude.Text
  }
  deriving (GetProfileObjectTypeResponse
-> GetProfileObjectTypeResponse -> Bool
(GetProfileObjectTypeResponse
 -> GetProfileObjectTypeResponse -> Bool)
-> (GetProfileObjectTypeResponse
    -> GetProfileObjectTypeResponse -> Bool)
-> Eq GetProfileObjectTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProfileObjectTypeResponse
-> GetProfileObjectTypeResponse -> Bool
$c/= :: GetProfileObjectTypeResponse
-> GetProfileObjectTypeResponse -> Bool
== :: GetProfileObjectTypeResponse
-> GetProfileObjectTypeResponse -> Bool
$c== :: GetProfileObjectTypeResponse
-> GetProfileObjectTypeResponse -> Bool
Prelude.Eq, ReadPrec [GetProfileObjectTypeResponse]
ReadPrec GetProfileObjectTypeResponse
Int -> ReadS GetProfileObjectTypeResponse
ReadS [GetProfileObjectTypeResponse]
(Int -> ReadS GetProfileObjectTypeResponse)
-> ReadS [GetProfileObjectTypeResponse]
-> ReadPrec GetProfileObjectTypeResponse
-> ReadPrec [GetProfileObjectTypeResponse]
-> Read GetProfileObjectTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProfileObjectTypeResponse]
$creadListPrec :: ReadPrec [GetProfileObjectTypeResponse]
readPrec :: ReadPrec GetProfileObjectTypeResponse
$creadPrec :: ReadPrec GetProfileObjectTypeResponse
readList :: ReadS [GetProfileObjectTypeResponse]
$creadList :: ReadS [GetProfileObjectTypeResponse]
readsPrec :: Int -> ReadS GetProfileObjectTypeResponse
$creadsPrec :: Int -> ReadS GetProfileObjectTypeResponse
Prelude.Read, Int -> GetProfileObjectTypeResponse -> ShowS
[GetProfileObjectTypeResponse] -> ShowS
GetProfileObjectTypeResponse -> String
(Int -> GetProfileObjectTypeResponse -> ShowS)
-> (GetProfileObjectTypeResponse -> String)
-> ([GetProfileObjectTypeResponse] -> ShowS)
-> Show GetProfileObjectTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProfileObjectTypeResponse] -> ShowS
$cshowList :: [GetProfileObjectTypeResponse] -> ShowS
show :: GetProfileObjectTypeResponse -> String
$cshow :: GetProfileObjectTypeResponse -> String
showsPrec :: Int -> GetProfileObjectTypeResponse -> ShowS
$cshowsPrec :: Int -> GetProfileObjectTypeResponse -> ShowS
Prelude.Show, (forall x.
 GetProfileObjectTypeResponse -> Rep GetProfileObjectTypeResponse x)
-> (forall x.
    Rep GetProfileObjectTypeResponse x -> GetProfileObjectTypeResponse)
-> Generic GetProfileObjectTypeResponse
forall x.
Rep GetProfileObjectTypeResponse x -> GetProfileObjectTypeResponse
forall x.
GetProfileObjectTypeResponse -> Rep GetProfileObjectTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetProfileObjectTypeResponse x -> GetProfileObjectTypeResponse
$cfrom :: forall x.
GetProfileObjectTypeResponse -> Rep GetProfileObjectTypeResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetProfileObjectTypeResponse' 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:
--
-- 'expirationDays', 'getProfileObjectTypeResponse_expirationDays' - The number of days until the data in the object expires.
--
-- 'lastUpdatedAt', 'getProfileObjectTypeResponse_lastUpdatedAt' - The timestamp of when the domain was most recently edited.
--
-- 'createdAt', 'getProfileObjectTypeResponse_createdAt' - The timestamp of when the domain was created.
--
-- 'templateId', 'getProfileObjectTypeResponse_templateId' - A unique identifier for the object template.
--
-- 'keys', 'getProfileObjectTypeResponse_keys' - A list of unique keys that can be used to map data to the profile.
--
-- 'encryptionKey', 'getProfileObjectTypeResponse_encryptionKey' - The customer-provided key to encrypt the profile object that will be
-- created in this profile object type.
--
-- 'allowProfileCreation', 'getProfileObjectTypeResponse_allowProfileCreation' - Indicates whether a profile should be created when data is received if
-- one doesn’t exist for an object of this type. The default is @FALSE@. If
-- the AllowProfileCreation flag is set to @FALSE@, then the service tries
-- to fetch a standard profile and associate this object with the profile.
-- If it is set to @TRUE@, and if no match is found, then the service
-- creates a new standard profile.
--
-- 'fields', 'getProfileObjectTypeResponse_fields' - A map of the name and ObjectType field.
--
-- 'tags', 'getProfileObjectTypeResponse_tags' - The tags used to organize, track, or control access for this resource.
--
-- 'httpStatus', 'getProfileObjectTypeResponse_httpStatus' - The response's http status code.
--
-- 'objectTypeName', 'getProfileObjectTypeResponse_objectTypeName' - The name of the profile object type.
--
-- 'description', 'getProfileObjectTypeResponse_description' - The description of the profile object type.
newGetProfileObjectTypeResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'objectTypeName'
  Prelude.Text ->
  -- | 'description'
  Prelude.Text ->
  GetProfileObjectTypeResponse
newGetProfileObjectTypeResponse :: Int -> Text -> Text -> GetProfileObjectTypeResponse
newGetProfileObjectTypeResponse
  Int
pHttpStatus_
  Text
pObjectTypeName_
  Text
pDescription_ =
    GetProfileObjectTypeResponse' :: Maybe Natural
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text [ObjectTypeKey])
-> Maybe Text
-> Maybe Bool
-> Maybe (HashMap Text ObjectTypeField)
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> Text
-> GetProfileObjectTypeResponse
GetProfileObjectTypeResponse'
      { $sel:expirationDays:GetProfileObjectTypeResponse' :: Maybe Natural
expirationDays =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:lastUpdatedAt:GetProfileObjectTypeResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:createdAt:GetProfileObjectTypeResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:templateId:GetProfileObjectTypeResponse' :: Maybe Text
templateId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:keys:GetProfileObjectTypeResponse' :: Maybe (HashMap Text [ObjectTypeKey])
keys = Maybe (HashMap Text [ObjectTypeKey])
forall a. Maybe a
Prelude.Nothing,
        $sel:encryptionKey:GetProfileObjectTypeResponse' :: Maybe Text
encryptionKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:allowProfileCreation:GetProfileObjectTypeResponse' :: Maybe Bool
allowProfileCreation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:fields:GetProfileObjectTypeResponse' :: Maybe (HashMap Text ObjectTypeField)
fields = Maybe (HashMap Text ObjectTypeField)
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:GetProfileObjectTypeResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetProfileObjectTypeResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:objectTypeName:GetProfileObjectTypeResponse' :: Text
objectTypeName = Text
pObjectTypeName_,
        $sel:description:GetProfileObjectTypeResponse' :: Text
description = Text
pDescription_
      }

-- | The number of days until the data in the object expires.
getProfileObjectTypeResponse_expirationDays :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.Natural)
getProfileObjectTypeResponse_expirationDays :: (Maybe Natural -> f (Maybe Natural))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_expirationDays = (GetProfileObjectTypeResponse -> Maybe Natural)
-> (GetProfileObjectTypeResponse
    -> Maybe Natural -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe Natural
expirationDays :: Maybe Natural
$sel:expirationDays:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe Natural
expirationDays} -> Maybe Natural
expirationDays) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe Natural
a -> GetProfileObjectTypeResponse
s {$sel:expirationDays:GetProfileObjectTypeResponse' :: Maybe Natural
expirationDays = Maybe Natural
a} :: GetProfileObjectTypeResponse)

-- | The timestamp of when the domain was most recently edited.
getProfileObjectTypeResponse_lastUpdatedAt :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.UTCTime)
getProfileObjectTypeResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_lastUpdatedAt = (GetProfileObjectTypeResponse -> Maybe POSIX)
-> (GetProfileObjectTypeResponse
    -> Maybe POSIX -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe POSIX
a -> GetProfileObjectTypeResponse
s {$sel:lastUpdatedAt:GetProfileObjectTypeResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: GetProfileObjectTypeResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetProfileObjectTypeResponse
-> f GetProfileObjectTypeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The timestamp of when the domain was created.
getProfileObjectTypeResponse_createdAt :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.UTCTime)
getProfileObjectTypeResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_createdAt = (GetProfileObjectTypeResponse -> Maybe POSIX)
-> (GetProfileObjectTypeResponse
    -> Maybe POSIX -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe POSIX
a -> GetProfileObjectTypeResponse
s {$sel:createdAt:GetProfileObjectTypeResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetProfileObjectTypeResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetProfileObjectTypeResponse
-> f GetProfileObjectTypeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A unique identifier for the object template.
getProfileObjectTypeResponse_templateId :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.Text)
getProfileObjectTypeResponse_templateId :: (Maybe Text -> f (Maybe Text))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_templateId = (GetProfileObjectTypeResponse -> Maybe Text)
-> (GetProfileObjectTypeResponse
    -> Maybe Text -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe Text
templateId :: Maybe Text
$sel:templateId:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe Text
templateId} -> Maybe Text
templateId) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe Text
a -> GetProfileObjectTypeResponse
s {$sel:templateId:GetProfileObjectTypeResponse' :: Maybe Text
templateId = Maybe Text
a} :: GetProfileObjectTypeResponse)

-- | A list of unique keys that can be used to map data to the profile.
getProfileObjectTypeResponse_keys :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text [ObjectTypeKey]))
getProfileObjectTypeResponse_keys :: (Maybe (HashMap Text [ObjectTypeKey])
 -> f (Maybe (HashMap Text [ObjectTypeKey])))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_keys = (GetProfileObjectTypeResponse
 -> Maybe (HashMap Text [ObjectTypeKey]))
-> (GetProfileObjectTypeResponse
    -> Maybe (HashMap Text [ObjectTypeKey])
    -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe (HashMap Text [ObjectTypeKey]))
     (Maybe (HashMap Text [ObjectTypeKey]))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe (HashMap Text [ObjectTypeKey])
keys :: Maybe (HashMap Text [ObjectTypeKey])
$sel:keys:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse
-> Maybe (HashMap Text [ObjectTypeKey])
keys} -> Maybe (HashMap Text [ObjectTypeKey])
keys) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe (HashMap Text [ObjectTypeKey])
a -> GetProfileObjectTypeResponse
s {$sel:keys:GetProfileObjectTypeResponse' :: Maybe (HashMap Text [ObjectTypeKey])
keys = Maybe (HashMap Text [ObjectTypeKey])
a} :: GetProfileObjectTypeResponse) ((Maybe (HashMap Text [ObjectTypeKey])
  -> f (Maybe (HashMap Text [ObjectTypeKey])))
 -> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse)
-> ((Maybe (HashMap Text [ObjectTypeKey])
     -> f (Maybe (HashMap Text [ObjectTypeKey])))
    -> Maybe (HashMap Text [ObjectTypeKey])
    -> f (Maybe (HashMap Text [ObjectTypeKey])))
-> (Maybe (HashMap Text [ObjectTypeKey])
    -> f (Maybe (HashMap Text [ObjectTypeKey])))
-> GetProfileObjectTypeResponse
-> f GetProfileObjectTypeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
-> Iso
     (Maybe (HashMap Text [ObjectTypeKey]))
     (Maybe (HashMap Text [ObjectTypeKey]))
     (Maybe (HashMap Text [ObjectTypeKey]))
     (Maybe (HashMap Text [ObjectTypeKey]))
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
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
  (HashMap Text [ObjectTypeKey])
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The customer-provided key to encrypt the profile object that will be
-- created in this profile object type.
getProfileObjectTypeResponse_encryptionKey :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.Text)
getProfileObjectTypeResponse_encryptionKey :: (Maybe Text -> f (Maybe Text))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_encryptionKey = (GetProfileObjectTypeResponse -> Maybe Text)
-> (GetProfileObjectTypeResponse
    -> Maybe Text -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe Text
encryptionKey :: Maybe Text
$sel:encryptionKey:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe Text
encryptionKey} -> Maybe Text
encryptionKey) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe Text
a -> GetProfileObjectTypeResponse
s {$sel:encryptionKey:GetProfileObjectTypeResponse' :: Maybe Text
encryptionKey = Maybe Text
a} :: GetProfileObjectTypeResponse)

-- | Indicates whether a profile should be created when data is received if
-- one doesn’t exist for an object of this type. The default is @FALSE@. If
-- the AllowProfileCreation flag is set to @FALSE@, then the service tries
-- to fetch a standard profile and associate this object with the profile.
-- If it is set to @TRUE@, and if no match is found, then the service
-- creates a new standard profile.
getProfileObjectTypeResponse_allowProfileCreation :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe Prelude.Bool)
getProfileObjectTypeResponse_allowProfileCreation :: (Maybe Bool -> f (Maybe Bool))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_allowProfileCreation = (GetProfileObjectTypeResponse -> Maybe Bool)
-> (GetProfileObjectTypeResponse
    -> Maybe Bool -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe Bool
allowProfileCreation :: Maybe Bool
$sel:allowProfileCreation:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe Bool
allowProfileCreation} -> Maybe Bool
allowProfileCreation) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe Bool
a -> GetProfileObjectTypeResponse
s {$sel:allowProfileCreation:GetProfileObjectTypeResponse' :: Maybe Bool
allowProfileCreation = Maybe Bool
a} :: GetProfileObjectTypeResponse)

-- | A map of the name and ObjectType field.
getProfileObjectTypeResponse_fields :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text ObjectTypeField))
getProfileObjectTypeResponse_fields :: (Maybe (HashMap Text ObjectTypeField)
 -> f (Maybe (HashMap Text ObjectTypeField)))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_fields = (GetProfileObjectTypeResponse
 -> Maybe (HashMap Text ObjectTypeField))
-> (GetProfileObjectTypeResponse
    -> Maybe (HashMap Text ObjectTypeField)
    -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe (HashMap Text ObjectTypeField))
     (Maybe (HashMap Text ObjectTypeField))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe (HashMap Text ObjectTypeField)
fields :: Maybe (HashMap Text ObjectTypeField)
$sel:fields:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse
-> Maybe (HashMap Text ObjectTypeField)
fields} -> Maybe (HashMap Text ObjectTypeField)
fields) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe (HashMap Text ObjectTypeField)
a -> GetProfileObjectTypeResponse
s {$sel:fields:GetProfileObjectTypeResponse' :: Maybe (HashMap Text ObjectTypeField)
fields = Maybe (HashMap Text ObjectTypeField)
a} :: GetProfileObjectTypeResponse) ((Maybe (HashMap Text ObjectTypeField)
  -> f (Maybe (HashMap Text ObjectTypeField)))
 -> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse)
-> ((Maybe (HashMap Text ObjectTypeField)
     -> f (Maybe (HashMap Text ObjectTypeField)))
    -> Maybe (HashMap Text ObjectTypeField)
    -> f (Maybe (HashMap Text ObjectTypeField)))
-> (Maybe (HashMap Text ObjectTypeField)
    -> f (Maybe (HashMap Text ObjectTypeField)))
-> GetProfileObjectTypeResponse
-> f GetProfileObjectTypeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
-> Iso
     (Maybe (HashMap Text ObjectTypeField))
     (Maybe (HashMap Text ObjectTypeField))
     (Maybe (HashMap Text ObjectTypeField))
     (Maybe (HashMap Text ObjectTypeField))
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
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
  (HashMap Text ObjectTypeField)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The tags used to organize, track, or control access for this resource.
getProfileObjectTypeResponse_tags :: Lens.Lens' GetProfileObjectTypeResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getProfileObjectTypeResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_tags = (GetProfileObjectTypeResponse -> Maybe (HashMap Text Text))
-> (GetProfileObjectTypeResponse
    -> Maybe (HashMap Text Text) -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse
     GetProfileObjectTypeResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Maybe (HashMap Text Text)
a -> GetProfileObjectTypeResponse
s {$sel:tags:GetProfileObjectTypeResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetProfileObjectTypeResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetProfileObjectTypeResponse
-> f GetProfileObjectTypeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The name of the profile object type.
getProfileObjectTypeResponse_objectTypeName :: Lens.Lens' GetProfileObjectTypeResponse Prelude.Text
getProfileObjectTypeResponse_objectTypeName :: (Text -> f Text)
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_objectTypeName = (GetProfileObjectTypeResponse -> Text)
-> (GetProfileObjectTypeResponse
    -> Text -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse GetProfileObjectTypeResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Text
objectTypeName :: Text
$sel:objectTypeName:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Text
objectTypeName} -> Text
objectTypeName) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Text
a -> GetProfileObjectTypeResponse
s {$sel:objectTypeName:GetProfileObjectTypeResponse' :: Text
objectTypeName = Text
a} :: GetProfileObjectTypeResponse)

-- | The description of the profile object type.
getProfileObjectTypeResponse_description :: Lens.Lens' GetProfileObjectTypeResponse Prelude.Text
getProfileObjectTypeResponse_description :: (Text -> f Text)
-> GetProfileObjectTypeResponse -> f GetProfileObjectTypeResponse
getProfileObjectTypeResponse_description = (GetProfileObjectTypeResponse -> Text)
-> (GetProfileObjectTypeResponse
    -> Text -> GetProfileObjectTypeResponse)
-> Lens
     GetProfileObjectTypeResponse GetProfileObjectTypeResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProfileObjectTypeResponse' {Text
description :: Text
$sel:description:GetProfileObjectTypeResponse' :: GetProfileObjectTypeResponse -> Text
description} -> Text
description) (\s :: GetProfileObjectTypeResponse
s@GetProfileObjectTypeResponse' {} Text
a -> GetProfileObjectTypeResponse
s {$sel:description:GetProfileObjectTypeResponse' :: Text
description = Text
a} :: GetProfileObjectTypeResponse)

instance Prelude.NFData GetProfileObjectTypeResponse