com.sinch.sdk.domains.numbers.models.requests.CallbackConfigurationUpdateRequestParameters 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;
/**
* Parameters request to update callback configuration
*
* @see https://developers.sinch.com/docs/numbers/api-reference/callbacks-numbers/tag/Callback-Configuration/#tag/Callback-Configuration/operation/UpdateCallbackConfiguration
* @since 1.0
*/
public class CallbackConfigurationUpdateRequestParameters {
/** */
private final OptionalValue hmacSecret;
private CallbackConfigurationUpdateRequestParameters(OptionalValue hmacSecret) {
this.hmacSecret = hmacSecret;
}
public OptionalValue getHMACSecret() {
return hmacSecret;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
OptionalValue hmacSecret = OptionalValue.empty();
private Builder() {}
/***
*
* @param hmacSecret The HMAC secret to be updated for the specified project
* @return current builder
*/
public Builder setHMACSecret(String hmacSecret) {
this.hmacSecret = OptionalValue.of(hmacSecret);
return this;
}
public CallbackConfigurationUpdateRequestParameters build() {
return new CallbackConfigurationUpdateRequestParameters(hmacSecret);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy