@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomMessageActivity extends Object implements Serializable, Cloneable, StructuredPojo
The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.
Constructor and Description |
---|
CustomMessageActivity() |
Modifier and Type | Method and Description |
---|---|
CustomMessageActivity |
clone() |
boolean |
equals(Object obj) |
String |
getDeliveryUri()
The destination to send the campaign or treatment to.
|
List<String> |
getEndpointTypes()
The types of endpoints to send the custom message to.
|
JourneyCustomMessage |
getMessageConfig()
Specifies the message data included in a custom channel message that's sent to participants in a journey.
|
String |
getNextActivity()
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or
web hook.
|
String |
getTemplateName()
The name of the custom message template to use for the message.
|
String |
getTemplateVersion()
The unique identifier for the version of the message template to use for the message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDeliveryUri(String deliveryUri)
The destination to send the campaign or treatment to.
|
void |
setEndpointTypes(Collection<String> endpointTypes)
The types of endpoints to send the custom message to.
|
void |
setMessageConfig(JourneyCustomMessage messageConfig)
Specifies the message data included in a custom channel message that's sent to participants in a journey.
|
void |
setNextActivity(String nextActivity)
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or
web hook.
|
void |
setTemplateName(String templateName)
The name of the custom message template to use for the message.
|
void |
setTemplateVersion(String templateVersion)
The unique identifier for the version of the message template to use for the message.
|
String |
toString()
Returns a string representation of this object.
|
CustomMessageActivity |
withDeliveryUri(String deliveryUri)
The destination to send the campaign or treatment to.
|
CustomMessageActivity |
withEndpointTypes(Collection<String> endpointTypes)
The types of endpoints to send the custom message to.
|
CustomMessageActivity |
withEndpointTypes(EndpointTypesElement... endpointTypes)
The types of endpoints to send the custom message to.
|
CustomMessageActivity |
withEndpointTypes(String... endpointTypes)
The types of endpoints to send the custom message to.
|
CustomMessageActivity |
withMessageConfig(JourneyCustomMessage messageConfig)
Specifies the message data included in a custom channel message that's sent to participants in a journey.
|
CustomMessageActivity |
withNextActivity(String nextActivity)
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or
web hook.
|
CustomMessageActivity |
withTemplateName(String templateName)
The name of the custom message template to use for the message.
|
CustomMessageActivity |
withTemplateVersion(String templateVersion)
The unique identifier for the version of the message template to use for the message.
|
public void setDeliveryUri(String deliveryUri)
The destination to send the campaign or treatment to. This value can be one of the following:
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
deliveryUri
- The destination to send the campaign or treatment to. This value can be one of the following:
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
public String getDeliveryUri()
The destination to send the campaign or treatment to. This value can be one of the following:
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
public CustomMessageActivity withDeliveryUri(String deliveryUri)
The destination to send the campaign or treatment to. This value can be one of the following:
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
deliveryUri
- The destination to send the campaign or treatment to. This value can be one of the following:
The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.
The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.
public List<String> getEndpointTypes()
The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.
EndpointTypesElement
public void setEndpointTypes(Collection<String> endpointTypes)
The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.
endpointTypes
- The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you
can associate with an endpoint by using the ChannelType property of an endpoint.EndpointTypesElement
public CustomMessageActivity withEndpointTypes(String... endpointTypes)
The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.
NOTE: This method appends the values to the existing list (if any). Use
setEndpointTypes(java.util.Collection)
or withEndpointTypes(java.util.Collection)
if you want
to override the existing values.
endpointTypes
- The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you
can associate with an endpoint by using the ChannelType property of an endpoint.EndpointTypesElement
public CustomMessageActivity withEndpointTypes(Collection<String> endpointTypes)
The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.
endpointTypes
- The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you
can associate with an endpoint by using the ChannelType property of an endpoint.EndpointTypesElement
public CustomMessageActivity withEndpointTypes(EndpointTypesElement... endpointTypes)
The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.
endpointTypes
- The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you
can associate with an endpoint by using the ChannelType property of an endpoint.EndpointTypesElement
public void setMessageConfig(JourneyCustomMessage messageConfig)
Specifies the message data included in a custom channel message that's sent to participants in a journey.
messageConfig
- Specifies the message data included in a custom channel message that's sent to participants in a journey.public JourneyCustomMessage getMessageConfig()
Specifies the message data included in a custom channel message that's sent to participants in a journey.
public CustomMessageActivity withMessageConfig(JourneyCustomMessage messageConfig)
Specifies the message data included in a custom channel message that's sent to participants in a journey.
messageConfig
- Specifies the message data included in a custom channel message that's sent to participants in a journey.public void setNextActivity(String nextActivity)
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.
nextActivity
- The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda
function or web hook.public String getNextActivity()
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.
public CustomMessageActivity withNextActivity(String nextActivity)
The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.
nextActivity
- The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda
function or web hook.public void setTemplateName(String templateName)
The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.
templateName
- The name of the custom message template to use for the message. If specified, this value must match the
name of an existing message template.public String getTemplateName()
The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.
public CustomMessageActivity withTemplateName(String templateName)
The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.
templateName
- The name of the custom message template to use for the message. If specified, this value must match the
name of an existing message template.public void setTemplateVersion(String templateVersion)
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
templateVersion
- The unique identifier for the version of the message template to use for the message. If specified, this
value must match the identifier for an existing template version. To retrieve a list of versions and
version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public String getTemplateVersion()
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public CustomMessageActivity withTemplateVersion(String templateVersion)
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
templateVersion
- The unique identifier for the version of the message template to use for the message. If specified, this
value must match the identifier for an existing template version. To retrieve a list of versions and
version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
public String toString()
toString
in class Object
Object.toString()
public CustomMessageActivity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.