Class CampaignHook

    • Method Detail

      • lambdaFunctionName

        public final String lambdaFunctionName()

        The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        Returns:
        The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
      • mode

        public final Mode mode()

        The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

        • FILTER - Invoke the function to customize the segment that's used by a campaign.

        • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        If the service returns an enum value that is not available in the current SDK version, mode will return Mode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

        • FILTER - Invoke the function to customize the segment that's used by a campaign.

        • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        See Also:
        Mode
      • modeAsString

        public final String modeAsString()

        The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

        • FILTER - Invoke the function to customize the segment that's used by a campaign.

        • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        If the service returns an enum value that is not available in the current SDK version, mode will return Mode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

        • FILTER - Invoke the function to customize the segment that's used by a campaign.

        • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        See Also:
        Mode
      • webUrl

        public final String webUrl()

        The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

        Returns:

        The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)