Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns the template information for a specific object type.
A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.
Synopsis
- data GetProfileObjectTypeTemplate = GetProfileObjectTypeTemplate' {
- templateId :: Text
- newGetProfileObjectTypeTemplate :: Text -> GetProfileObjectTypeTemplate
- getProfileObjectTypeTemplate_templateId :: Lens' GetProfileObjectTypeTemplate Text
- data GetProfileObjectTypeTemplateResponse = GetProfileObjectTypeTemplateResponse' {}
- newGetProfileObjectTypeTemplateResponse :: Int -> GetProfileObjectTypeTemplateResponse
- getProfileObjectTypeTemplateResponse_allowProfileCreation :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Bool)
- getProfileObjectTypeTemplateResponse_fields :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text ObjectTypeField))
- getProfileObjectTypeTemplateResponse_keys :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text [ObjectTypeKey]))
- getProfileObjectTypeTemplateResponse_sourceLastUpdatedTimestampFormat :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_sourceName :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_sourceObject :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_templateId :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_httpStatus :: Lens' GetProfileObjectTypeTemplateResponse Int
Creating a Request
data GetProfileObjectTypeTemplate Source #
See: newGetProfileObjectTypeTemplate
smart constructor.
GetProfileObjectTypeTemplate' | |
|
Instances
newGetProfileObjectTypeTemplate Source #
Create a value of GetProfileObjectTypeTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetProfileObjectTypeTemplate
, getProfileObjectTypeTemplate_templateId
- A unique identifier for the object template.
Request Lenses
getProfileObjectTypeTemplate_templateId :: Lens' GetProfileObjectTypeTemplate Text Source #
A unique identifier for the object template.
Destructuring the Response
data GetProfileObjectTypeTemplateResponse Source #
See: newGetProfileObjectTypeTemplateResponse
smart constructor.
GetProfileObjectTypeTemplateResponse' | |
|
Instances
newGetProfileObjectTypeTemplateResponse Source #
Create a value of GetProfileObjectTypeTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:allowProfileCreation:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_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.
$sel:fields:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_fields
- A map of the name and ObjectType field.
$sel:keys:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_keys
- A list of unique keys that can be used to map data to the profile.
$sel:sourceLastUpdatedTimestampFormat:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_sourceLastUpdatedTimestampFormat
- The format of your sourceLastUpdatedTimestamp
that was previously set
up.
GetProfileObjectTypeTemplateResponse
, getProfileObjectTypeTemplateResponse_sourceName
- The name of the source of the object template.
GetProfileObjectTypeTemplateResponse
, getProfileObjectTypeTemplateResponse_sourceObject
- The source of the object template.
GetProfileObjectTypeTemplate
, getProfileObjectTypeTemplateResponse_templateId
- A unique identifier for the object template.
$sel:httpStatus:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
getProfileObjectTypeTemplateResponse_allowProfileCreation :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Bool) Source #
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.
getProfileObjectTypeTemplateResponse_fields :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text ObjectTypeField)) Source #
A map of the name and ObjectType field.
getProfileObjectTypeTemplateResponse_keys :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text [ObjectTypeKey])) Source #
A list of unique keys that can be used to map data to the profile.
getProfileObjectTypeTemplateResponse_sourceLastUpdatedTimestampFormat :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
The format of your sourceLastUpdatedTimestamp
that was previously set
up.
getProfileObjectTypeTemplateResponse_sourceName :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
The name of the source of the object template.
getProfileObjectTypeTemplateResponse_sourceObject :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
The source of the object template.
getProfileObjectTypeTemplateResponse_templateId :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
A unique identifier for the object template.
getProfileObjectTypeTemplateResponse_httpStatus :: Lens' GetProfileObjectTypeTemplateResponse Int Source #
The response's http status code.