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

com.sinch.sdk.domains.numbers.models.requests.CallbackConfigurationUpdateRequestParameters 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;

/**
 * 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