Class UpdateCall

java.lang.Object
com.bandwidth.sdk.model.UpdateCall

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class UpdateCall extends Object
UpdateCall
  • Field Details

  • Constructor Details

    • UpdateCall

      public UpdateCall()
  • Method Details

    • state

      public UpdateCall state(CallStateEnum state)
    • getState

      @Nullable public CallStateEnum getState()
      Get state
      Returns:
      state
    • setState

      public void setState(CallStateEnum state)
    • redirectUrl

      public UpdateCall redirectUrl(URI redirectUrl)
    • getRedirectUrl

      @Nullable public URI getRedirectUrl()
      The URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML. Required if `state` is `active`. Not allowed if `state` is `completed`.
      Returns:
      redirectUrl
    • setRedirectUrl

      public void setRedirectUrl(URI redirectUrl)
    • redirectMethod

      public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod)
    • getRedirectMethod

      @Nullable public RedirectMethodEnum getRedirectMethod()
      Get redirectMethod
      Returns:
      redirectMethod
    • setRedirectMethod

      public void setRedirectMethod(RedirectMethodEnum redirectMethod)
    • username

      public UpdateCall username(String username)
    • getUsername

      @Nullable public String getUsername()
      Basic auth username.
      Returns:
      username
    • setUsername

      public void setUsername(String username)
    • password

      public UpdateCall password(String password)
    • getPassword

      @Nullable public String getPassword()
      Basic auth password.
      Returns:
      password
    • setPassword

      public void setPassword(String password)
    • redirectFallbackUrl

      public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl)
    • getRedirectFallbackUrl

      @Nullable public URI getRedirectFallbackUrl()
      A fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond.
      Returns:
      redirectFallbackUrl
    • setRedirectFallbackUrl

      public void setRedirectFallbackUrl(URI redirectFallbackUrl)
    • redirectFallbackMethod

      public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod)
    • getRedirectFallbackMethod

      @Nullable public RedirectMethodEnum getRedirectFallbackMethod()
      Get redirectFallbackMethod
      Returns:
      redirectFallbackMethod
    • setRedirectFallbackMethod

      public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod)
    • fallbackUsername

      public UpdateCall fallbackUsername(String fallbackUsername)
    • getFallbackUsername

      @Nullable public String getFallbackUsername()
      Basic auth username.
      Returns:
      fallbackUsername
    • setFallbackUsername

      public void setFallbackUsername(String fallbackUsername)
    • fallbackPassword

      public UpdateCall fallbackPassword(String fallbackPassword)
    • getFallbackPassword

      @Nullable public String getFallbackPassword()
      Basic auth password.
      Returns:
      fallbackPassword
    • setFallbackPassword

      public void setFallbackPassword(String fallbackPassword)
    • tag

      public UpdateCall tag(String tag)
    • getTag

      @Nullable public String getTag()
      A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`.
      Returns:
      tag
    • setTag

      public void setTag(String tag)
    • putAdditionalProperty

      public UpdateCall putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the UpdateCall instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to UpdateCall
    • fromJson

      public static UpdateCall fromJson(String jsonString) throws IOException
      Create an instance of UpdateCall given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of UpdateCall
      Throws:
      IOException - if the JSON string is invalid with respect to UpdateCall
    • toJson

      public String toJson()
      Convert an instance of UpdateCall to an JSON string
      Returns:
      JSON string