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

com.sinch.sdk.domains.verification.models.response.StartVerificationResponseCallout Maven / Gradle / Ivy

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

import com.sinch.sdk.domains.verification.models.Link;
import com.sinch.sdk.domains.verification.models.VerificationId;
import com.sinch.sdk.domains.verification.models.requests.StartVerificationCalloutRequestParameters;
import java.util.Collection;

/**
 * Dedicated response type for a callout verification started with {@link
 * com.sinch.sdk.domains.verification.VerificationsService#startCallout(StartVerificationCalloutRequestParameters)}
 * initiated wit method {@link
 * com.sinch.sdk.domains.verification.models.VerificationMethodType#CALLOUT CALLOUT}
 *
 * @since 1.0
 */
public class StartVerificationResponseCallout extends StartVerificationResponse {

  /**
   * @param id Verification identifier used to query for status.
   * @param links Available methods and actions which can be done after a successful Verification
   */
  private StartVerificationResponseCallout(VerificationId id, Collection links) {
    super(id, links);
  }

  @Override
  public String toString() {
    return "StartVerificationResponseCallout{} " + 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 StartVerificationResponse.Builder {

    private Builder() {
      super();
    }

    /**
     * Create instance
     *
     * @return The instance build with current builder values
     * @since 1.0
     */
    public StartVerificationResponseCallout build() {
      return new StartVerificationResponseCallout(id, links);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy