@ProviderType public class MacMetadata extends java.lang.Object
Constructor and Description |
---|
MacMetadata() |
Modifier and Type | Method and Description |
---|---|
MacMetadata |
addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Adds a Marketing Cloud Metadata attribute / value pair to this offer request.
|
MacMetadata |
addAttribute(java.lang.String attributeName,
java.lang.String[] attributeValues)
Adds a Marketing Cloud Metadata attribute / value pair to this offer request.
|
static MacMetadata |
generateMandatoryMetadata(java.lang.String editUrl,
java.lang.String remoteModifiedBy)
Generates the mandatory metadata.
|
java.util.Map<java.lang.String,java.lang.String> |
getMarketingCloudMetadata()
Retrieves the list of the Marketing Cloud Metadata attributes.
|
java.lang.String |
getValue(java.lang.String attributeName)
Retrieves the value of a specific attribute from this metadata set
|
java.lang.String[] |
getValues(java.lang.String attributeName)
Retrieves the value of a specific attribute from this metadata set, specifying what type should the returned value be
|
void |
removeAttribute(java.lang.String attributeName)
Removes a Marketing Cloud Metadata attribute from the list.
|
@Nonnull public MacMetadata addAttribute(@Nonnull java.lang.String attributeName, @Nonnull java.lang.String attributeValue)
RuntimeException
if any of the above mentioned restrictions are hit.attributeName
- the name of the attributeattributeValue
- the value of the attributeMacMetadata
public MacMetadata addAttribute(@Nonnull java.lang.String attributeName, @Nonnull java.lang.String[] attributeValues)
RuntimeException
if any of the above mentioned restrictions are hit.attributeName
- the name of the attributeattributeValues
- the values of the attributesMacMetadata
public void removeAttribute(@Nonnull java.lang.String attributeName)
attributeName
- the name of the attribute.public java.util.Map<java.lang.String,java.lang.String> getMarketingCloudMetadata()
Map
having the attribute names as keys and the attribute values as values.@Nullable public java.lang.String getValue(@Nonnull java.lang.String attributeName)
attributeName
- the name of the attributeString
containing the value, or null
if the value is not found or it's not a String
.@Nullable public java.lang.String[] getValues(@Nonnull java.lang.String attributeName)
attributeName
- the name of the attribute@Nonnull public static MacMetadata generateMandatoryMetadata(@Nonnull java.lang.String editUrl, @Nonnull java.lang.String remoteModifiedBy)
editUrl
- the URL which is used to access the objectremoteModifiedBy
- the user which performed the last modificationMacMetadata
object containing the three attributes aboveCopyright © 2010 - 2020 Adobe. All Rights Reserved