Class CreateCallResponse

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

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

  • Constructor Details

    • CreateCallResponse

      public CreateCallResponse()
  • Method Details

    • applicationId

      public CreateCallResponse applicationId(String applicationId)
    • getApplicationId

      @Nonnull public String getApplicationId()
      The id of the application associated with the `from` number.
      Returns:
      applicationId
    • setApplicationId

      public void setApplicationId(String applicationId)
    • accountId

      public CreateCallResponse accountId(String accountId)
    • getAccountId

      @Nonnull public String getAccountId()
      The bandwidth account ID associated with the call.
      Returns:
      accountId
    • setAccountId

      public void setAccountId(String accountId)
    • callId

      public CreateCallResponse callId(String callId)
    • getCallId

      @Nonnull public String getCallId()
      Programmable Voice API Call ID.
      Returns:
      callId
    • setCallId

      public void setCallId(String callId)
    • to

      public CreateCallResponse to(String to)
    • getTo

      @Nonnull public String getTo()
      Recipient of the outgoing call.
      Returns:
      to
    • setTo

      public void setTo(String to)
    • from

      public CreateCallResponse from(String from)
    • getFrom

      @Nonnull public String getFrom()
      Phone number that created the outbound call.
      Returns:
      from
    • setFrom

      public void setFrom(String from)
    • enqueuedTime

      public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime)
    • getEnqueuedTime

      @Nullable public OffsetDateTime getEnqueuedTime()
      The time at which the call was accepted into the queue.
      Returns:
      enqueuedTime
    • setEnqueuedTime

      public void setEnqueuedTime(OffsetDateTime enqueuedTime)
    • callUrl

      public CreateCallResponse callUrl(URI callUrl)
    • getCallUrl

      @Nonnull public URI getCallUrl()
      The URL to update this call's state.
      Returns:
      callUrl
    • setCallUrl

      public void setCallUrl(URI callUrl)
    • callTimeout

      public CreateCallResponse callTimeout(Double callTimeout)
    • getCallTimeout

      @Nullable public Double getCallTimeout()
      The timeout (in seconds) for the callee to answer the call after it starts ringing.
      Returns:
      callTimeout
    • setCallTimeout

      public void setCallTimeout(Double callTimeout)
    • callbackTimeout

      public CreateCallResponse callbackTimeout(Double callbackTimeout)
    • getCallbackTimeout

      @Nullable public Double getCallbackTimeout()
      This is the timeout (in seconds) to use when delivering webhooks for the call.
      Returns:
      callbackTimeout
    • setCallbackTimeout

      public void setCallbackTimeout(Double callbackTimeout)
    • tag

      public CreateCallResponse tag(String tag)
    • getTag

      @Nullable public String getTag()
      Custom tag value.
      Returns:
      tag
    • setTag

      public void setTag(String tag)
    • answerMethod

      public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod)
    • getAnswerMethod

      @Nullable public CallbackMethodEnum getAnswerMethod()
      Get answerMethod
      Returns:
      answerMethod
    • setAnswerMethod

      public void setAnswerMethod(CallbackMethodEnum answerMethod)
    • answerUrl

      public CreateCallResponse answerUrl(URI answerUrl)
    • getAnswerUrl

      @Nonnull public URI getAnswerUrl()
      URL to deliver the `answer` event webhook.
      Returns:
      answerUrl
    • setAnswerUrl

      public void setAnswerUrl(URI answerUrl)
    • answerFallbackMethod

      public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallbackMethod)
    • getAnswerFallbackMethod

      @Nullable public CallbackMethodEnum getAnswerFallbackMethod()
      Get answerFallbackMethod
      Returns:
      answerFallbackMethod
    • setAnswerFallbackMethod

      public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod)
    • answerFallbackUrl

      public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl)
    • getAnswerFallbackUrl

      @Nullable public URI getAnswerFallbackUrl()
      Fallback URL to deliver the `answer` event webhook.
      Returns:
      answerFallbackUrl
    • setAnswerFallbackUrl

      public void setAnswerFallbackUrl(URI answerFallbackUrl)
    • disconnectMethod

      public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod)
    • getDisconnectMethod

      @Nullable public CallbackMethodEnum getDisconnectMethod()
      Get disconnectMethod
      Returns:
      disconnectMethod
    • setDisconnectMethod

      public void setDisconnectMethod(CallbackMethodEnum disconnectMethod)
    • disconnectUrl

      public CreateCallResponse disconnectUrl(URI disconnectUrl)
    • getDisconnectUrl

      @Nullable public URI getDisconnectUrl()
      URL to deliver the `disconnect` event webhook.
      Returns:
      disconnectUrl
    • setDisconnectUrl

      public void setDisconnectUrl(URI disconnectUrl)
    • username

      public CreateCallResponse username(String username)
    • getUsername

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

      public void setUsername(String username)
    • password

      public CreateCallResponse password(String password)
    • getPassword

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

      public void setPassword(String password)
    • fallbackUsername

      public CreateCallResponse fallbackUsername(String fallbackUsername)
    • getFallbackUsername

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

      public void setFallbackUsername(String fallbackUsername)
    • fallbackPassword

      public CreateCallResponse fallbackPassword(String fallbackPassword)
    • getFallbackPassword

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

      public void setFallbackPassword(String fallbackPassword)
    • priority

      public CreateCallResponse priority(Integer priority)
    • getPriority

      @Nullable public Integer getPriority()
      The priority of this call over other calls from your account.
      Returns:
      priority
    • setPriority

      public void setPriority(Integer priority)
    • putAdditionalProperty

      public CreateCallResponse 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 CreateCallResponse 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 CreateCallResponse
    • fromJson

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

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