Class CfnObjectTypeProps.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnObjectTypeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnObjectTypeProps>
- Enclosing interface:
CfnObjectTypeProps
@Stability(Stable)
public static final class CfnObjectTypeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnObjectTypeProps>
A builder for
CfnObjectTypeProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowProfileCreation
(Boolean allowProfileCreation) Sets the value ofCfnObjectTypeProps.getAllowProfileCreation()
allowProfileCreation
(IResolvable allowProfileCreation) Sets the value ofCfnObjectTypeProps.getAllowProfileCreation()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnObjectTypeProps.getDescription()
domainName
(String domainName) Sets the value ofCfnObjectTypeProps.getDomainName()
encryptionKey
(String encryptionKey) Sets the value ofCfnObjectTypeProps.getEncryptionKey()
expirationDays
(Number expirationDays) Sets the value ofCfnObjectTypeProps.getExpirationDays()
Sets the value ofCfnObjectTypeProps.getFields()
fields
(IResolvable fields) Sets the value ofCfnObjectTypeProps.getFields()
Sets the value ofCfnObjectTypeProps.getKeys()
keys
(IResolvable keys) Sets the value ofCfnObjectTypeProps.getKeys()
objectTypeName
(String objectTypeName) Sets the value ofCfnObjectTypeProps.getObjectTypeName()
sourceLastUpdatedTimestampFormat
(String sourceLastUpdatedTimestampFormat) Sets the value ofCfnObjectTypeProps.getSourceLastUpdatedTimestampFormat()
Sets the value ofCfnObjectTypeProps.getTags()
templateId
(String templateId) Sets the value ofCfnObjectTypeProps.getTemplateId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnObjectTypeProps.getDescription()
- Parameters:
description
- The description of the profile object type mapping. This parameter is required.- Returns:
this
-
domainName
Sets the value ofCfnObjectTypeProps.getDomainName()
- Parameters:
domainName
- The unique name of the domain. This parameter is required.- Returns:
this
-
objectTypeName
Sets the value ofCfnObjectTypeProps.getObjectTypeName()
- Parameters:
objectTypeName
- The name of the profile object type. This parameter is required.- Returns:
this
-
allowProfileCreation
@Stability(Stable) public CfnObjectTypeProps.Builder allowProfileCreation(Boolean allowProfileCreation) Sets the value ofCfnObjectTypeProps.getAllowProfileCreation()
- Parameters:
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 isFALSE
. If the AllowProfileCreation flag is set toFALSE
, then the service tries to fetch a standard profile and associate this object with the profile. If it is set toTRUE
, and if no match is found, then the service creates a new standard profile.- Returns:
this
-
allowProfileCreation
@Stability(Stable) public CfnObjectTypeProps.Builder allowProfileCreation(IResolvable allowProfileCreation) Sets the value ofCfnObjectTypeProps.getAllowProfileCreation()
- Parameters:
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 isFALSE
. If the AllowProfileCreation flag is set toFALSE
, then the service tries to fetch a standard profile and associate this object with the profile. If it is set toTRUE
, and if no match is found, then the service creates a new standard profile.- Returns:
this
-
encryptionKey
Sets the value ofCfnObjectTypeProps.getEncryptionKey()
- Parameters:
encryptionKey
- The customer-provided key to encrypt the profile object that will be created in this profile object type mapping. If not specified the system will use the encryption key of the domain.- Returns:
this
-
expirationDays
Sets the value ofCfnObjectTypeProps.getExpirationDays()
- Parameters:
expirationDays
- The number of days until the data of this type expires.- Returns:
this
-
fields
Sets the value ofCfnObjectTypeProps.getFields()
- Parameters:
fields
- A list of field definitions for the object type mapping.- Returns:
this
-
fields
Sets the value ofCfnObjectTypeProps.getFields()
- Parameters:
fields
- A list of field definitions for the object type mapping.- Returns:
this
-
keys
Sets the value ofCfnObjectTypeProps.getKeys()
- Parameters:
keys
- A list of keys that can be used to map data to the profile or search for the profile.- Returns:
this
-
keys
Sets the value ofCfnObjectTypeProps.getKeys()
- Parameters:
keys
- A list of keys that can be used to map data to the profile or search for the profile.- Returns:
this
-
sourceLastUpdatedTimestampFormat
@Stability(Stable) public CfnObjectTypeProps.Builder sourceLastUpdatedTimestampFormat(String sourceLastUpdatedTimestampFormat) Sets the value ofCfnObjectTypeProps.getSourceLastUpdatedTimestampFormat()
- Parameters:
sourceLastUpdatedTimestampFormat
- The format of your sourceLastUpdatedTimestamp that was previously set up.- Returns:
this
-
tags
Sets the value ofCfnObjectTypeProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
this
-
templateId
Sets the value ofCfnObjectTypeProps.getTemplateId()
- Parameters:
templateId
- A unique identifier for the template mapping. This can be used instead of specifying the Keys and Fields properties directly.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnObjectTypeProps>
- Returns:
- a new instance of
CfnObjectTypeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-