Package com.mypurecloud.sdk.v2.model
Class ResponseConfig
java.lang.Object
com.mypurecloud.sdk.v2.model.ResponseConfig
- All Implemented Interfaces:
Serializable
Defines response components of the Action Request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetSuccessTemplate(String successTemplate) voidsetSuccessTemplateUri(String successTemplateUri) voidsetTranslationMap(Map<String, String> translationMap) voidsetTranslationMapDefaults(Map<String, String> translationMapDefaults) successTemplate(String successTemplate) Velocity template to build response to return from Action.successTemplateUri(String successTemplateUri) URI to retrieve success template.toString()translationMap(Map<String, String> translationMap) Map 'attribute name' and 'JSON path' pairs used to extract data from REST response.translationMapDefaults(Map<String, String> translationMapDefaults) Map 'attribute name' and 'default value' pairs used as fallback values if JSON path extraction fails for specified key.
-
Constructor Details
-
ResponseConfig
public ResponseConfig() -
ResponseConfig
-
-
Method Details
-
translationMap
Map 'attribute name' and 'JSON path' pairs used to extract data from REST response. -
getTranslationMap
-
setTranslationMap
-
translationMapDefaults
Map 'attribute name' and 'default value' pairs used as fallback values if JSON path extraction fails for specified key. -
getTranslationMapDefaults
-
setTranslationMapDefaults
-
successTemplate
Velocity template to build response to return from Action. -
getSuccessTemplate
-
setSuccessTemplate
-
successTemplateUri
URI to retrieve success template. -
getSuccessTemplateUri
-
setSuccessTemplateUri
-
equals
-
hashCode
public int hashCode() -
toString
-