Class Captcha.Builder
- java.lang.Object
-
- com.rivet.api.resources.cloud.version.matchmaker.common.types.Captcha.Builder
-
- All Implemented Interfaces:
Captcha._FinalStage,Captcha.RequestsBeforeReverifyStage,Captcha.VerificationTtlStage
- Enclosing class:
- Captcha
public static final class Captcha.Builder extends java.lang.Object implements Captcha.RequestsBeforeReverifyStage, Captcha.VerificationTtlStage, Captcha._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Captchabuild()Captcha.Builderfrom(Captcha other)Captcha._FinalStagehcaptcha(CaptchaHcaptcha hcaptcha)Captcha._FinalStagehcaptcha(java.util.Optional<CaptchaHcaptcha> hcaptcha)Captcha.VerificationTtlStagerequestsBeforeReverify(int requestsBeforeReverify)Denotes how many requests a connection can make before it is required to reverify a captcha.Captcha._FinalStageturnstile(CaptchaTurnstile turnstile)Captcha._FinalStageturnstile(java.util.Optional<CaptchaTurnstile> turnstile)Captcha._FinalStageverificationTtl(long verificationTtl)Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds).
-
-
-
Method Detail
-
from
public Captcha.Builder from(Captcha other)
- Specified by:
fromin interfaceCaptcha.RequestsBeforeReverifyStage
-
requestsBeforeReverify
public Captcha.VerificationTtlStage requestsBeforeReverify(int requestsBeforeReverify)
Denotes how many requests a connection can make before it is required to reverify a captcha.
- Specified by:
requestsBeforeReverifyin interfaceCaptcha.RequestsBeforeReverifyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
verificationTtl
public Captcha._FinalStage verificationTtl(long verificationTtl)
Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds).
- Specified by:
verificationTtlin interfaceCaptcha.VerificationTtlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
turnstile
public Captcha._FinalStage turnstile(CaptchaTurnstile turnstile)
- Specified by:
turnstilein interfaceCaptcha._FinalStage
-
turnstile
public Captcha._FinalStage turnstile(java.util.Optional<CaptchaTurnstile> turnstile)
- Specified by:
turnstilein interfaceCaptcha._FinalStage
-
hcaptcha
public Captcha._FinalStage hcaptcha(CaptchaHcaptcha hcaptcha)
- Specified by:
hcaptchain interfaceCaptcha._FinalStage
-
hcaptcha
public Captcha._FinalStage hcaptcha(java.util.Optional<CaptchaHcaptcha> hcaptcha)
- Specified by:
hcaptchain interfaceCaptcha._FinalStage
-
build
public Captcha build()
- Specified by:
buildin interfaceCaptcha._FinalStage
-
-