com.sinch.sdk.domains.numbers.models.requests.ActiveNumberUpdateSMSConfigurationRequestParameters 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;
/***
* SMS configuration parameters request to update an active number for a project
* @since 1.0
*/
public class ActiveNumberUpdateSMSConfigurationRequestParameters {
private final OptionalValue servicePlanId;
private final OptionalValue campaignId;
private ActiveNumberUpdateSMSConfigurationRequestParameters(
OptionalValue servicePlanId, OptionalValue campaignId) {
this.servicePlanId = servicePlanId;
this.campaignId = campaignId;
}
public OptionalValue getServicePlanId() {
return servicePlanId;
}
public OptionalValue getCampaignId() {
return campaignId;
}
@Override
public String toString() {
return "ActiveNumberUpdateSMSConfigurationRequestParameters{"
+ "servicePlanId='"
+ servicePlanId
+ '\''
+ ", campaignId="
+ campaignId
+ '}';
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
OptionalValue servicePlanId = OptionalValue.empty();
OptionalValue campaignId = OptionalValue.empty();
private Builder() {}
/**
* @param servicePlanId The servicePlanId can be found in the Sinch Customer Dashboard. The
* service plan ID is what ties this number to the configured SMS service.
* @return current builder
*/
public Builder setServicePlanId(String servicePlanId) {
this.servicePlanId = OptionalValue.of(servicePlanId);
return this;
}
/**
* @param campaignId Only for US phone numbers. This campaignId is required to send SMS traffic
* to US; click here to read more about 10DLC A2P messaging. So, it is the current campaign
* ID for this number. The campaignId is found on your TCR platform.
* @return current builder
*/
public Builder setCampaignId(String campaignId) {
this.campaignId = OptionalValue.of(campaignId);
return this;
}
public ActiveNumberUpdateSMSConfigurationRequestParameters build() {
return new ActiveNumberUpdateSMSConfigurationRequestParameters(servicePlanId, campaignId);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy