Class Function

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

public class Function extends Object implements Serializable
Action function settings.
See Also:
  • Constructor Details

    • Function

      public Function()
    • Function

      public Function(Boolean initWithEmptyList)
  • Method Details

    • getId

      public String getId()
    • getName

      public String getName()
    • description

      public Function description(String description)
      Description of the function. Limit 255 characters.
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDateCreated

      public Date getDateCreated()
    • getZipId

      public String getZipId()
    • handler

      public Function handler(String handler)
      Handler entry point into zip file to execute function. Should be path within upload function package to the invocation module without language extension, followed by a period and then exported invocation method name. e.g. 'src/index.handler'
    • getHandler

      public String getHandler()
    • setHandler

      public void setHandler(String handler)
    • runtime

      public Function runtime(String runtime)
      Runtime required for execution. Valid runtimes change over time as versions are deprecated. Use /api/v2/integrations/actions/functions/runtimes for current list.
    • getRuntime

      public String getRuntime()
    • setRuntime

      public void setRuntime(String runtime)
    • timeoutSeconds

      public Function timeoutSeconds(Integer timeoutSeconds)
      Execution timeout to apply to function. Value is in seconds. Range allowed 1 to 15. Default value 15 seconds. minimum: 1 maximum: 15
    • getTimeoutSeconds

      public Integer getTimeoutSeconds()
    • setTimeoutSeconds

      public void setTimeoutSeconds(Integer timeoutSeconds)
    • 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