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

com.sinch.sdk.domains.verification.models.requests.StartVerificationCalloutRequestParameters Maven / Gradle / Ivy

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

import com.sinch.sdk.core.models.OptionalValue;
import com.sinch.sdk.domains.verification.models.Identity;
import com.sinch.sdk.domains.verification.models.VerificationMethodType;
import com.sinch.sdk.domains.verification.models.VerificationReference;

/**
 * Dedicated request parameters to be used for a CALLOUT verification
 *
 * @since 1.0
 */
public class StartVerificationCalloutRequestParameters extends StartVerificationRequestParameters {

  private StartVerificationCalloutRequestParameters(
      OptionalValue identity,
      OptionalValue reference,
      OptionalValue custom) {
    super(identity, VerificationMethodType.CALLOUT, reference, custom);
  }

  @Override
  public String toString() {
    return "StartVerificationCalloutRequestParameters{} " + super.toString();
  }

  /**
   * Getting Builder
   *
   * @return New Builder instance
   * @since 1.0
   */
  public static Builder builder() {
    return new Builder();
  }

  /**
   * Dedicated Builder
   *
   * @since 1.0
   */
  public static class Builder extends StartVerificationRequestParameters.Builder {

    private Builder() {}

    /**
     * Create instance
     *
     * @return The instance build with current builder values
     * @since 1.0
     */
    @Override
    public StartVerificationCalloutRequestParameters build() {
      return new StartVerificationCalloutRequestParameters(identity, reference, custom);
    }

    @Override
    protected Builder self() {
      return this;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy