All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.sdk.domains.numbers.models.requests.RentVoiceConfigurationRequestParameters Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.numbers.models.requests;

import com.sinch.sdk.core.models.OptionalValue;

/**
 * Voice configuration parameters request to rent a number
 *
 * @since 1.0
 */
public class RentVoiceConfigurationRequestParameters {
  private final OptionalValue appId;

  private RentVoiceConfigurationRequestParameters(OptionalValue appId) {
    this.appId = appId;
  }

  public OptionalValue getAppId() {
    return appId;
  }

  public static Builder builder() {
    return new Builder();
  }

  public static class Builder {
    OptionalValue appId = OptionalValue.empty();

    private Builder() {}

    /**
     * @param appId Your app ID for the Voice API. The appId can be found in your Sinch Customer
     *     Dashboard under Voice, then apps.
     * @return current builder
     */
    public Builder setAppId(String appId) {
      this.appId = OptionalValue.of(appId);
      return this;
    }

    public RentVoiceConfigurationRequestParameters build() {
      return new RentVoiceConfigurationRequestParameters(appId);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy