Class ResponseConfig

java.lang.Object
com.mypurecloud.sdk.v2.model.ResponseConfig
All Implemented Interfaces:
Serializable

public class ResponseConfig extends Object implements Serializable
Defines response components of the Action Request.
See Also:
  • Constructor Details

    • ResponseConfig

      public ResponseConfig()
    • ResponseConfig

      public ResponseConfig(Boolean initWithEmptyList)
  • Method Details

    • translationMap

      public ResponseConfig translationMap(Map<String,String> translationMap)
      Map 'attribute name' and 'JSON path' pairs used to extract data from REST response.
    • getTranslationMap

      public Map<String,String> getTranslationMap()
    • setTranslationMap

      public void setTranslationMap(Map<String,String> translationMap)
    • translationMapDefaults

      public ResponseConfig translationMapDefaults(Map<String,String> translationMapDefaults)
      Map 'attribute name' and 'default value' pairs used as fallback values if JSON path extraction fails for specified key.
    • getTranslationMapDefaults

      public Map<String,String> getTranslationMapDefaults()
    • setTranslationMapDefaults

      public void setTranslationMapDefaults(Map<String,String> translationMapDefaults)
    • successTemplate

      public ResponseConfig successTemplate(String successTemplate)
      Velocity template to build response to return from Action.
    • getSuccessTemplate

      public String getSuccessTemplate()
    • setSuccessTemplate

      public void setSuccessTemplate(String successTemplate)
    • successTemplateUri

      public ResponseConfig successTemplateUri(String successTemplateUri)
      URI to retrieve success template.
    • getSuccessTemplateUri

      public String getSuccessTemplateUri()
    • setSuccessTemplateUri

      public void setSuccessTemplateUri(String successTemplateUri)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object