com.sinch.sdk.domains.numbers.models.requests.RentVoiceConfigurationRequestParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
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